aboutsummaryrefslogtreecommitdiff
path: root/extra/Makefile
blob: ff10a08d7763197a81c8e04e8deb9a8645e6f74e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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