From 881b5d3ef77ff0f3da59f68085f21626d4fe5b2d Mon Sep 17 00:00:00 2001 From: Derecho Date: Tue, 27 Oct 2015 11:37:43 +0100 Subject: Create required directories in top-level Makefile Added distclean target --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 788987c..1ce692c 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,13 @@ make: $(OBJECTS) ld -r $(OBJECTS_FINAL) -o $(PROJECT).o %.o: %.c + @mkdir -p `dirname $(BUILD_DIR)$@` $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $(BUILD_DIR)$@ clean: rm -f $(PROJECT) rm -f $(OBJECTS_FINAL) rm -f *.o + +distclean: clean + rm -rf $(BUILD_DIR) -- cgit v1.2.3 From c2c267b5c9121d54d0a4358ecff88babd3b05d13 Mon Sep 17 00:00:00 2001 From: Derecho Date: Tue, 27 Oct 2015 11:47:16 +0100 Subject: Compile test programs with C11 support (Using the less strict GNU standard) --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 05714ae..c447b55 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-I../ +CFLAGS=-std=gnu11 -I../ #LDFLAGS= `pkg-config --libs libusb` -L../../../r820t -lr820t -Wl,-rpath=../../../r820t LDFLAGS=`pkg-config --libs libusb` `sdl2-config --cflags --libs` -lrtlsdr -lm ../radiola.o -lasound SOURCE = $(wildcard *.c) -- cgit v1.2.3