aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2014-11-24 16:05:41 +0100
committerRay <raysan5@gmail.com>2014-11-24 16:05:41 +0100
commitd16519f5de1d20dd2c2a3dc187666819479a5a11 (patch)
treecd5368e64893d3a557df9ddd7c32c0720984069b /src/makefile
parent45b214d83e7469a64793ac4dcebaa0ab963668ef (diff)
parentfcff83e65cebb0c9767f076e8ccfaf6b6bfb8d95 (diff)
downloadraylib-d16519f5de1d20dd2c2a3dc187666819479a5a11.tar.gz
raylib-d16519f5de1d20dd2c2a3dc187666819479a5a11.zip
Merge pull request #9 from raysan5/master
Populate master changes to develop branch
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/makefile b/src/makefile
index 69e7862b..bb37748a 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
@@ -49,7 +49,7 @@ CC = gcc
ifeq ($(PLATFORM),PLATFORM_RPI)
CFLAGS = -O2 -Wall -std=gnu99 -fgnu89-inline
else
- CFLAGS = -O2 -Wall -std=c99
+ CFLAGS = -O2 -Wall -std=c99 -fgnu89-inline
endif
#CFLAGSEXTRA = -Wextra -Wmissing-prototypes -Wstrict-prototypes
@@ -61,7 +61,7 @@ else
endif
# define all object files required
-OBJS = core.o rlgl.o raymath.o shapes.o text.o textures.o models.o audio.o utils.o stb_image.o stb_vorbis.o
+OBJS = core.o rlgl.o raymath.o shapes.o text.o textures.o models.o audio.o utils.o stb_vorbis.o
# typing 'make' will invoke the first target entry in the file,
# in this case, the 'default' target entry is raylib
@@ -107,10 +107,6 @@ audio.o: audio.c
utils.o: utils.c
$(CC) -c utils.c $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
-# compile stb_image library
-stb_image.o: stb_image.c
- $(CC) -c stb_image.c $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
-
# compile stb_vorbis library
stb_vorbis.o: stb_vorbis.c
$(CC) -c stb_vorbis.c $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
@@ -120,8 +116,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