]> git.lizzy.rs Git - nothing.git/blob - Makefile
Add README (#3)
[nothing.git] / Makefile
1 OBJS = src/main.o src/player.o src/platforms.o src/rect.o
2 LIBS=$(shell pkg-config gl sdl2 --libs)
3 CFLAGS=-Wall -Werror -std=c11 $(shell pkg-config gl sdl2 --cflags)
4
5 nothing: $(OBJS)
6         cc $(CFLAGS) $(OBJS) -o nothing $(LIBS)
7
8 %.o: %.c
9         cc $(CFLAGS) -c $< -o $@
10
11 .PHONY: clean
12
13 clean:
14         rm -rf nothing $(OBJS)