diff options
| author | Ray <raysan5@gmail.com> | 2016-04-06 17:12:03 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-04-06 17:12:03 +0200 |
| commit | 1a2a44200aea871739f0609abb353f40da08dab3 (patch) | |
| tree | 577d4991a1d7a1067f157c176242b3f1d7488dc7 /src | |
| parent | 0133917bf93fd3efd9580db6ff31126c58bf38f4 (diff) | |
| parent | 93616157862ab9557c42494e23fc96d9d4de21d1 (diff) | |
| download | raylib-1a2a44200aea871739f0609abb353f40da08dab3.tar.gz raylib-1a2a44200aea871739f0609abb353f40da08dab3.zip | |
Merge pull request #108 from LelixSuper/develop
Fix Makefile files
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/Makefile b/src/Makefile index 76dbfc67..12f4609b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -21,6 +21,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB PLATFORM ?= PLATFORM_DESKTOP @@ -97,9 +99,9 @@ else endif -# typing 'make' will invoke the first target entry in the file, -# in this case, the 'default' target entry is raylib -default: raylib +# typing 'make' will invoke the default target entry called 'all', +# in this case, the 'default' target entry is basic_game +all: raylib # compile raylib library raylib: $(OBJS) @@ -161,22 +163,22 @@ gestures.o: gestures.c # clean everything clean: ifeq ($(PLATFORM),PLATFORM_DESKTOP) - ifeq ($(PLATFORM_OS),OSX) - rm -f *.o libraylib.a + ifeq ($(PLATFORM_OS),WINDOWS) + del *.o libraylib.a else - ifeq ($(PLATFORM_OS),LINUX) rm -f *.o libraylib.a - else - del *.o libraylib.a endif +endif +ifeq ($(PLATFORM),PLATFORM_WEB) + ifeq ($(PLATFORM_OS),WINDOWS) + del *.o libraylib.bc + else + rm -f *.o libraylib.bc endif endif ifeq ($(PLATFORM),PLATFORM_RPI) rm -f *.o libraylib.a endif -ifeq ($(PLATFORM),PLATFORM_WEB) - del *.o libraylib.bc -endif @echo Cleaning done # instead of defining every module one by one, we can define a pattern |
