2015-11-17 20:28:12 -05:00
|
|
|
# Set paths
|
2015-11-18 15:04:47 -05:00
|
|
|
EXE_DIR = C:/JTSDK/wsjtx_exp/install/Debug/bin
|
2015-11-17 20:28:12 -05:00
|
|
|
QT_DIR = /usr/include/qt5
|
|
|
|
INCPATH = -I${QT_DIR} -I${QT_DIR}/QtCore
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
FC = gfortran
|
|
|
|
AR = ar cr
|
|
|
|
MKDIR = mkdir -p
|
|
|
|
CP = cp
|
|
|
|
RANLIB = ranlib
|
|
|
|
RM = rm -f
|
|
|
|
|
2015-11-18 15:04:47 -05:00
|
|
|
FFLAGS = -O2 -Wall -Wno-conversion -fno-second-underscore
|
|
|
|
CFLAGS = -I. -fbounds-check -fPIE -DBIGSYM
|
2015-11-17 20:28:12 -05: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 $<
|
|
|
|
|
2015-11-18 15:04:47 -05:00
|
|
|
all: libjt9.a jt65 jt65sim
|
2015-11-17 20:28:12 -05:00
|
|
|
|
|
|
|
OBJS1 = astrosub.o astro0.o astro.o sun.o coord.o tmoonsub.o \
|
|
|
|
fmtmsg.o deg2grid.o\
|
|
|
|
prog_args.o options.o pctile.o graycode.o sort.o chkmsg.o \
|
|
|
|
igray.o fftw3mod.o packjt.o\
|
|
|
|
four2a.o grid2deg.o wisdom.o \
|
|
|
|
symspec.o analytic.o db.o \
|
2015-11-18 15:04:47 -05:00
|
|
|
encode232.o interleave9.o \
|
2015-11-17 20:28:12 -05:00
|
|
|
entail.o fano232.o gran.o sync9.o decjt9.o \
|
2015-11-25 09:57:10 -05:00
|
|
|
fil3.o decoder.o timer.o exp_decode65.o fqso_first.o \
|
2015-11-17 20:28:12 -05:00
|
|
|
twkfreq.o symspec2.o shell.o sync65.o peakup.o slope.o xcor.o\
|
|
|
|
fillcom.o chkss2.o zplot9.o flat1.o flat2.o \
|
|
|
|
jt65a.o symspec65.o flat65.o ccf65.o decode65a.o \
|
|
|
|
filbig.o fil6521.o afc65b.o decode65b.o setup65.o \
|
|
|
|
extract.o fchisq65.o demod64a.o chkhist.o interleave63.o ccf2.o \
|
|
|
|
move.o indexx.o graycode65.o twkfreq65.o smo.o smo121.o \
|
|
|
|
wrapkarn.o init_rs.o encode_rs.o decode_rs.o gen65.o fil4.o \
|
|
|
|
flat4.o determ.o baddata.o subtract65.o
|
|
|
|
|
|
|
|
libjt9.a: $(OBJS1)
|
|
|
|
$(AR) libjt9.a $(OBJS1)
|
|
|
|
$(RANLIB) libjt9.a
|
|
|
|
|
|
|
|
OBJS7 = jt65.o
|
|
|
|
jt65: $(OBJS7) libjt9.a libsfrsd.a
|
2015-11-18 15:04:47 -05:00
|
|
|
$(FC) -o jt65 $(OBJS7) -L. -L./sfrsd2 -ljt9 -lsfrsd \
|
|
|
|
C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS2 = jt65sim.o wavhdr.o
|
|
|
|
jt65sim: $(OBJS2) libjt9.a
|
2015-11-25 09:57:10 -05:00
|
|
|
$(FC) -o jt65sim $(OBJS2) -L. -ljt9 C:\JTSDK\fftw3f\libfftw3f-3.dll
|
2015-11-18 15:04:47 -05:00
|
|
|
$(CP) jt65sim.exe $(EXE_DIR)
|
|
|
|
|
|
|
|
init_rs.o: init_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o init_rs.o init_rs.c
|
|
|
|
|
|
|
|
encode_rs.o: encode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o encode_rs.o encode_rs.c
|
|
|
|
|
|
|
|
decode_rs.o: decode_rs.c
|
|
|
|
$(CC) -c -DBIGSYM=1 -o decode_rs.o decode_rs.c
|
2015-11-17 20:28:12 -05:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.o libjt9.a jt65
|