From 509c6f05b2ae770b9bee253621fad7be442fac1e Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Tue, 22 Dec 2015 21:39:13 +0000 Subject: Added BSD makefile to compile tests that are compilable --- test/Makefile.bsd | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/Makefile.bsd (limited to 'test/Makefile.bsd') diff --git a/test/Makefile.bsd b/test/Makefile.bsd new file mode 100644 index 0000000..0befdba --- /dev/null +++ b/test/Makefile.bsd @@ -0,0 +1,19 @@ +CC=gcc +CFLAGS=-std=gnu11 -I../ +#LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t +LDFLAGS=`pkg-config --libs libusb` -lrtlsdr -lm ../radiola.o +SOURCE = get_device_list.c read_samples.c sdr_fm.c ui_tui_waterfall.c +OBJECTS = +BIN = $(SOURCE:.c=) + + +%: %.c + $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@ + +%.o: %.c + $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ + +make: $(BIN) + +clean: + rm -f $(BIN) -- cgit v1.2.3