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
|
2016-04-02 20:33:21 -04:00
|
|
|
LIBS = -lfftw3f -lm
|
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 $<
|
|
|
|
|
2015-06-22 15:42:28 -04:00
|
|
|
all: wsprd wsprsim wsprd_exp
|
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
|
|
|
|
OBJS1 = wsprd.o wsprsim_utils.o wsprd_utils.o tab.o fano.o jelinek.o nhash.o
|
2015-05-27 09:08:28 -04:00
|
|
|
wsprd: $(OBJS1)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2015-06-22 15:42:28 -04:00
|
|
|
OBJS2 = wsprsim.o wsprsim_utils.o wsprd_utils.o tab.o fano.o nhash.o
|
|
|
|
wsprsim: $(OBJS2)
|
2015-06-14 11:05:07 -04:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
2015-05-27 09:08:28 -04:00
|
|
|
|
|
|
|
clean:
|
2016-04-03 16:01:43 -04:00
|
|
|
rm *.o wsprd wsprsim
|