87
87
GRPLIB += $(OCGDIR)/blender/renderconverter/$(DEBUG_DIR)librenderconverter.a
88
88
GRPLIB += $(OCGDIR)/blender/render/$(DEBUG_DIR)librender.a
89
89
GRPLIB += $(OCGDIR)/blender/radiosity/$(DEBUG_DIR)libradiosity.a
90
GRPLIB += $(NAN_OPENNL)/lib/$(DEBUG_DIR)libopennl.a
91
GRPLIB += $(NAN_SUPERLU)/lib/$(DEBUG_DIR)libsuperlu.a
91
92
GRPLIB += $(OCGDIR)/blender/python/$(DEBUG_DIR)libpython.a
93
95
# nlin: the reason that some libraries appear more than once below is
94
96
# to handle circular dependencies in linking among libraries... some
95
97
# linkers (e.g. under Linux) need libs to be specified multiple times
108
110
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
109
111
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
110
112
COMLIB += $(NAN_SOLID)/lib/libsolid.a
113
COMLIB += $(NAN_SOLID)/lib/libsolid_broad.a
114
COMLIB += $(NAN_SOLID)/lib/libsolid_complex.a
115
COMLIB += $(NAN_SOLID)/lib/libsolid_convex.a
111
116
COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a
112
117
COMLIB += $(OCGDIR)/gameengine/blphys/fuzzics/$(DEBUG_DIR)libfuzzics.a
113
118
COMLIB += $(NAN_QHULL)/lib/libqhull.a
117
122
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
118
123
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
119
124
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
120
COMLIB += $(OCGDIR)/gameengine/blphys/blode/$(DEBUG_DIR)libblode.a
125
# COMLIB += $(OCGDIR)/gameengine/blphys/blode/$(DEBUG_DIR)libblode.a
121
126
# COMLIB += $(OCGDIR)/gameengine/blphys/sumo/$(DEBUG_DIR)libsumo.a
122
127
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
123
128
COMLIB += $(OCGDIR)/gameengine/blphys/common/$(DEBUG_DIR)libcommon.a
125
130
COMLIB += $(OCGDIR)/gameengine/blphys/dummy/$(DEBUG_DIR)libdummy.a
126
131
COMLIB += $(OCGDIR)/gameengine/ketsji/$(DEBUG_DIR)libketsji.a
127
132
COMLIB += $(OCGDIR)/gameengine/logic/$(DEBUG_DIR)liblogic.a
133
COMLIB += $(OCGDIR)/gameengine/logic/Joystick/$(DEBUG_DIR)libJoystick.a
128
134
COMLIB += $(OCGDIR)/gameengine/rasterizer/$(DEBUG_DIR)librasterizer.a
129
135
COMLIB += $(OCGDIR)/gameengine/OpenGLrasterizer/$(DEBUG_DIR)libOpenGLrasterizer.a
130
136
COMLIB += $(OCGDIR)/gameengine/expression/$(DEBUG_DIR)libexpression.a
143
149
COMLIB += $(NAN_BMFONT)/lib/$(DEBUG_DIR)libbmfont.a
144
150
COMLIB += $(NAN_PNG)/lib/libpng.a
145
151
COMLIB += $(OCGDIR)/blender/yafray/$(DEBUG_DIR)libyafrayexport.a
152
COMLIB += $(OCGDIR)/blender/blenlib/$(DEBUG_DIR)libblenlib.a
146
153
ifeq ($(WITH_QUICKTIME), true)
147
154
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
277
287
ifeq ($(OS),darwin)
278
288
BINTARGETS = blenderdynamic.app
279
289
BINTARGETS += blenderplayer.app
280
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
281
# Next line would enable MxTextTools (for VRML2 import)
282
# but results in a link error
283
# PYLIB += $(NAN_MXTEXTTOOLS)
292
PYLIB = -framework Python
294
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
286
298
ifeq ($(OS),freebsd)
311
323
BINTARGETS += blenderplayer
313
325
ifeq ($(CPU),i386)
315
# BINTARGETS += ptest
317
BINTARGETS += blenderdynamic
326
BINTARGETS = blenderdynamic
318
327
BINTARGETS += blenderplayer
319
328
BINTARGETS += blenderstatic
329
ifneq ($(NAN_NO_PLUGIN),true)
330
BINTARGETS += plugin xplink
321
333
ifeq ($(CPU),powerpc)
322
334
BINTARGETS = blenderdynamic
323
335
BINTARGETS += blenderstatic
336
BINTARGETS += blenderplayer
325
338
PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
326
339
PYLIB += $(NAN_MXTEXTTOOLS)
362
375
NAN_SND_LIBS += $(SOUNDSYSTEM)
364
377
ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
365
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc"))
367
NAN_SND_LIBS = $(SOUNDSYSTEM)
368
NAN_SND_LIBS += $(DUMMYSOUND)
369
NAN_SND_LIBS += $(OPENALSOUND)
370
NAN_SND_LIBS += $(SDLSOUND)
371
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
372
NAN_SND_LIBS += $(SOUNDSYSTEM)
374
NAN_SND_LIBS = $(SOUNDSYSTEM)
375
NAN_SND_LIBS += $(DUMMYSOUND)
376
NAN_SND_LIBS += $(OPENALSOUND)
377
NAN_SND_LIBS += $(SDLSOUND)
378
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
379
NAN_SND_LIBS += $(SOUNDSYSTEM)
378
ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc x86_64"))
379
NAN_SND_LIBS = $(SOUNDSYSTEM)
380
NAN_SND_LIBS += $(DUMMYSOUND)
381
NAN_SND_LIBS += $(OPENALSOUND)
382
NAN_SND_LIBS += $(SDLSOUND)
383
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
384
NAN_SND_LIBS += $(SOUNDSYSTEM)
382
386
ifeq ($(OS),windows)
383
387
NAN_SND_LIBS = $(SOUNDSYSTEM)
400
404
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
401
405
NAN_SND_LIBS += $(SOUNDSYSTEM)
403
NAN_SND_LIBS = $(SOUNDSYSTEM)
404
NAN_SND_LIBS += $(DUMMYSOUND)
405
NAN_SND_LIBS += $(SOUNDSYSTEM)
407
ifeq ($(OS), solaris)
408
NAN_SND_LIBS = $(SOUNDSYSTEM)
409
NAN_SND_LIBS += $(DUMMYSOUND)
410
NAN_SND_LIBS += $(OPENALSOUND)
411
NAN_SND_LIBS += $(SDLSOUND)
412
NAN_SND_LIBS += $(NAN_OPENAL)/lib/libopenal.a
413
NAN_SND_LIBS += $(SOUNDSYSTEM)
415
NAN_SND_LIBS = $(SOUNDSYSTEM)
416
NAN_SND_LIBS += $(DUMMYSOUND)
417
NAN_SND_LIBS += $(SOUNDSYSTEM)
411
424
ifeq ($(FREE_WINDOWS),true)
412
425
PYLIB = $(NAN_PYTHON)/lib/freepy.a
414
PYLIB = $(NAN_PYTHON)/lib/python22.lib
427
PYLIB = $(NAN_PYTHON)/lib/python23.lib
417
430
PYPLAYERLIB = $(NAN_PYTHON)/static/*.obj
432
445
SPLIB += $(OCGDIR)/blender/icons/$(DEBUG_DIR)winblender.res
433
446
SPLIB += $(NAN_ZLIB)/lib/libz.a
435
ifdef NAN_PLAYERSTATIC
436
PYPLAYERLIB = $(NAN_PYTHON)/static/python20.lib
437
BINTARGETS = blenderplayer
439
NAN_SND_LIBS = $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
440
NAN_SND_LIBS += $(OCGDIR)/intern/DummySoundSystem/$(DEBUG_DIR)libDummySoundSystem.a
441
NAN_SND_LIBS += $(OCGDIR)/intern/OpenALSoundSystem/$(DEBUG_DIR)libOpenALSoundSystem.a
442
NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
443
NAN_SND_LIBS += $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
445
PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_static.h)
446
ifneq (x$(PYINCLUDEOK),x)
447
DUMMY := $(shell cat gameengine/Ketsji/KX_Python_static.h > gameengine/Ketsji/KX_Python.h)
450
PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_dynamic.h)
451
ifneq (x$(PYINCLUDEOK),x)
452
DUMMY := $(shell cat gameengine/Ketsji/KX_Python_dynamic.h > gameengine/Ketsji/KX_Python.h)
448
# This code below seems outdated and doesn't even seem to
449
# apply to the Windows platform. I've commented it
450
# out until someone can take a good look at it and confirm
451
# or deny. If it breaks anything blame Chris Burt / Desoto
453
#ifdef NAN_PLAYERSTATIC
454
# PYPLAYERLIB = $(NAN_PYTHON)/static/python20.lib
455
# BINTARGETS = blenderplayer
457
# NAN_SND_LIBS = $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
458
# NAN_SND_LIBS += $(OCGDIR)/intern/DummySoundSystem/$(DEBUG_DIR)libDummySoundSystem.a
459
# NAN_SND_LIBS += $(OCGDIR)/intern/OpenALSoundSystem/$(DEBUG_DIR)libOpenALSoundSystem.a
460
# NAN_SND_LIBS += $(NAN_OPENAL)/lib/openal_static.lib
461
# NAN_SND_LIBS += $(OCGDIR)/intern/SoundSystem/$(DEBUG_DIR)libSoundSystem.a
463
# PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_static.h)
464
# ifneq (x$(PYINCLUDEOK),x)
465
# DUMMY := $(shell cat gameengine/Ketsji/KX_Python_static.h > gameengine/Ketsji/KX_Python.h)
468
# PYINCLUDEOK := $(shell diff -qbB gameengine/Ketsji/KX_Python.h gameengine/Ketsji/KX_Python_dynamic.h)
469
# ifneq (x$(PYINCLUDEOK),x)
470
# DUMMY := $(shell cat gameengine/Ketsji/KX_Python_dynamic.h > gameengine/Ketsji/KX_Python.h)
457
475
ifeq ($(NAN_JUST_BLENDERDYNAMIC),true)
526
@$(RM) -r $(DIR)/blenderstatic* \
527
$(DIR)/blenderplayer* \
507
530
@$(RM) $(DIR)/blenderstatic* \
508
531
$(DIR)/blenderplayer* \
537
@$(RM) -r $(DIR)/debug/blenderstatic* \
538
$(DIR)/debug/blenderplayer* \
512
541
@$(RM) $(DIR)/debug/blenderstatic* \
513
542
$(DIR)/debug/blenderplayer* \
514
543
$(DIR)/debug/bin/*
516
546
# Shortcut for Tinderbox release builds. Mortals don't use this.