ACGMakefile 3.36 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
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
#==  SYSTEM PART -- DON'T TOUCH  ==============================================
include $(ACGMAKE)/Config
#==============================================================================

#CXX_LDFLAGS += BasePlugin/Debian64_gcc4.0_max/libOpenFlipper_BasePlugin.so

$(info  )
$(info ===================================================================== )


ObjectTypes: PolyLineSupport BSplineCurveSupport BSplineSurfaceSupport SkeletonSupport build

PolyLineSupport:
poly-exists := $(shell test -d $(top-dir)/ObjectTypes/PolyLine && echo poly-found)
ifeq ($(poly-exists), poly-found)
  $(info Found PolyLine Object Type -> Enabled PolyLine Support )
  PROJ_LIBS += ObjectTypes/PolyLine
else
  $(warning No PolyLine Object Found!     -> Disabled PolyLine Support )
endif

BSplineCurveSupport:
bsplinecurve-exists := $(shell test -d $(top-dir)/ObjectTypes/BSplineCurve && echo bsplinecurve-found)
ifeq ($(bsplinecurve-exists), bsplinecurve-found)
  $(info Found BSplineCurve Object Type -> Enabled BSplineCurve Support )
  PROJ_LIBS += ObjectTypes/BSplineCurve
else
  $(warning No BSplineCurve Object Found! -> Disabled BSplineCurve Support )
endif

BSplineSurfaceSupport:
bsplinesurface-exists := $(shell test -d $(top-dir)/ObjectTypes/BSplineSurface && echo bsplinesurface-found)
ifeq ($(bsplinesurface-exists), bsplinesurface-found)
  $(info Found BSplineSurface Object Type -> Enabled BSplineSurface Support )
  PROJ_LIBS += ObjectTypes/BSplineSurface
else
  $(warning No BSplineSurface Object Found! -> Disabled BSplineSurface Support )
endif

SkeletonSupport:
skeleton-exists := $(shell test -d $(top-dir)/ObjectTypes/Skeleton && echo skeleton-found)
ifeq ($(skeleton-exists), skeleton-found)
  $(info Found Skeleton Object Type -> Enabled Skeleton Support )
  PROJ_LIBS += ObjectTypes/Skeleton
else
  $(warning No Skeleton Object Found! -> Disabled Skeleton Support )
endif

$(info ===================================================================== )
$(info  )

SUBDIRS = common widgets Scripting ACGHelper Logging INIFile BasePlugin Core SimpleOpt

PACKAGES := qt4 glut glew opengl x11 math ACG2 openmesh2

PROJ_LIBS += OpenFlipper/BasePlugin \
             OpenFlipper/Core \
             OpenFlipper/ACGHelper \
             OpenFlipper/common \
             OpenFlipper/INIFile \
             OpenFlipper/Logging \
             OpenFlipper/Scripting \
             OpenFlipper/Scripting/scriptPrototypes \
             OpenFlipper/Scripting/scriptWrappers \
             OpenFlipper/widgets/coreWidget \
             OpenFlipper/widgets/helpBrowser \
             OpenFlipper/widgets/loadWidget \
	     OpenFlipper/widgets/unloadPluginsWidget \
             OpenFlipper/widgets/viewModeWidget \
             OpenFlipper/widgets/addEmptyWidget \
71
             OpenFlipper/widgets/optionsWidget \
Jan Möbius's avatar
 
Jan Möbius committed
72 73
             OpenFlipper/widgets/viewModeWidget 

Jan Möbius's avatar
Arghl  
Jan Möbius committed
74 75 76 77 78 79 80 81 82
CXX_CFLAGS += -Iwidgets/optionsWidget/$(build-dir)/ \
              -Iwidgets/addEmptyWidget/$(build-dir)/ \
              -Iwidgets/helpBrowser/$(build-dir)/ \
              -Iwidgets/loadWidget/$(build-dir)/ \
              -Iwidgets/optionsWidget/$(build-dir)/ \
              -Iwidgets/unloadPluginsWidget/$(build-dir)/ \
              -Iwidgets/viewModeWidget/$(build-dir)/


Jan Möbius's avatar
 
Jan Möbius committed
83 84 85 86 87
MODULES := moc4 cxx

#==  SYSTEM PART -- DON'T TOUCH  ==============================================
include $(ACGMAKE)/Rules
#==============================================================================