-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
29 lines (22 loc) · 917 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
TARGET = ft8d
OBJECTS = \
crc14.o crc.o ft8_downsample.o sync8d.o sync8.o grid2deg.o pffft.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
CC = gcc
FC = gfortran
LD = gfortran
RM = rm -f
CFLAGS = -Wall -O3 -funroll-loops -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ffast-math -fsingle-precision-constant -mvectorize-with-neon-quad
FFLAGS = -Wall -O3 -funroll-loops -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ffast-math -fsingle-precision-constant -mvectorize-with-neon-quad
all: $(TARGET)
%.o: %.c
${CC} -c ${CFLAGS} $< -o $@
%.o: %.f90
${FC} -c ${FFLAGS} $< -o $@
$(TARGET): $(OBJECTS)
$(LD) $(OBJECTS) -o $@
clean:
$(RM) *.o *.mod $(TARGET)