summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-10-27 20:42:21 +0000
committerFreeArtMan <dos21h@gmail.com>2015-10-27 20:42:21 +0000
commit80971b7c44ef1066b6555c5802b1f1d67e20bed2 (patch)
tree7503db15a306a8154a62824a94f6db99db72c648
parent773b4b739130078fe18b68f3d06ee0e67d3dafaf (diff)
parentc2c267b5c9121d54d0a4358ecff88babd3b05d13 (diff)
downloadradiola-80971b7c44ef1066b6555c5802b1f1d67e20bed2.tar.gz
radiola-80971b7c44ef1066b6555c5802b1f1d67e20bed2.zip
Merge pull request #1 from Derecho/master
Added compilation with C11 on version of gcc 4.9.2 doesnt compile in C11 by default, but gcc 5.2 compiles by default. Added missing repository creation. thx goes to Derecho
-rw-r--r--Makefile4
-rw-r--r--test/Makefile2
2 files changed, 5 insertions, 1 deletions
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)
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)