change make for header

This commit is contained in:
Gunko Vadim 2022-01-16 19:39:00 +05:00 committed by GitHub
parent 5ac07122bd
commit 54cded2f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -632,7 +632,7 @@ raudio.o : raudio.c raylib.h
# Compile raygui module
# NOTE: raygui header should be distributed with raylib.h
raygui.o : raygui.c
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -DRAYGUI_IMPLEMENTATION
raygui.c:
echo #define RAYGUI_IMPLEMENTATION > raygui.c
echo #include "$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h" >> raygui.c
@ -640,7 +640,7 @@ raygui.c:
# Compile physac module
# NOTE: physac header should be distributed with raylib.h
physac.o : physac.c
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS)
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -DPHYSAC_IMPLEMENTATION
physac.c:
@echo #define PHYSAC_IMPLEMENTATION > physac.c
@echo #include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h" >> physac.c