From 13c56887f11b0def4e2b55f9514c2aaceeb0e4c7 Mon Sep 17 00:00:00 2001 From: LelixSuper Date: Sun, 17 Jul 2016 17:23:41 +0200 Subject: [PATCH] fix 'external/stb_vorbis.c" compilation --- src/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6c1a2a7c3..29d4f3982 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