2015-06-14 11:05:07 -04:00
|
|
|
CC = gcc
|
2015-11-19 15:49:55 -05:00
|
|
|
#CC = clang-3.5
|
2015-05-27 09:08:28 -04:00
|
|
|
FC = gfortran
|
|
|
|
|
2015-07-25 19:48:53 -04:00
|
|
|
CFLAGS= -I/usr/include -Wall -Wno-missing-braces -O3 -ffast-math
|
2015-05-27 09:08:28 -04:00
|
|
|
LDFLAGS = -L/usr/lib
|
2015-11-19 15:49:55 -05:00
|
|
|
FFLAGS = -O2 -Wall -Wno-conversion
|
2019-03-01 15:36:26 -05:00
|
|
|
LIBS = -lfftw3f -lm -lgfortran
|
2015-05-27 09:08:28 -04:00
|
|
|
|
|
|
|
# Default rules
|
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
${CC} ${CFLAGS} -c $<
|
|
|
|
%.o: %.f
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.F
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.f90
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
%.o: %.F90
|
|
|
|
${FC} ${FFLAGS} -c $<
|
|
|
|
|
2019-03-01 15:36:26 -05:00
|
|
|
all: wsprd
|
2015-05-27 09:08:28 -04:00
|
|
|
|
2015-07-25 19:48:53 -04:00
|
|
|
DEPS = wsprsim_utils.h wsprd_utils.h fano.h jelinek.h nhash.h
|
2019-03-01 15:36:26 -05:00
|
|
|
OBJS1 = wsprd.o wsprsim_utils.o wsprd_utils.o tab.o fano.o jelinek.o nhash.o indexx.o osdwspr.o
|
2015-05-27 09:08:28 -04:00
|
|
|
wsprd: $(OBJS1)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2019-03-01 15:36:26 -05:00
|
|
|
rm *.o wsprd
|