2015-06-14 11:05:07 -04:00
|
|
|
CC = gcc
|
|
|
|
#CC = clang
|
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
|
|
|
|
LIBS = -lfftw3 -lm
|
|
|
|
|
|
|
|
# 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
|
|
|
|
2015-07-25 19:48:53 -04:00
|
|
|
OBJS3 = wsprd_exp.o wsprsim_utils.o wsprd_utils.o tab.o fano.o jelinek.o nhash.o
|
2015-06-22 15:42:28 -04:00
|
|
|
wsprd_exp: $(OBJS3)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
2015-05-27 09:08:28 -04:00
|
|
|
clean:
|
2015-06-22 15:42:28 -04:00
|
|
|
rm *.o wsprd wsprsim wsprd_exp
|