From 7a080b6d053fd0965641ee38dcd55fb7f015ebba Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Wed, 7 Sep 2016 18:22:41 +0300 Subject: Initial commit --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35c00a4 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 -- cgit v1.2.3