aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLelixSuper <emanuele98@openmailbox.org>2016-07-17 17:23:41 +0200
committerLelixSuper <emanuele98@openmailbox.org>2016-07-17 17:23:41 +0200
commit13c56887f11b0def4e2b55f9514c2aaceeb0e4c7 (patch)
treeecf65fcc1271c560de8c5a8fdee6a062057b4538 /src
parent2272a4722fc22fd700e03511a956d382f391a8dd (diff)
downloadraylib-13c56887f11b0def4e2b55f9514c2aaceeb0e4c7.tar.gz
raylib-13c56887f11b0def4e2b55f9514c2aaceeb0e4c7.zip
fix 'external/stb_vorbis.c" compilation
Diffstat (limited to 'src')
-rw-r--r--src/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile
index 6c1a2a7c..29d4f398 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -105,9 +105,7 @@ endif
# The wildcard takes all files that finish with ".c", then it replaces the
# extentions with ".o", that are the object files.
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
-
-AUDIO_PREREQUISITES = external/stb_vorbis.o external/jar_xm.h \
- external/jar_mod.h
+OBJS += external/stb_vorbis.o
# typing 'make', it will invoke the first target on the file.
# The target 'all' compile raylib into static, web and dynamic library.
@@ -123,6 +121,8 @@ libraylib.bc : $(OBJS)
emcc -O1 $(OBJS) -o $@
@echo "libraylib.bc generated (web version)!"
+# compile all modules with relative prerequisites (header files of the
+# project).
camera.o : camera.c camera.h raylib.h
$(CC) -c $< $(CFLAGS) $(INCLUDES)
@@ -150,8 +150,8 @@ textures.o : textures.c rlgl.h utils.h
utils.o : utils.c utils.h
$(CC) -c $< $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
-audio.o : audio.c audio.h external/stb_vorbis.o
- $(CC) -c $< external/stb_vorbis.o $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
+audio.o : audio.c audio.h
+ $(CC) -c $< $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
# compile stb_vorbis library
external/stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h