ft8d/Makefile

31 lines
696 B
Makefile
Raw Normal View History

2018-03-24 07:20:34 -04:00
TARGET = ft8d
OBJECTS = \
2020-06-25 06:00:22 -04:00
crc14.o crc.o ft8_downsample.o sync8d.o sync8.o grid2deg.o fftw3mod.o \
four2a.o deg2grid.o determ.o baseline.o platanh.o bpdecode174_91.o \
fmtmsg.o packjt.o chkcrc14a.o indexx.o shell.o pctile.o polyfit.o \
twkfreq1.o osd174_91.o encode174_91.o chkcall.o packjt77.o genft8.o \
gfsk_pulse.o gen_ft8wave.o subtractft8.o ft8b.o ft8d.o
2018-03-24 07:20:34 -04:00
CC = gcc
2018-03-24 07:20:34 -04:00
FC = gfortran
2018-03-31 14:41:18 -04:00
LD = gfortran
2018-03-24 07:20:34 -04:00
RM = rm -f
CFLAGS = -Wall -O3 -funroll-loops
FFLAGS = -Wall -O3 -funroll-loops
2018-03-31 14:41:18 -04:00
LDFLAGS = -lfftw3f
2018-03-24 07:20:34 -04:00
all: $(TARGET)
%.o: %.c
${CC} -c ${CFLAGS} $< -o $@
2018-03-24 07:20:34 -04:00
%.o: %.f90
${FC} -c ${FFLAGS} $< -o $@
$(TARGET): $(OBJECTS)
$(LD) $(OBJECTS) $(LDFLAGS) -o $@
clean:
$(RM) *.o *.mod $(TARGET)