Fetching contributors…
Cannot retrieve contributors at this time
33 lines (25 sloc) 916 Bytes
# 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