2012-05-22 13:09:48 -04:00
|
|
|
# Makefile for MinGW on Windows
|
2012-10-03 10:50:57 -04:00
|
|
|
# Windows re-direct:
|
|
|
|
# C> make > junk1 2>&1
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
CC = gcc
|
|
|
|
FC = g95
|
|
|
|
|
2012-11-21 12:48:17 -05:00
|
|
|
FFLAGS = -O2 -fbounds-check -Wall -Wno-precision-loss -fno-second-underscore
|
2012-09-27 15:10:15 -04:00
|
|
|
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 $<
|
|
|
|
|
2013-04-22 11:08:20 -04:00
|
|
|
all: libjt9.a jt9sim.exe jt9.exe jt9code.exe
|
2012-10-03 10:50:57 -04:00
|
|
|
|
2012-11-14 10:31:21 -05:00
|
|
|
OBJS1 = pctile.o graycode.o sort.o ssort.o \
|
2012-10-17 15:58:35 -04:00
|
|
|
unpackmsg.o igray.o unpackcall.o unpackgrid.o \
|
2012-10-03 10:50:57 -04:00
|
|
|
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 \
|
2012-11-14 10:31:21 -05:00
|
|
|
symspec.o timf2.o analytic.o db.o genjt9.o \
|
2012-10-03 10:50:57 -04:00
|
|
|
packbits.o unpackbits.o encode232.o interleave9.o \
|
2013-04-22 11:08:20 -04:00
|
|
|
entail.o fano232.o gran.o sync9.o decode9.o \
|
2013-01-22 14:19:00 -05:00
|
|
|
fil3.o redsync.o decoder.o grid2n.o n2grid.o timer.o \
|
2013-04-26 12:45:11 -04:00
|
|
|
softsym.o getlags.o afc9.o fchisq.o twkfreq.o downsam9.o \
|
2013-04-22 11:08:20 -04:00
|
|
|
peakdt9.o symspec2.o stdmsg.o morse.o azdist.o geodist.o \
|
|
|
|
rig_control.o fillcom.o
|
2012-10-03 10:50:57 -04:00
|
|
|
|
|
|
|
libjt9.a: $(OBJS1)
|
|
|
|
ar cr libjt9.a $(OBJS1)
|
|
|
|
ranlib libjt9.a
|
|
|
|
|
2012-11-28 16:08:35 -05:00
|
|
|
OBJS2 = jt9.o jt9a.o ipcomm.o sec_midn.o cutil.o
|
2012-11-21 12:48:17 -05:00
|
|
|
LIBS2 = -L'c:/QtSDK/Desktop/Qt/4.7.4/mingw/lib' -lQtCore4
|
2012-10-03 10:50:57 -04:00
|
|
|
jt9.exe: $(OBJS2) libjt9.a
|
2012-11-21 12:48:17 -05:00
|
|
|
g++ -o jt9.exe $(OBJS2) $(LIBS2) libjt9.a ../libfftw3f_win.a \
|
|
|
|
c:/MinGW/lib/libf95.a
|
|
|
|
cp jt9.exe ../../wsjtx_install
|
2012-10-03 10:50:57 -04:00
|
|
|
|
|
|
|
OBJS3 = jt9sim.o
|
|
|
|
jt9sim.exe: $(OBJS3) libjt9.a
|
|
|
|
$(FC) -o jt9sim.exe $(OBJS3) libjt9.a
|
|
|
|
|
2012-11-14 10:31:21 -05:00
|
|
|
OBJS4 = jt9code.o
|
|
|
|
jt9code.exe: $(OBJS4) libjt9.a
|
|
|
|
$(FC) -o jt9code.exe $(OBJS4) libjt9.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-11-21 12:48:17 -05:00
|
|
|
OBJS5 = jt9test.o
|
2013-01-22 14:19:00 -05:00
|
|
|
jt9test.exe: $(OBJS5) libjt9.a
|
|
|
|
$(FC) -o jt9test.exe $(OBJS5) libjt9.a ../libfftw3f_win.a
|
|
|
|
|
|
|
|
OBJS6 = wsjt24d.o wsjt24.o sync24.o decode24.o ps24.o flat1.o \
|
2013-03-11 11:51:44 -04:00
|
|
|
xcor24.o slope.o peakup.o interleave24.o getmet24.o smo.o \
|
|
|
|
deep24.o encode4.o chkmsg.o avemsg4.o extract4.o
|
2013-01-22 14:19:00 -05:00
|
|
|
wsjt24d.exe: $(OBJS6) libjt9.a
|
|
|
|
$(FC) -o wsjt24d.exe $(OBJS6) libjt9.a ../libfftw3f_win.a
|
2012-11-21 12:48:17 -05:00
|
|
|
|
2012-05-22 13:09:48 -04: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++'
|
2012-10-03 10:50:57 -04:00
|
|
|
|
2012-10-25 09:02:38 -04:00
|
|
|
sync9.o: sync9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c sync9.f90
|
|
|
|
|
|
|
|
spec9.o: spec9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c spec9.f90
|
|
|
|
|
|
|
|
peakdf9.o: peakdf9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c peakdf9.f90
|
|
|
|
|
|
|
|
peakdt9.o: peakdt9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c peakdt9.f90
|
|
|
|
|
|
|
|
jt9sim.o: jt9sim.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c jt9sim.f90
|
|
|
|
|
|
|
|
genjt9.o: genjt9.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c genjt9.f90
|
|
|
|
|
|
|
|
redsync.o: redsync.f90 jt9sync.f90
|
|
|
|
$(FC) $(FFLAGS) -c redsync.f90
|
|
|
|
|
2013-05-02 12:19:26 -04:00
|
|
|
unpackmsg.o: unpackmsg.f90
|
|
|
|
$(FC) -c -O0 -fbounds-check -Wall -Wno-precision-loss unpackmsg.f90
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
ipcomm.o: ipcomm.cpp
|
|
|
|
g++ -c $(INCPATH) ipcomm.cpp
|
|
|
|
|
|
|
|
sec_midn.o: sec_midn.f90
|
|
|
|
$(FC) -c -fno-second-underscore sec_midn.f90
|
|
|
|
|
2013-04-22 11:08:20 -04:00
|
|
|
rig_control.o: rig_control.c
|
|
|
|
$(CC) -c -Wall -I..\..\..\hamlib-1.2.15.3\include rig_control.c
|
|
|
|
|
|
|
|
tstrig.o: tstrig.c
|
|
|
|
$(CC) -c -Wall -I..\..\..\hamlib-1.2.15.3\include tstrig.c
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2012-11-21 12:48:17 -05:00
|
|
|
rm -f *.o libjt9.a wsjtx.exe jt9sim.exe jt9.exe jt9test.exe
|