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
|
|
|
|
|
|
|
|
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-10 15:25:28 -04:00
|
|
|
all: libjt9.a jt9sim.exe jt9.exe tt9.exe
|
2012-10-03 10:50:57 -04:00
|
|
|
|
|
|
|
OBJS1 = trimlist.o pctile.o sort.o indexx.o ssort.o graycode.o \
|
|
|
|
unpackmsg.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 \
|
|
|
|
nchar.o four2a.o grid2deg.o pfxdump.o f77_wisdom.o \
|
2012-10-03 13:47:55 -04:00
|
|
|
symspec.o timf2.o analytic.o db.o genjt9.o ptt.o \
|
2012-10-03 10:50:57 -04:00
|
|
|
packbits.o unpackbits.o encode232.o interleave9.o \
|
2012-10-03 13:47:55 -04:00
|
|
|
entail.o fano232.o gran.o spec9.o sync9.o decode9.o \
|
2012-10-10 15:25:28 -04:00
|
|
|
peakdt9.o peakdf9.o fil3.o
|
2012-10-03 10:50:57 -04:00
|
|
|
|
|
|
|
libjt9.a: $(OBJS1)
|
|
|
|
ar cr libjt9.a $(OBJS1)
|
|
|
|
ranlib libjt9.a
|
|
|
|
|
2012-10-03 13:47:55 -04:00
|
|
|
OBJS2 = jt9.o
|
2012-10-03 10:50:57 -04:00
|
|
|
jt9.exe: $(OBJS2) libjt9.a
|
|
|
|
$(FC) -o jt9.exe $(OBJS2) libjt9.a ../libfftw3f_win.a
|
|
|
|
|
|
|
|
OBJS3 = jt9sim.o
|
|
|
|
jt9sim.exe: $(OBJS3) libjt9.a
|
|
|
|
$(FC) -o jt9sim.exe $(OBJS3) libjt9.a
|
|
|
|
|
|
|
|
OBJS4 = t1.o
|
|
|
|
t1.exe: $(OBJS4) libjt9.a
|
|
|
|
$(FC) -o t1.exe $(OBJS4) libjt9.a ../libfftw3f_win.a
|
|
|
|
|
|
|
|
OBJS5 = t2.o
|
|
|
|
t2.exe: $(OBJS5) libjt9.a
|
|
|
|
$(FC) -o t2.exe $(OBJS5) libjt9.a ../libfftw3f_win.a
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2012-10-10 15:25:28 -04:00
|
|
|
OBJS6 = tt9.o
|
|
|
|
tt9.exe: $(OBJS6) libjt9.a
|
|
|
|
$(FC) -o tt9.exe $(OBJS6) libjt9.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++'
|
2012-10-03 10:50:57 -04:00
|
|
|
|
|
|
|
#jt9.o: jt9.f90
|
|
|
|
# $(FC) -O0 -c jt9.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
|
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2012-10-03 10:50:57 -04:00
|
|
|
rm -f *.o libjt9.a wsjtx.exe jt9sim.exe jt9.exe t1.exe t2.exe
|