~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# $Id: Makefile,v 1.69 2004/04/16 15:55:12 jesterking Exp $
 
2
# $Id: Makefile,v 1.87 2005/05/22 01:21:01 sgefant Exp $
3
3
#
4
4
# ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
5
5
#
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
 
 
 
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
92
93
 
 
94
 
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
148
155
  endif
186
193
        ifeq ($(OS), darwin)
187
194
            COMLIB += $(NAN_GETTEXT)/lib/libintl.a
188
195
        endif
 
196
        ifeq ($(OS), solaris)
 
197
            COMLIB += $(NAN_GETTEXT)/lib/libintl.a
 
198
        endif
189
199
endif
190
200
 
191
201
ifeq ($(OS), irix)
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) 
 
290
 
 
291
    ifdef PY_FRAMEWORK
 
292
        PYLIB = -framework Python
 
293
    else 
 
294
        PYLIB = $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a
 
295
    endif
284
296
endif
285
297
 
286
298
ifeq ($(OS),freebsd)
311
323
    BINTARGETS += blenderplayer
312
324
  endif
313
325
  ifeq ($(CPU),i386)
314
 
    BINTARGETS = plugin
315
 
    # BINTARGETS += ptest
316
 
    BINTARGETS += xplink
317
 
    BINTARGETS += blenderdynamic
 
326
    BINTARGETS = blenderdynamic
318
327
    BINTARGETS += blenderplayer
319
328
    BINTARGETS += blenderstatic
 
329
    ifneq ($(NAN_NO_PLUGIN),true)
 
330
        BINTARGETS += plugin xplink
 
331
    endif
320
332
  endif
321
333
  ifeq ($(CPU),powerpc)
322
334
    BINTARGETS = blenderdynamic
323
335
    BINTARGETS += blenderstatic
 
336
    BINTARGETS += blenderplayer
324
337
  endif
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)
363
376
else
364
377
  ifeq ($(OS),$(findstring $(OS), "freebsd linux windows"))
365
 
    ifeq ($(CPU),$(findstring $(CPU), "i386 powerpc"))
366
 
      ifeq ($(OS),freebsd)
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)
373
 
      else
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)
380
 
      endif
 
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)
381
385
    else
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)
402
406
    else
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)
 
414
      else
 
415
        NAN_SND_LIBS =  $(SOUNDSYSTEM)
 
416
        NAN_SND_LIBS += $(DUMMYSOUND)
 
417
        NAN_SND_LIBS += $(SOUNDSYSTEM)
 
418
      endif
406
419
    endif
407
420
  endif
408
421
endif
411
424
        ifeq ($(FREE_WINDOWS),true)
412
425
                PYLIB = $(NAN_PYTHON)/lib/freepy.a
413
426
    else
414
 
                PYLIB = $(NAN_PYTHON)/lib/python22.lib
 
427
                PYLIB = $(NAN_PYTHON)/lib/python23.lib
415
428
    endif
416
429
    
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
434
447
 
435
 
  ifdef NAN_PLAYERSTATIC
436
 
    PYPLAYERLIB = $(NAN_PYTHON)/static/python20.lib
437
 
    BINTARGETS = blenderplayer
438
 
 
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
444
 
 
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)
448
 
    endif
449
 
  else
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)
453
 
    endif
454
 
  endif
 
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
 
452
  #
 
453
  #ifdef NAN_PLAYERSTATIC
 
454
  #  PYPLAYERLIB = $(NAN_PYTHON)/static/python20.lib
 
455
  #  BINTARGETS = blenderplayer
 
456
  #
 
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
 
462
  #
 
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)
 
466
  #  endif
 
467
  #else
 
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)
 
471
  #  endif
 
472
  #endif
455
473
endif
456
474
 
457
475
ifeq ($(NAN_JUST_BLENDERDYNAMIC),true)
504
522
    endif
505
523
 
506
524
linkclean:
 
525
ifeq ($(OS),darwin)
 
526
        @$(RM) -r $(DIR)/blenderstatic* \
 
527
                  $(DIR)/blenderplayer* \
 
528
                  $(DIR)/bin/*
 
529
else
507
530
        @$(RM) $(DIR)/blenderstatic* \
508
531
                $(DIR)/blenderplayer* \
509
532
                $(DIR)/bin/*
 
533
endif
510
534
 
511
535
debuglinkclean:
 
536
ifeq ($(OS),darwin)
 
537
        @$(RM) -r $(DIR)/debug/blenderstatic* \
 
538
                  $(DIR)/debug/blenderplayer* \
 
539
                  $(DIR)/debug/bin/*
 
540
else
512
541
        @$(RM) $(DIR)/debug/blenderstatic* \
513
542
                $(DIR)/debug/blenderplayer* \
514
543
                $(DIR)/debug/bin/*
 
544
endif
515
545
 
516
546
# Shortcut for Tinderbox release builds. Mortals don't use this.
517
547
release: