Review build system for Android and RPI
This commit is contained in:
parent
b2a5390adb
commit
4a7e522d4b
4 changed files with 18 additions and 16 deletions
11
src/makefile
11
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),LINUX)
|
||||
find . -type f -executable -delete
|
||||
rm -f *.o libraylib.a
|
||||
endif
|
||||
ifeq ($(SUBPLATFORM),OSX)
|
||||
rm -f *.o libraylib.a
|
||||
else
|
||||
ifeq ($(SUBPLATFORM),LINUX)
|
||||
find . -type f -executable -delete
|
||||
rm -f *.o libraylib.a
|
||||
else
|
||||
del *.o libraylib.a
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifeq ($(PLATFORM),PLATFORM_RPI)
|
||||
rm -f *.o libraylib.a
|
||||
|
|
|
|||
Loading…
Reference in a new issue