forked from krishauser/Klampt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.config.ubuntu
executable file
·87 lines (68 loc) · 2.29 KB
/
Makefile.config.ubuntu
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
##################################################
# Custom Makefile configuration
##################################################
##################################################
# Edit the following to suit your configuration
##################################################
CC=g++
BUILDNAME=linux
## Default Settings
TINYXML=Library/tinyxml
GLUT=/usr
#if you installed GLUI on your system already using apt-get, set this line
#GLUI = /usr
GLUI=Library/glui-2.36/src
ODE=Library/ode-0.11.1
KRISLIB=Library/KrisLibrary
FREEGLUT=1
ODEDOUBLE=1
#turn this on if you built KrisLibrary with Assimp loading
HAVE_ASSIMP=0
ASSIMP=Library/assimp--3.0.1270-sdk
##################################################
# Probably don't have to modify the following,
# but can if needed
##################################################
ifeq ($(BUILDNAME),MacOSX)
DEFINES+=MAC_OS_X
endif
ifeq ($(BUILDNAME),linux)
DEFINES+=LINUX
endif
ifeq ($(CYGWIN),1)
DEFINES+=CYGWIN
endif
ODECONFIG = --enable-shared --with-trimesh=none
ifeq ($(ODEDOUBLE),1)
DEFINES += dDOUBLE
ODECONFIG += --enable-double-precision
endif
# if you're running cygwin on windows, this allows you to build GestureGUI
#DEFINES += WM_TOUCH_SUPPORT
# this allows you to use the 3Dconnexion mouse
#DEFINES += THREED_MOUSE_SUPPOR
#edit these flags if desired, they're passed to gcc
CPPFLAGS= -g -O2 -Wall -Wno-uninitialized -fPIC
GLUTLIBS=glui glut GL m GLU Xi Xext Xmu X11
GLUTLIBDIR=$(GLUI)/lib $(GLUT)/lib/glut /usr/X11R6/lib /usr/X11R6/lib/modules/extensions
#May have to add $(GLUT)/include to the following line
#GLUTINCLUDE=$(GLUT)/include $(GLUI)/include/GL
GLUTINCLUDE=$(GLUI)/include/GL
PQPLIBDIR=$(PQP)/lib
#Uncomment this if ODE was built using 'make'
ODELIBDIR=$(ODE)/ode/src/.libs
#uncomment this if ODE was built using 'make install'
#ODELIBDIR=/usr/local/lib
TINYXMLLIBDIR=$(TINYXML)
DEFINES+=TIXML_USE_STL
KRISLIBINCLUDE=$(KRISLIB)
KRISLIBDIR=$(KRISLIB)/lib
#defines for Makefile and Makefile.template
INCDIRS=/usr/include .. ../$(KRISLIBINCLUDE) ../$(GLUTINCLUDE) ../$(ODE)/include ../$(TINYXML)
LIBDIRS=/usr/lib $(GLUTLIBDIR) $(GLPK)/src $(KRISLIBDIR) $(ODELIBDIR) $(TINYXMLLIBDIR)
LIBS=KrisLibrary $(GLUTLIBS) ode tinyxml glpk
ifeq ($(HAVE_ASSIMP),1)
ASSIMPLIBDIR=$(ASSIMP)/lib
LIBDIRS += $(ASSIMPLIBDIR)
LIBS += assimp
endif