mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-03 16:01:18 -05:00
3285497494
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2728 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
91 lines
2.2 KiB
Makefile
91 lines
2.2 KiB
Makefile
# Makefile for MinGW on Windows
|
|
# Windows re-direct:
|
|
# C> make > junk1 2>&1
|
|
|
|
CC = gcc
|
|
FC = g95
|
|
|
|
FFLAGS = -O0 -fbounds-check -Wall -Wno-precision-loss -fno-second-underscore
|
|
CFLAGS = -I. -fbounds-check -mno-stack-arg-probe
|
|
|
|
# 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 $<
|
|
|
|
all: libjt9.a jt9sim.exe jt9.exe jt9code.exe
|
|
|
|
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 \
|
|
packbits.o unpackbits.o encode232.o interleave9.o \
|
|
entail.o fano232.o gran.o spec9.o sync9.o decode9.o \
|
|
peakdt9.o peakdf9.o fil3.o redsync.o decoder.o \
|
|
grid2n.o n2grid.o timer.o
|
|
|
|
libjt9.a: $(OBJS1)
|
|
ar cr libjt9.a $(OBJS1)
|
|
ranlib libjt9.a
|
|
|
|
OBJS2 = jt9.o
|
|
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 = jt9code.o
|
|
jt9code.exe: $(OBJS4) libjt9.a
|
|
$(FC) -o jt9code.exe $(OBJS4) libjt9.a
|
|
|
|
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++'
|
|
|
|
#jt9.o: jt9.f90
|
|
# $(FC) -O0 -c jt9.f90
|
|
|
|
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
|
|
|
|
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:
|
|
rm -f *.o libjt9.a wsjtx.exe jt9sim.exe jt9.exe t1.exe t2.exe
|