forked from iamgreaser/iceball
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.osx
32 lines (25 loc) · 916 Bytes
/
Makefile.osx
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
CFLAGS = -fno-strict-aliasing -g -Wall -Wextra \
-Wno-unused-variable -Wno-unused-parameter \
$(CFLAGS_EXTRA) \
-DUSE_OPENGL -DAPPLE \
-I $(INCDIR) -Ixlibinc \
$(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 = -lsackit
LIBS_gl = -L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL
LIBS = -Lxlibinc -lm $(LIBS_Lua) $(LIBS_SDL) $(LIBS_zlib) $(LIBS_sackit) $(LIBS_gl) -lGLEW $(LIBS_ENet)
BINNAME = iceball-gl
RENDERER = gl
OBJDIR = build/osx_gl
include main.make