about summary refs log tree commit diff stats
path: root/Pong.make
diff options
context:
space:
mode:
Diffstat (limited to 'Pong.make')
-rw-r--r--Pong.make7
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 "$<"