Ver código fonte

Reviewed to support raygui and physac on building

pull/2076/head
Ray 4 anos atrás
pai
commit
317db34059
1 arquivos alterados com 6 adições e 6 exclusões
  1. +6
    -6
      src/Makefile

+ 6
- 6
src/Makefile Ver arquivo

@ -581,19 +581,19 @@ raudio.o : raudio.c raylib.h
# Compile raygui module # Compile raygui module
# NOTE: raygui header should be distributed with raylib.h # 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 $(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -DRAYGUI_IMPLEMENTATION
raygui.c: raygui.c:
echo s1">'#define RAYGUI_IMPLEMENTATION' > raygui.c
echo s1">'#include "$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h"' >> raygui.c
echo c1">#define RAYGUI_IMPLEMENTATION > raygui.c
echo c1">#include "$(RAYLIB_MODULE_RAYGUI_PATH)/raygui.h" >> raygui.c
# Compile physac module # Compile physac module
# NOTE: physac header should be distributed with raylib.h # 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 $(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -DPHYSAC_IMPLEMENTATION
physac.c: physac.c:
@echo err">'#define PHYSAC_IMPLEMENTATION > physac.c
@echo s1">'#include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h"' >> physac.c
@echo #define PHYSAC_IMPLEMENTATION > physac.c
@echo c1">#include "$(RAYLIB_MODULE_PHYSAC_PATH)/physac.h" >> physac.c
# Compile android_native_app_glue module # Compile android_native_app_glue module
android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c android_native_app_glue.o : $(NATIVE_APP_GLUE)/android_native_app_glue.c

Carregando…
Cancelar
Salvar