2015-06-14 11:05:07 -04:00
|
|
|
CC = gcc
|
|
|
|
#CC = clang
|
2015-05-27 09:08:28 -04:00
|
|
|
FC = gfortran
|
|
|
|
|
|
|
|
FFLAGS = -O2 -Wall -Wno-conversion
|
2015-06-14 11:05:07 -04:00
|
|
|
CFLAGS= -g -I/usr/include -Wall -Wno-missing-braces -O2
|
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-14 11:05:07 -04:00
|
|
|
all: wsprd wsprsim
|
2015-05-27 09:08:28 -04:00
|
|
|
|
2015-06-14 11:05:07 -04:00
|
|
|
DEPS = wsprsim_utils.h wsprd_utils.h fano.h
|
|
|
|
OBJS1 = wsprd.o wsprd_utils.o tab.o fano.o nhash.o
|
2015-05-27 09:08:28 -04:00
|
|
|
wsprd: $(OBJS1)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2015-06-14 11:05:07 -04:00
|
|
|
OBJS4 = wsprsim.o wsprsim_utils.o wsprd_utils.o tab.o fano.o nhash.o
|
|
|
|
wsprsim: $(OBJS4)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) $(LIBS)
|
2015-05-27 09:08:28 -04:00
|
|
|
|
|
|
|
clean:
|
2015-06-14 11:05:07 -04:00
|
|
|
rm *.o wsprd wsprsim
|