aboutsummaryrefslogtreecommitdiff
path: root/test/sdl2/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-02-24 12:15:32 +0100
committerlonkaars <loek@pipeframe.xyz>2023-02-24 12:15:32 +0100
commitfd4732181317907d51be645f75d138c2176a8e3b (patch)
tree925fc3a51912d946bec843fe5342e8cac9535e6e /test/sdl2/makefile
parente7fbeb1a6071db070c4c2b21c4c5ed70d53e269b (diff)
parentb2190241fccdfbf28d6068c9f0d2179aec285528 (diff)
merge #16
Diffstat (limited to 'test/sdl2/makefile')
-rw-r--r--test/sdl2/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/sdl2/makefile b/test/sdl2/makefile
new file mode 100644
index 0000000..4c26dc3
--- /dev/null
+++ b/test/sdl2/makefile
@@ -0,0 +1,18 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+TARGET = main
+LFLAGS += -lSDL2 -lm
+OBJS += main.o
+
+all: $(TARGET)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) $< -o $@
+
+$(TARGET): $(OBJS)
+ $(LD) $^ $(LFLAGS) -o $@
+
+clean:
+ $(RM) $(TARGET) $(OBJS)
+