2012-05-22 13:09:48 -04:00
|
|
|
# Makefile for MinGW on Windows
|
|
|
|
CC = gcc
|
|
|
|
FC = g95
|
|
|
|
|
|
|
|
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 $<
|
|
|
|
|
2012-10-01 15:40:23 -04:00
|
|
|
all: libm65.a jt9sim.exe jt9.exe
|
|
|
|
#all: libm65.a jt9.exe
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
OBJS1 = trimlist.o display.o getdphi.o pctile.o ccf65.o \
|
|
|
|
decode1a.o sort.o filbig.o fil6521.o afc65b.o \
|
|
|
|
twkfreq.o decode65b.o indexx.o ssort.o fchisq.o setup65.o \
|
|
|
|
extract.o deep65.o ccf2.o demod64a.o chkhist.o graycode.o \
|
|
|
|
interleave63.o unpackmsg.o encode65.o igray.o set.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 \
|
|
|
|
wrapkarn.o nchar.o init_rs.o encode_rs.o decode_rs.o \
|
|
|
|
four2a.o rfile3a.o grid2deg.o pfxdump.o dpol.o \
|
|
|
|
astro.o tm2.o sun.o moondop.o coord.o tmoonsub.o \
|
|
|
|
geocentric.o moon2.o toxyz.o dot.o dcoord.o f77_wisdom.o \
|
2012-09-27 15:10:15 -04:00
|
|
|
gen65.o chkmsg.o ptt.o astrosub.o astro0.o recvpkt.o symspecx.o \
|
2012-07-14 15:05:40 -04:00
|
|
|
iqcal.o iqfix.o timf2.o s3avg.o genjtms3.o analytic.o \
|
2012-07-17 15:31:01 -04:00
|
|
|
db.o specjtms.o genmsk.o mskdf.o tweak1.o syncmsk.o \
|
|
|
|
lenmsk.o decodemsk.o ping.o makepings.o alignmsg.o match.o \
|
2012-09-27 15:10:15 -04:00
|
|
|
rtping.o jtmsk.o hipass.o setupmsk.o foldmsk.o genjt9.o \
|
2012-10-01 15:40:23 -04:00
|
|
|
packbits.o unpackbits.o encode232.o interleave9.o entail.o \
|
|
|
|
fano232.o
|
2012-07-14 15:05:40 -04:00
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
libm65.a: $(OBJS1)
|
|
|
|
ar cr libm65.a $(OBJS1)
|
|
|
|
ranlib libm65.a
|
|
|
|
|
2012-10-01 15:40:23 -04:00
|
|
|
OBJS3 = jt9sim.o gran.o
|
2012-09-27 15:10:15 -04:00
|
|
|
jt9sim.exe: $(OBJS3) libm65.a
|
|
|
|
$(FC) -o jt9sim.exe $(OBJS3) libm65.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-10-01 15:40:23 -04:00
|
|
|
OBJS2 = jt9.o symspec.o timf2x.o timer.o
|
|
|
|
jt9.exe: $(OBJS2) libm65.a
|
|
|
|
$(FC) -o jt9.exe $(OBJS2) libm65.a ../libfftw3f_win.a
|
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++'
|
|
|
|
ipcomm.o: ipcomm.cpp
|
|
|
|
g++ -c $(INCPATH) ipcomm.cpp
|
|
|
|
|
|
|
|
sec_midn.o: sec_midn.f90
|
|
|
|
$(FC) -c -fno-second-underscore sec_midn.f90
|
|
|
|
|
|
|
|
#symspec.o: ../symspec.f90
|
|
|
|
# $(FC) -c $(FFLAGS) -o symspec.o ../symspec.f90
|
|
|
|
|
2012-10-01 15:40:23 -04:00
|
|
|
OBJS5 = t1.o
|
|
|
|
t1.exe: $(OBJS5) libm65.a
|
|
|
|
$(FC) -o t1.exe $(OBJS5) libm65.a ../libfftw3f_win.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2012-10-01 15:40:23 -04:00
|
|
|
rm -f *.o libm65.a wsjtx.exe jt9sim.exe jt9.exe
|