WSJT-X/lib/wsprd/Makefile

40 lines
872 B
Makefile
Raw Normal View History

CC = gcc
FC = gfortran
2019-03-01 18:07:11 -05:00
CFLAGS= -I/usr/include -Wall -Wno-missing-braces -Wno-unused-result -O3 -ffast-math
LDFLAGS = -L/usr/lib
2019-03-01 18:07:11 -05:00
FFLAGS = -O2 -Wall -Wno-conversion
LIBS = -lfftw3f -lm -lgfortran
# Default rules
%.o: %.c $(DEPS)
${CC} ${CFLAGS} -c $<
%.o: %.f
${FC} ${FFLAGS} -c $<
%.o: %.F
${FC} ${FFLAGS} -c $<
2019-03-01 18:07:11 -05:00
%.o: %.f90
${FC} ${FFLAGS} -c $<
%.o: %.F90
${FC} ${FFLAGS} -c $<
2019-03-01 18:48:57 -05:00
all: wsprd wsprsim
DEPS = wsprsim_utils.h wsprd_utils.h fano.h jelinek.h nhash.h
2019-03-01 18:07:11 -05:00
indexx.o: ../indexx.f90
${FC} -o indexx.o ${FFLAGS} -c ../indexx.f90
OBJS1 = wsprd.o wsprsim_utils.o wsprd_utils.o tab.o fano.o jelinek.o nhash.o indexx.o osdwspr.o
2019-03-01 18:07:11 -05:00
wsprd: $(OBJS1)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
2019-03-01 18:48:57 -05:00
OBJS2 = wsprsim.o wsprsim_utils.o wsprd_utils.o tab.o fano.o nhash.o
wsprsim: $(OBJS2)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
clean:
2019-03-01 18:48:57 -05:00
$(RM) *.o wsprd wsprsim