summaryrefslogtreecommitdiff
path: root/Makefile.mingw
blob: dd4c833be62333801b27b833259744af98d5e7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC = i686-w64-mingw32-gcc
RAYLIB = ../raylib
INCDIR = -I$(RAYLIB)/src
CFLAGS += -Wall $(INCDIR)
LDFLAGS += $(LIBDIR)
LIBRAYLIB = $(RAYLIB)/release/win32/mingw32/libraylib.a
LIBGLFW3 = $(RAYLIB)/src/external/glfw3/lib/win32/libglfw3.a
LDLIBS += $(LIBRAYLIB) $(LIBGLFW3) -lgdi32

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

.PHONY: clean
clean:
	rm -f breakout