diff options
author | Charadon <dev@iotib.net> | 2022-06-23 19:08:04 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-23 19:08:04 -0400 |
commit | c020a309846d9d20be1badd28e592da161d1761f (patch) | |
tree | 3261c4d210c8bdda45db82186d7153a3dbe575b3 /Pong.make | |
parent | 3d0915d1265280ecb070da15cd7a31e9a0b16e7c (diff) | |
download | Pong-C-c020a309846d9d20be1badd28e592da161d1761f.tar.gz |
Migrated code to ANSI C
Diffstat (limited to 'Pong.make')
-rw-r--r-- | Pong.make | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Pong.make b/Pong.make index 1257627..50abfbf 100644 --- a/Pong.make +++ b/Pong.make @@ -26,7 +26,7 @@ DEFINES += INCLUDES += FORCE_INCLUDE += ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) -ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Og -g -ggdb `pkg-config --cflags raylib` `pkg-config --cflags glfw3` `pkg-config --cflags gl` `pkg-config --cflags sdl2` `pkg-config --cflags SDL2_mixer` `pkg-config --cflags glu` +ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -Og -std=c89 -g -ggdb `pkg-config --cflags raylib` `pkg-config --cflags glfw3` `pkg-config --cflags gl` `pkg-config --cflags sdl2` `pkg-config --cflags SDL2_mixer` `pkg-config --cflags glu` ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -Og -g -ggdb `pkg-config --cflags raylib` `pkg-config --cflags glfw3` `pkg-config --cflags gl` `pkg-config --cflags sdl2` `pkg-config --cflags SDL2_mixer` `pkg-config --cflags glu` ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) LIBS += @@ -51,6 +51,7 @@ GENERATED := OBJECTS := GENERATED += $(OBJDIR)/ball.o +GENERATED += $(OBJDIR)/controls.o GENERATED += $(OBJDIR)/enemy.o GENERATED += $(OBJDIR)/main.o GENERATED += $(OBJDIR)/marathon.o @@ -58,6 +59,7 @@ GENERATED += $(OBJDIR)/pause.o GENERATED += $(OBJDIR)/title.o GENERATED += $(OBJDIR)/versus.o OBJECTS += $(OBJDIR)/ball.o +OBJECTS += $(OBJDIR)/controls.o OBJECTS += $(OBJDIR)/enemy.o OBJECTS += $(OBJDIR)/main.o OBJECTS += $(OBJDIR)/marathon.o @@ -130,6 +132,9 @@ endif $(OBJDIR)/ball.o: src/ball.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" +$(OBJDIR)/controls.o: src/controls.c + @echo $(notdir $<) + $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/enemy.o: src/enemy.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" |