summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRay <[email protected]>2021-10-21 21:17:25 +0200
committerRay <[email protected]>2021-10-21 21:17:25 +0200
commit317db34059825894c71efe0d8eb52354c84a2c66 (patch)
treeda6611cb145e9eff796b38d60fac9b57fadab8a5 /src/Makefile
parent1d61be58047eaefc0ece13e7d1247ccd5c25fe45 (diff)
downloadraylib-317db34059825894c71efe0d8eb52354c84a2c66.tar.gz
raylib-317db34059825894c71efe0d8eb52354c84a2c66.zip
Reviewed to support raygui and physac on building
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile
index ea9c776f..0d603771 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -581,19 +581,19 @@ raudio.o : raudio.c raylib.h
# Compile raygui module
# NOTE: raygui header should be distributed with raylib.h
-raygui.o : raygui.c raygui.h gui_textbox_extended.h ricons.h
+raygui.o : raygui.c
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -DRAYGUI_IMPLEMENTATION
raygui.c:
- echo '#define RAYGUI_IMPLEMENTATION' > raygui.c
- echo '#include "$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h"' >> raygui.c
+ echo #define RAYGUI_IMPLEMENTATION > raygui.c
+ echo #include "$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h" >> raygui.c
# Compile physac module
# NOTE: physac header should be distributed with raylib.h
-physac.o : physac.c physac.h
+physac.o : physac.c
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -DPHYSAC_IMPLEMENTATION
physac.c:
- @echo '#define PHYSAC_IMPLEMENTATION > physac.c
- @echo '#include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h"' >> physac.c
+ @echo #define PHYSAC_IMPLEMENTATION > physac.c
+ @echo #include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h" >> physac.c
# Compile android_native_app_glue module
android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c