|
@@ -105,9 +105,7 @@ endif
|
|
# The wildcard takes all files that finish with ".c", then it replaces the
|
|
# The wildcard takes all files that finish with ".c", then it replaces the
|
|
# extentions with ".o", that are the object files.
|
|
# extentions with ".o", that are the object files.
|
|
OBJS = $(patsubst %.c, %.o, $(wildcard *.c))
|
|
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.
|
|
# typing 'make', it will invoke the first target on the file.
|
|
# The target 'all' compile raylib into static, web and dynamic library.
|
|
# The target 'all' compile raylib into static, web and dynamic library.
|
|
@@ -123,6 +121,8 @@ libraylib.bc : $(OBJS)
|
|
emcc -O1 $(OBJS) -o $@
|
|
emcc -O1 $(OBJS) -o $@
|
|
@echo "libraylib.bc generated (web version)!"
|
|
@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
|
|
camera.o : camera.c camera.h raylib.h
|
|
$(CC) -c $< $(CFLAGS) $(INCLUDES)
|
|
$(CC) -c $< $(CFLAGS) $(INCLUDES)
|
|
|
|
|
|
@@ -150,8 +150,8 @@ textures.o : textures.c rlgl.h utils.h
|
|
utils.o : utils.c utils.h
|
|
utils.o : utils.c utils.h
|
|
$(CC) -c $< $(CFLAGS) $(INCLUDES) -D$(PLATFORM)
|
|
$(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
|
|
# compile stb_vorbis library
|
|
external/stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h
|
|
external/stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h
|