aboutsummaryrefslogtreecommitdiff
path: root/extra/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/Makefile')
-rw-r--r--extra/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/Makefile b/extra/Makefile
new file mode 100644
index 0000000..ff10a08
--- /dev/null
+++ b/extra/Makefile
@@ -0,0 +1,13 @@
+CC=gcc
+SRC = $(wildcard *.c)
+OBJS = $(patsubst %.c, %.o, $(SRC))
+NAME = js1
+
+all: $(NAME)
+.PHONY: clean
+
+$(NAME): $(OBJS)
+ $(CC) $(shell pkg-config --cflags sdl2 ) $< $(shell pkg-config --libs sdl2 ) -o $@
+
+clean:
+ rm -f $(OBJS) $(NAME)
bgstack15