2017-03-30 16:14:17 -04:00
|
|
|
# Compilers
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
FC = gfortran
|
|
|
|
|
|
|
|
FFLAGS = -O2 -fbounds-check -Wall -Wno-conversion
|
|
|
|
CFLAGS = -O2 -I.
|
|
|
|
|
|
|
|
# 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 $<
|
|
|
|
|
2017-04-07 15:44:29 -04:00
|
|
|
all: dbpsksim.exe
|
2017-03-30 16:14:17 -04:00
|
|
|
|
|
|
|
OBJS0 = testpsk.o four2a.o bpfilter.o nonlinear.o tweak1.o spectrum.o smo.o
|
|
|
|
testpsk: $(OBJS0)
|
|
|
|
$(FC) -o testpsk $(OBJS0) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS1 = gmsk8.o four2a.o gaussfilt.o
|
|
|
|
gmsk8: $(OBJS1)
|
|
|
|
$(FC) -o gmsk8 $(OBJS1) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS2 = testfsk.o four2a.o smo.o
|
|
|
|
testfsk: $(OBJS2)
|
|
|
|
$(FC) -o testfsk $(OBJS2) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS3 = fsk2sim.o four2a.o smo.o wavhdr.o gran.o
|
|
|
|
fsk2sim: $(OBJS3)
|
|
|
|
$(FC) -o fsk2sim $(OBJS3) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
2017-04-07 15:44:29 -04:00
|
|
|
OBJS4 = fsk4sim.o four2a.o gran.o genfsk4.o smo.o getsnr.o spec4.o \
|
|
|
|
watterson.o db.o snr2_wsprlf.o pctile.o shell.o snr_wsprlf.o
|
2017-03-30 16:14:17 -04:00
|
|
|
fsk4sim.exe: $(OBJS4)
|
|
|
|
$(FC) -o fsk4sim.exe $(OBJS4) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
2017-04-07 15:44:29 -04:00
|
|
|
OBJS5 = wsprlf.o four2a.o downsample.o
|
|
|
|
wsprlf.exe: $(OBJS5)
|
|
|
|
$(FC) -o wsprlf.exe $(OBJS5) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS6 = wspr_gmsk.o four2a.o gaussfilt.o
|
|
|
|
wspr_gmsk.exe: $(OBJS6)
|
|
|
|
$(FC) -o wspr_gmsk.exe $(OBJS6) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS7 = wspr_msk.o four2a.o bpfilter.o
|
|
|
|
wspr_msk.exe: $(OBJS7)
|
|
|
|
$(FC) -o wspr_msk.exe $(OBJS7) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
|
|
|
OBJS8 = dbpsksim.o four2a.o gran.o genbpsk.o watterson.o db.o \
|
|
|
|
encode120.o bpdecode120.o platanh.o
|
|
|
|
dbpsksim.exe: $(OBJS8)
|
|
|
|
$(FC) -o dbpsksim.exe $(OBJS8) C:\JTSDK\fftw3f\libfftw3f-3.dll
|
|
|
|
|
2017-03-30 16:14:17 -04:00
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean:
|
2017-04-07 15:44:29 -04:00
|
|
|
$(RM) *.o testpsk.exe testfsk.exe fsk2sim.exe fsk4sim.exe wsprlf.exe
|