ft8d/Makefile

30 lines
644 B
Makefile
Raw Normal View History

2018-03-24 07:20:34 -04:00
TARGET = ft8d
OBJECTS = \
2018-10-15 17:43:39 -04:00
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 bpdecode174.o \
fmtmsg.o packjt.o extractmessage174.o indexx.o shell.o pctile.o polyfit.o \
twkfreq1.o osd174.o encode174.o genft8.o db.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)