aboutsummaryrefslogtreecommitdiff
path: root/test/sdl2/makefile
diff options
context:
space:
mode:
authorheavydemon21 <48092678+heavydemon21@users.noreply.github.com>2023-02-23 16:02:09 +0100
committerGitHub <noreply@github.com>2023-02-23 16:02:09 +0100
commit4764b5ef393d5e4c686817ba03b2f76d7f12bdae (patch)
treecdfc241e63fe2200a3940ccfbdb8c7b9f55ceacd /test/sdl2/makefile
parentcc225651e767340075cc77397c4541860847b31f (diff)
parentccff002705fb2dea16b4a2b733801b8b3fdfde2b (diff)
Merge branch 'lonkaars:dev' into dev
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)
+