diff options
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile new file mode 100644 index 0000000..8e36d37 --- /dev/null +++ b/test/Makefile @@ -0,0 +1,15 @@ +CC=gcc +CFLAGS=-I../../r820t/include +LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t + +SOURCE += $(wildcard *.c) +BIN = $(SOURCE:.c=) + +make: $(BIN) + @echo $< + +%: %.c + $(CC) $(LDFLAGS) $(CFLAGS) $< -o $@ + +clean: + rm -f $(BIN)
\ No newline at end of file |