ft8d/Makefile

31 lines
682 B
Makefile
Raw Normal View History

2018-03-24 07:20:34 -04:00
TARGET = ft8d
OBJECTS = \
2018-12-15 07:25:41 -05:00
crc14.o crc.o ft8_downsample.o sync8d.o sync8.o grid2deg.o four2a.o \
deg2grid.o determ.o fftw3mod.o baseline.o bpdecode174_91.o fmtmsg.o \
2019-01-30 16:19:33 -05:00
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 genft8refsig.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
2018-10-15 17:43:39 -04:00
CFLAGS = -O3 -Wall
2018-03-24 12:01:27 -04:00
FFLAGS = -O3 -Wall -funroll-loops -fno-second-underscore
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)