2012-05-22 13:09:48 -04:00
|
|
|
CC = gcc
|
|
|
|
FC = gfortran
|
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
FFLAGS = -O2 -fbounds-check -Wall -fno-second-underscore
|
|
|
|
CFLAGS = -I. -fbounds-check -mno-stack-arg-probe
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
# Default rules
|
|
|
|
%.o: %.c
|
|
|
|
${CC} ${CFLAGS} -c $<
|
|
|
|
%.o: %.f
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.F
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.f90
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.F90
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
all: libjt9.a jt9sim jt9 jt9code
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
OBJS1 = pctile.o graycode.o sort.o ssort.o \
|
|
|
|
unpackmsg.o igray.o unpackcall.o unpackgrid.o \
|
|
|
|
grid2k.o unpacktext.o getpfx2.o packmsg.o deg2grid.o \
|
|
|
|
packtext.o getpfx1.o packcall.o k2grid.o packgrid.o \
|
|
|
|
nchar.o four2a.o grid2deg.o pfxdump.o f77_wisdom.o \
|
|
|
|
symspec.o timf2.o analytic.o db.o genjt9.o ptt_unix.o \
|
|
|
|
packbits.o unpackbits.o encode232.o interleave9.o \
|
|
|
|
entail.o fano232.o gran.o spec9.o sync9.o decode9.o \
|
2013-03-06 15:42:30 -05:00
|
|
|
fil3.o redsync.o decoder.o grid2n.o n2grid.o timer.o \
|
|
|
|
decode9a.o peakdt9.o getlags.o afc9.o fchisq.o \
|
2013-03-21 10:14:26 -04:00
|
|
|
twkfreq.o downsam9.o symspec2.o ipcomm.o sleep_msec.o \
|
2013-04-16 12:38:25 -04:00
|
|
|
stdmsg.o sec_midn.o cutil.o azdist.o geodist.o morse.o \
|
|
|
|
fillcom.o
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
libjt9.a: $(OBJS1)
|
|
|
|
ar cr libjt9.a $(OBJS1)
|
|
|
|
ranlib libjt9.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2013-03-21 10:44:22 -04:00
|
|
|
OBJS2 = jt9.o jt9a.o
|
2013-01-18 11:08:53 -05:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
jt9: $(OBJS2) libjt9.a
|
2013-03-23 11:35:32 -04:00
|
|
|
g++ -o jt9 $(OBJS2) libjt9.a -lfftw3f -lgfortran -lQtCore
|
2013-01-18 11:08:53 -05:00
|
|
|
cp jt9 ../../wsjtx_install
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
OBJS3 = jt9sim.o
|
|
|
|
jt9sim: $(OBJS3) libjt9.a
|
|
|
|
$(FC) -o jt9sim $(OBJS3) libjt9.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
OBJS4 = jt9code.o
|
|
|
|
jt9code: $(OBJS4) libjt9.a
|
|
|
|
$(FC) -o jt9code $(OBJS4) libjt9.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2013-01-18 11:08:53 -05:00
|
|
|
#INCPATH = -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/QtCore' \
|
|
|
|
# -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include' \
|
|
|
|
# -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/include/ActiveQt' \
|
|
|
|
# -I'release' -I'.' -I'c:/QtSDK/Desktop/Qt/4.7.4/mingw/mkspecs/win32-g++'
|
|
|
|
|
|
|
|
INCPATH = -I'/usr/include/qt4' -I'/usr/include/qt4/QtCore'
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
#jt9.o: jt9.f90
|
|
|
|
# $(FC) -O0 -c jt9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
sync9.o: sync9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c sync9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
spec9.o: spec9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c spec9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
peakdf9.o: peakdf9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c peakdf9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
peakdt9.o: peakdt9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c peakdt9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
jt9sim.o: jt9sim.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c jt9sim.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
genjt9.o: genjt9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c genjt9.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
redsync.o: redsync.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c redsync.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2013-01-18 11:08:53 -05:00
|
|
|
jt9a.o: jt9a.F90
|
|
|
|
$(FC) -DUNIX $(FFLAGS) -c jt9a.F90
|
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
ipcomm.o: ipcomm.cpp
|
|
|
|
g++ -c $(INCPATH) ipcomm.cpp
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-16 10:50:47 -05:00
|
|
|
sec_midn.o: sec_midn.f90
|
|
|
|
$(FC) -c -fno-second-underscore sec_midn.f90
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2012-11-16 10:50:47 -05:00
|
|
|
rm -f *.o libjt9.a wsjtx jt9sim jt9 jt9code
|