From b72841e3ff7220c7db44ae523c173321d5750497 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 3 Jul 2022 23:06:09 -0400 Subject: initial commit --- extra/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extra/Makefile (limited to 'extra/Makefile') 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) -- cgit