aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/makefile b/src/makefile
index 69e7862b..0c078e86 100644
--- a/src/makefile
+++ b/src/makefile
@@ -24,7 +24,7 @@
#**************************************************************************************************
# define raylib platform (by default, compile for RPI)
-# Other possible platform: PLATFORM_DESKTOP
+# Other possible platforms: PLATFORM_DESKTOP PLATFORM_DESKTOP_LINUX
PLATFORM ?= PLATFORM_RPI
# define raylib graphics api depending on selected platform
@@ -120,8 +120,13 @@ clean:
ifeq ($(PLATFORM),PLATFORM_RPI)
rm -f *.o libraylib.a
else
+ifeq ($(PLATFORM),PLATFORM_DESKTOP_LINUX)
+ find . -type f -executable -delete
+ rm -f *.o libraylib.a
+else
del *.o libraylib.a
endif
+endif
@echo Cleaning done
# instead of defining every module one by one, we can define a pattern