summaryrefslogtreecommitdiff
path: root/Makefile
blob: 35c00a467bc5a8552efc1969555bdf48b8f146a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC = gcc
RAYLIB = ../raylib
INCDIR = -I$(RAYLIB)/src
CFLAGS += -Wall $(INCDIR)
LDFLAGS += $(LIBDIR)
LIBRAYLIB = $(RAYLIB)/release/linux/libraylib.a
LIBGLFW3 = $(RAYLIB)/src/external/glfw3/lib/linux/libglfw3.a
LDLIBS += $(LIBRAYLIB) $(LIBGLFW3) -lm -ldl -lpthread -lX11 -lXrandr \
	-lXinerama -lXi -lXxf86vm -lXcursor

breakout: main.c timer.c
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)

.PHONY: clean
clean:
	rm -f breakout