aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-01-04 18:05:50 +0100
committerraysan5 <raysan5@gmail.com>2015-01-04 18:05:50 +0100
commit4a7e522d4bb376d2277895d1d99eb0382f8bbefb (patch)
tree0410f5604cc3cfc036f6c1f3ac4333ac33726660 /src/makefile
parentb2a5390adbfb3f88ecc94e977c56bc00fac4cfbc (diff)
downloadraylib-4a7e522d4bb376d2277895d1d99eb0382f8bbefb.tar.gz
raylib-4a7e522d4bb376d2277895d1d99eb0382f8bbefb.zip
Review build system for Android and RPI1.2.2
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/makefile b/src/makefile
index 6f402713..8566abe4 100644
--- a/src/makefile
+++ b/src/makefile
@@ -31,7 +31,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(OS),Windows_NT)
SUBPLATFORM=WINDOWS
else
- UNAMEOS = $(shell uname -s)
+ UNAMEOS:=$(shell uname)
ifeq ($(UNAMEOS),Linux)
SUBPLATFORM=LINUX
else
@@ -144,15 +144,16 @@ stb_vorbis.o: stb_vorbis.c
# clean everything
clean:
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ ifeq ($(SUBPLATFORM),OSX)
+ rm -f *.o libraylib.a
+ else
ifeq ($(SUBPLATFORM),LINUX)
find . -type f -executable -delete
rm -f *.o libraylib.a
- endif
- ifeq ($(SUBPLATFORM),OSX)
- rm -f *.o libraylib.a
else
del *.o libraylib.a
endif
+ endif
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
rm -f *.o libraylib.a