diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-02-23 15:14:36 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-02-23 15:14:36 +0100 |
commit | ccff002705fb2dea16b4a2b733801b8b3fdfde2b (patch) | |
tree | 6d4b628a4c4c14c709dc8fea718bbeccecc4a8f2 /test/sdl2/makefile | |
parent | 6e1cce415050ca82f8243b5ae5a8d1564f311ee8 (diff) |
sdl2 demo
Diffstat (limited to 'test/sdl2/makefile')
-rw-r--r-- | test/sdl2/makefile | 18 |
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) + |