-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile.osx
32 lines (19 loc) · 1021 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
#https://www.macports.org/install.php
#port selfupdate
#port upgrade outdated
#port install gtkglext
#port install gtksourceview2
#port install lua
#export PATH="${PATH}:~/.local/bin"
#export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/opt/X11/lib/pkgconfig"
INCLUDES = -I./
LIBS = -lGL -lGLU -lX11 -lm -lpthread -lstdc++ -lXext -ldl -lXi -lxcb -lXau -lXdmcp -lc `pkg-config gtk+-2.0 --libs` `pkg-config gtk+-2.0 --cflags` `pkg-config gtkglext-x11-1.0 --libs` `pkg-config gtkglext-x11-1.0 --cflags`
LIBS += `pkg-config gtksourceview-2.0 --libs` `pkg-config gtksourceview-2.0 --cflags`
LIBS += `pkg-config lua --libs` `pkg-config lua --cflags`
CFLAGS+="-DHERSHEY_FONTS_DIR=\"./\""
CFLAGS+="-DUSE_POSTCAM"
all: cammill
cammill: main.c pocket.c calc.c hersheyfont.c postprocessor.c setup.c dxf.c dxf.h font.c font.h texture.c
clang -Wall -Wno-unknown-pragmas -O3 -o cammill main.c pocket.c calc.c hersheyfont.c postprocessor.c setup.c dxf.c font.c texture.c ${LIBS} ${INCLUDES} -DOSX ${CFLAGS}
clean:
rm -rf cammill