ft8d/Makefile

32 lines
822 B
Makefile
Raw Normal View History

2018-03-24 07:20:34 -04:00
TARGET = ft8d
OBJECTS = \
timer_module.o crc10.o crc12.o crc.o ft8_downsample.o sync8d.o sync8.o \
grid2deg.o four2a.o deg2grid.o chkcrc12a.o determ.o fftw3mod.o \
baseline.o bpdecode144.o geodist.o azdist.o fix_contest_msg.o \
to_contest_msg.o bpdecode174.o fmtmsg.o packjt.o extractmessage174.o \
indexx.o shell.o pctile.o polyfit.o twkfreq1.o osd174.o encode174.o \
genft8.o genft8refsig.o subtractft8.o db.o ft8b.o ft8d.o
CXX = g++
FC = gfortran
LD = g++
RM = rm -f
CXXFLAGS = -Wall -fbounds-check
FFLAGS = -Wall -funroll-loops -fno-second-underscore
LDFLAGS = -lfftw3f `$(FC) -print-file-name=libgfortran.so`
all: $(TARGET)
%.o: %.cpp
${CXX} -c ${CXXFLAGS} $< -o $@
%.o: %.f90
${FC} -c ${FFLAGS} $< -o $@
$(TARGET): $(OBJECTS)
$(LD) $(OBJECTS) $(LDFLAGS) -o $@
clean:
$(RM) *.o *.mod $(TARGET)