summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 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)