rtlsdr-wsprd/Makefile

28 wiersze
590 B
Makefile
Czysty Zwykły widok Historia

CC = clang
CFLAGS = -O3 -std=gnu17
LIBS = -lusb-1.0 -lrtlsdr -lpthread -lfftw3f -lcurl -lm
# Note
# gcc is a bit faster that clang on this app
# for dbg: -Wall -fsanitize=address
2016-06-11 21:34:36 +00:00
OBJS = rtlsdr_wsprd.o wsprd/wsprd.o wsprd/wsprsim_utils.o wsprd/wsprd_utils.o wsprd/tab.o wsprd/fano.o wsprd/nhash.o
2016-06-11 21:34:36 +00:00
TARGETS = rtlsdr_wsprd
2021-12-04 03:05:29 +00:00
.PHONY: all clean
all: $(TARGETS)
2016-06-11 21:34:36 +00:00
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
rtlsdr_wsprd: $(OBJS)
2021-12-04 03:05:29 +00:00
$(CC) -o $@ $^ $(LIBS)
2016-06-11 21:34:36 +00:00
clean:
rm -f *.o wsprd/*.o $(TARGETS) fftw_wisdom.dat hashtable.txt selftest.iq
2021-12-04 21:44:31 +00:00
install:
install rtlsdr_wsprd /usr/local/bin/rtlsdr_wsprd