4 # ***** BEGIN GPL LICENSE BLOCK *****
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; either version 2
9 # of the License, or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software Foundation,
18 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 # The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 # All rights reserved.
23 # The Original Code is: all of this file.
25 # Contributor(s): none yet.
27 # ***** END GPL LICENSE BLOCK *****
31 include nan_definitions.mk
34 LDFLAGS += $(NAN_DEBUG)
39 ifneq (x$(DEBUG_DIR), x)
40 LDFLAGS+=$(DBG_LDFLAGS)
42 LDFLAGS+=$(REL_LDFLAGS)
45 ######################## OS dependencies (alphabetic!) ################
47 # default (overriden by windows)
51 LLIBS = -L/boot/develop/lib/x86/ -lGL -lbe -L/boot/home/config/lib/
57 ifdef USE_OSX10.4STUBS
60 LLIBS += -framework Carbon -framework AGL -framework OpenGL
61 LLIBS += -framework QuickTime -framework CoreAudio
62 LLIBS += -framework AudioUnit -framework AudioToolbox
63 LDFLAGS += -L/System/Library/Frameworks/OpenGL.framework/Libraries
64 DBG_LDFLAGS += -L/System/Library/Frameworks/OpenGL.framework/Libraries
68 LLIBS = -L/usr/X11R6/lib -lX11 -lXmu -lXi -lm -lutil -lz -pthread -lc_r
70 DYNLDFLAGS = -shared $(LDFLAGS)
71 LOPTS = -Wl,--export-dynamic
76 LLIBS = -lmovieGL -lGLU -lGL -lXmu -lXext -lX11 -lc -lm -ldmedia
77 LLIBS += -lcl -laudio -ldb -lCio -lz
80 DYNLDFLAGS = -shared $(LDFLAGS)
86 LLIBS = -lGL -lGLU -L/usr/X11R6/lib/ -lXmu -lXext -lX11
87 LLIBS += -lc -lm -ldl -lutil
88 LOPTS = -export-dynamic
90 ifeq ($(CPU),$(findstring $(CPU), "i386 x86_64 ia64 parisc64 powerpc sparc64"))
92 LLIBS = -L$(NAN_MESA)/lib -L/usr/X11R6/lib -lXmu -lXext -lX11 -lXi
93 LLIBS += -lutil -lc -lm -ldl -lpthread
94 # LLIBS += -L$(NAN_ODE)/lib -lode
95 LOPTS = -export-dynamic
97 SADD = $(NAN_MESA)/lib/libGL.a $(NAN_MESA)/lib/libGLU.a
98 DYNLDFLAGS = -shared $(LDFLAGS)
104 SADD = /usr/local/lib/libGL.a /usr/local/lib/libGLU.a
105 SADD += /usr/X11R6/lib/libXmu.a /usr/X11R6/lib/libXext.a
106 SADD += /usr/X11R6/lib/libX11.a /usr/lib/libm.a -pthread
110 ifeq (x86_64, $(findstring x86_64, $(CPU)))
112 LLIBS += -L$(NAN_MESA)/lib/amd64
114 LLIBS += -L$(NAN_MESA)/lib
117 LLIBS += -lGLU -lGL -lXmu -lXext -lXi -lX11 -lc -lm -ldl -lsocket -lnsl
118 DYNLDFLAGS = -shared $(LDFLAGS)
124 ifeq ($(FREE_WINDOWS),true)
125 MINGWLIB = /usr/lib/w32api
126 LDFLAGS += -mwindows -mno-cygwin -mconsole
127 DADD += -L/usr/lib/w32api -lnetapi32 -lopengl32 -lglu32 -lshfolder
128 DADD += -L/usr/lib/w32api -lwinmm -lwsock32
129 ifeq ($(WITH_VERSE),true)
133 DADD = kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
134 DADD += advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
135 DADD += vfw32.lib winmm.lib opengl32.lib glu32.lib largeint.lib dxguid.lib
138 LOPTS += /NODEFAULTLIB:"libc"
139 LOPTS += /NODEFAULTLIB:"libcd"
140 LOPTS += /NODEFAULTLIB:"libcp"
141 LOPTS += /NODEFAULTLIB:"libcpd"
142 LOPTS += /NODEFAULTLIB:"python20"
143 LOPTS += /NODEFAULTLIB:"msvcrt"
144 LOPTS += /SUBSYSTEM:CONSOLE
151 LLIBS += $(NAN_SDLLIBS)
154 ifeq ($(WITH_ICONV),true)
155 LLIBS += $(NAN_ICONV_LIBS)
158 ifeq ($(WITH_FFMPEG),true)
159 LLIBS += $(NAN_FFMPEGLIBS)
162 ifeq ($(INTERNATIONAL),true)
163 LLIBS += $(NAN_GETTEXT_LIB)
166 ifeq ($(WITH_BF_OPENMP),true)
170 LLIBS += $(NAN_PYTHON_LIB)