-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
31 lines (25 loc) · 884 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# I personally don't care if you steal this makefile. --GM
#-Wno-unused-but-set-variable $(CFLAGS_EXTRA)
CFLAGS = -fno-strict-aliasing -g -Wall -Wextra \
-Wno-unused-variable -Wno-unused-parameter \
$(CFLAGS_EXTRA) \
-Iinclude \
-Ixlibinc \
-I/usr/local/include \
$(HEADERS_SDL) \
$(HEADERS_ENet) \
$(HEADERS_Lua)
HEADERS_SDL = `sdl2-config --cflags`
HEADERS_ENet = `pkg-config libenet --cflags`
HEADERS_Lua = `./findlua.sh --cflags`
LDFLAGS = -g -I/usr/local/include $(LDFLAGS_EXTRA)
LIBS_SDL = `sdl2-config --libs`
LIBS_ENet = `pkg-config libenet --libs`
LIBS_Lua = `./findlua.sh --libs`
# Lua is not an acronym. Get used to typing it with lower case u/a.
LIBS_zlib = -lz
LIBS_sackit = xlibinc/libsackit.a
LIBS = -Lxlibinc -lm $(LIBS_Lua) $(LIBS_SDL) $(LIBS_zlib) $(LIBS_sackit) -lGL -lGLEW $(LIBS_ENet) -ldl
BINNAME = iceball
OBJDIR = build/unix_gl
include main.make