2002-04-02 14:58:18 +08:00
|
|
|
SHELL = /bin/sh
|
|
|
|
OS := $(shell uname)
|
|
|
|
|
2004-08-04 17:20:28 +08:00
|
|
|
## Set up dependencies
|
|
|
|
ifneq ("$(OSG_DEPENDENCIES)","")
|
|
|
|
include $(OSG_DEPENDENCIES)
|
|
|
|
else
|
|
|
|
include $(TOPDIR)/Make/dependencies
|
|
|
|
endif
|
2004-02-04 06:46:10 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
## We don't care about architectural distinguishers in the OS
|
|
|
|
## such as IRIX64, IRIX32, etc. so we truncate IRIX?? to IRIX
|
|
|
|
ifeq ($(findstring IRIX,$(OS)),IRIX)
|
|
|
|
OS := IRIX
|
|
|
|
endif
|
|
|
|
|
2002-04-05 02:01:44 +08:00
|
|
|
## Make CYGWIN_XXXX CYGWIN so it's "Windows cross platform" :)
|
|
|
|
ifeq ($(findstring CYGWIN,$(OS)),CYGWIN)
|
|
|
|
OS := CYGWIN
|
2003-09-13 05:05:40 +08:00
|
|
|
#OS := MINGW
|
2002-04-05 02:01:44 +08:00
|
|
|
endif
|
|
|
|
|
2002-06-16 04:57:50 +08:00
|
|
|
## Make MINGW_XXXX MINGW so it's "Windows cross platform" :)
|
|
|
|
ifeq ($(findstring MINGW,$(OS)),MINGW)
|
|
|
|
OS := MINGW
|
|
|
|
endif
|
|
|
|
|
2003-03-12 18:39:43 +08:00
|
|
|
# TOPDIR needs to be redefined for every GNUmakefile
|
2002-04-02 14:58:18 +08:00
|
|
|
TOPDIR ?= ../
|
|
|
|
THISDIR = .
|
|
|
|
MAKEDEPEND = ignore
|
|
|
|
|
2003-03-19 02:40:19 +08:00
|
|
|
#######################################################################
|
|
|
|
##
|
|
|
|
## VERSIONING SEMANTICS
|
|
|
|
##
|
|
|
|
## Version consistes of <major> . <minor> . <release> - <revision>
|
|
|
|
## Where:
|
|
|
|
## major : Production (0 = pre-production)
|
|
|
|
## minor : 0-7 = Production minor, 8 = Alpha, 9 = Beta
|
|
|
|
## release : Release tag
|
|
|
|
## revision: Release revision - 0 = development (cutting edge).
|
|
|
|
##
|
|
|
|
## Usage:
|
|
|
|
## Default - VERSION_REVISION is set to the value defined here
|
2003-06-24 23:40:09 +08:00
|
|
|
## Env variable OSG_VERSION_REVISION overrides default
|
2003-03-19 02:40:19 +08:00
|
|
|
## e.g.:
|
2003-06-24 23:40:09 +08:00
|
|
|
## % setenv OSG_VERSION_REVISION 5
|
2003-03-19 02:40:19 +08:00
|
|
|
## % make version
|
|
|
|
## Command line overrides env variable
|
|
|
|
## % make VERSION_REVISION=
|
|
|
|
#######################################################################
|
2005-11-24 00:24:50 +08:00
|
|
|
VERSION_MAJOR = 1
|
2006-09-13 03:15:04 +08:00
|
|
|
VERSION_MINOR = 2
|
2005-11-24 00:24:50 +08:00
|
|
|
VERSION_RELEASE = 0
|
2006-09-14 00:38:17 +08:00
|
|
|
VERSION_REVISION ?= 0
|
2003-03-19 02:40:19 +08:00
|
|
|
ifneq (,$(OSG_VERSION_REVISION))
|
|
|
|
VERSION_REVISION = $(OSG_VERSION_REVISION)
|
|
|
|
endif
|
|
|
|
VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_RELEASE)
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
INC = -I$(TOPDIR)/include
|
|
|
|
|
2003-03-13 10:53:40 +08:00
|
|
|
############################################################################
|
|
|
|
## NOTE - Semantics for the use of ARCH, ARCHARGS, and ARCHINST parameters
|
|
|
|
## ARCH - must be defined if the OS supports both 64 and 32 bit
|
|
|
|
## architectures may remain undefined if it does not.
|
|
|
|
## ARCHARGS - Compiler directives to indicate for which architecture
|
|
|
|
## to build for
|
|
|
|
## ARCHINST - Installation target directory. Define if the OS supports
|
|
|
|
## more than one architecture (32 and 64).
|
|
|
|
## for ARCH=32 - define ARCHINST only if the system uses an
|
|
|
|
## extension on 'lib' to indicate 32 bit. e.g.
|
|
|
|
## IRIX defines /usr/lib32
|
|
|
|
## for ARCH=64 - Always define ARCHINST. Even if the OS
|
|
|
|
## doesn't make a distinction, we will.
|
|
|
|
############################################################################
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
CXXFLAGS = $(ARCHARGS) $(DOF) $(DEF) $(INC)
|
2003-03-13 10:53:40 +08:00
|
|
|
LDFLAGS = $(ARCHARGS) $(DOF) $(LINKARGS) -L$(TOPDIR)/lib/$(OS)$(ARCH)
|
2002-04-02 14:58:18 +08:00
|
|
|
OBJS = $(C++FILES:.cpp=.o) \
|
2003-03-13 10:53:40 +08:00
|
|
|
$(CXXFILES:.cpp=.o) \
|
|
|
|
$(CFILES:.c=.o) \
|
2002-04-02 14:58:18 +08:00
|
|
|
|
|
|
|
DOF = $(OPTF)
|
|
|
|
DEBUGDIR = $(OS)$(ARCH).Debug
|
|
|
|
OPTDIR = $(OS)$(ARCH).Opt
|
2004-09-02 11:52:13 +08:00
|
|
|
BININST = bin/$(OS)$(ARCH)/
|
2003-03-13 10:53:40 +08:00
|
|
|
PLUGININST = lib/$(OS)$(ARCH)/osgPlugins
|
2004-08-25 05:35:41 +08:00
|
|
|
LIBINST = lib/$(OS)$(ARCH)
|
2003-03-13 10:53:40 +08:00
|
|
|
|
2004-12-18 06:31:54 +08:00
|
|
|
INST_LOCATION ?= /usr/local
|
2003-03-13 10:53:40 +08:00
|
|
|
INST_LIBS = $(INST_LOCATION)/lib$(ARCHINST)
|
|
|
|
INST_PLUGINS = $(INST_LOCATION)/lib$(ARCHINST)/osgPlugins
|
|
|
|
INST_INCLUDE = $(INST_LOCATION)/include
|
|
|
|
INST_SHARE = $(INST_LOCATION)/share
|
2005-11-17 19:09:22 +08:00
|
|
|
INST_EXAMPLES = $(INST_SHARE)/OpenSceneGraph/bin
|
2003-03-13 10:53:40 +08:00
|
|
|
INST_SRC = $(INST_SHARE)/OpenSceneGraph/src
|
|
|
|
INST_DOC = $(INST_SHARE)/OpenSceneGraph/doc
|
|
|
|
INST_DATA = $(INST_SHARE)/OpenSceneGraph/data
|
2003-03-28 02:56:23 +08:00
|
|
|
INST_EXAMPLE_SRC = $(INST_SRC)/examples
|
2003-03-13 10:53:40 +08:00
|
|
|
LINK = ln -sf
|
|
|
|
INSTBINCMD = install -m 755
|
|
|
|
INSTDEVCMD = install -m 644
|
|
|
|
INSTLINKBINCMD = $(LINK)
|
|
|
|
INSTLINKDEVCMD = $(LINK)
|
2005-12-09 23:05:50 +08:00
|
|
|
|
2003-03-13 10:53:40 +08:00
|
|
|
LIB_PREFIX = lib
|
2002-04-04 01:42:12 +08:00
|
|
|
LIB_EXT = so
|
2005-12-09 23:05:50 +08:00
|
|
|
EXE_EXT =
|
|
|
|
|
2002-04-04 01:42:12 +08:00
|
|
|
PLUGIN_PREFIX = osgdb_
|
2004-12-09 13:29:10 +08:00
|
|
|
WRAPPER_PREFIX = osgwrapper_
|
2002-04-04 01:42:12 +08:00
|
|
|
PLUGIN_EXT = so
|
2002-04-05 02:01:44 +08:00
|
|
|
MAKEDIST = echo " === Distribution build is not implemented yet for $(OS)"; printf "\n"
|
2002-04-09 22:55:38 +08:00
|
|
|
INSTLOGFILE = /tmp/.osg_inst_log
|
2002-04-02 14:58:18 +08:00
|
|
|
|
2003-07-24 03:08:42 +08:00
|
|
|
ifneq ("$(OPENTHREADS_INC_DIR)","")
|
|
|
|
INC += -I$(OPENTHREADS_INC_DIR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ("$(OPENTHREADS_LIB_DIR)","")
|
|
|
|
LDFLAGS += -L$(OPENTHREADS_LIB_DIR)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2002-04-05 09:52:15 +08:00
|
|
|
RECURSIVE_TARGETS = \
|
2006-03-02 23:26:12 +08:00
|
|
|
opt \
|
|
|
|
debug \
|
|
|
|
static \
|
|
|
|
staticdebug \
|
|
|
|
clean \
|
|
|
|
cleandepend \
|
|
|
|
cleandependopt \
|
|
|
|
cleandependdbg \
|
|
|
|
cleandbg \
|
|
|
|
cleanopt \
|
|
|
|
cleantarget \
|
|
|
|
cleantargetopt \
|
|
|
|
cleantargetdbg \
|
|
|
|
clobber \
|
|
|
|
clobberdbg \
|
|
|
|
clobberopt \
|
|
|
|
beautify \
|
|
|
|
docs \
|
|
|
|
depend \
|
2002-04-02 14:58:18 +08:00
|
|
|
|
2005-03-13 09:47:46 +08:00
|
|
|
STATICLIB = $(LIB:.$(LIB_EXT)=.a)
|
|
|
|
STATICPLUGIN = $(PLUGIN:.$(PLUGIN_EXT)=.a)
|
|
|
|
|
2002-12-03 18:19:37 +08:00
|
|
|
#### SUN OS Specific definitions
|
|
|
|
ifeq ($(OS),SunOS)
|
|
|
|
|
2005-03-13 09:47:46 +08:00
|
|
|
#### if using g++ on a sun
|
2002-12-03 18:19:37 +08:00
|
|
|
ifeq ($(COMPILER),gnu)
|
|
|
|
C++ = g++
|
|
|
|
DEPARG = -M
|
2005-03-13 09:47:46 +08:00
|
|
|
INC +=
|
|
|
|
DEF += -W -Wall -fPIC -fpermissive
|
2002-12-03 18:19:37 +08:00
|
|
|
OPTF = -O2
|
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
|
|
|
SHARED = -shared -fPIC
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCH = 32
|
2002-12-03 18:19:37 +08:00
|
|
|
ifeq ($(ARCH),64)
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHARGS = -m64 -DARCH64
|
|
|
|
ARCHINST = 64
|
2002-12-03 18:19:37 +08:00
|
|
|
else
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHARGS =
|
2002-12-03 18:19:37 +08:00
|
|
|
endif
|
|
|
|
GIF_LIBS = -lgif
|
2005-11-17 19:09:22 +08:00
|
|
|
TIFF_LIB = -ltiff
|
2002-12-03 18:19:37 +08:00
|
|
|
JPEG_LIBS = -ljpeg
|
2002-12-07 03:56:17 +08:00
|
|
|
PNG_LIBS = -lpng -lz
|
2003-08-17 04:42:54 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads
|
2002-12-03 18:19:37 +08:00
|
|
|
|
|
|
|
#### using forte compilers (default)
|
|
|
|
else
|
|
|
|
C++ = CC
|
|
|
|
DEPARG = -xM1
|
|
|
|
INC +=
|
2005-06-24 23:39:29 +08:00
|
|
|
DEF += -features=extensions -w -mt -KPIC
|
2002-12-03 18:19:37 +08:00
|
|
|
OPTF = -xO4
|
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
|
|
|
SHARED = -G
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCH = 32
|
2002-12-03 18:19:37 +08:00
|
|
|
ifeq ($(ARCH),64)
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHARGS = -xarch=v9 -DARCH64
|
|
|
|
ARCHINST = 64
|
2002-12-03 18:19:37 +08:00
|
|
|
else
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHARGS =
|
|
|
|
ARCHINST =
|
2002-12-03 18:19:37 +08:00
|
|
|
endif
|
2003-08-17 04:42:54 +08:00
|
|
|
OTHER_LIBS = -lCstd -lOpenThreads
|
2005-06-24 23:39:29 +08:00
|
|
|
LINKARGS = -mt
|
2002-12-03 18:19:37 +08:00
|
|
|
GIF_LIBS = /usr/local/lib/libgif.a
|
2005-11-17 19:09:22 +08:00
|
|
|
TIFF_LIB = /usr/local/lib/libtiff.a
|
2004-11-29 11:05:27 +08:00
|
|
|
JPEG_INCLUDE = -I/usr/local/include
|
2002-12-03 18:19:37 +08:00
|
|
|
JPEG_LIBS = /usr/local/lib/libjpeg.a
|
|
|
|
PNG_LIBS = /usr/local/lib/libpng.a /usr/local/lib/libz.a
|
2002-12-11 01:57:02 +08:00
|
|
|
endif
|
2004-08-04 16:27:43 +08:00
|
|
|
|
|
|
|
DYNAMICLIBRARYLIB = -ldl
|
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
|
|
|
GL_LIBS = -lGLU -lGL
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2004-08-04 16:27:43 +08:00
|
|
|
X_INC = -I/usr/X11R6/include
|
|
|
|
X_LIBS = -lXext -lXmu -lXi -lX11
|
|
|
|
SOCKET_LIBS = -lsocket -lnsl
|
|
|
|
INSTBINCMD = cp
|
|
|
|
INSTDEVCMD = cp
|
2004-12-18 06:31:54 +08:00
|
|
|
INST_LOCATION ?= /opt/OpenSceneGraph
|
2004-08-04 16:27:43 +08:00
|
|
|
MAKEDIST = $(TOPDIR)/Make/makepkg
|
2007-01-24 20:35:29 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads -lmtsk
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2004-08-04 17:20:28 +08:00
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
2004-11-29 11:05:27 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
2002-07-23 21:30:47 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
#### IRIX Specific definitions
|
|
|
|
ifeq ($(OS),IRIX)
|
2006-08-02 18:43:26 +08:00
|
|
|
INSTBINCMD = cp
|
|
|
|
INSTDEVCMD = cp
|
2004-08-04 17:20:28 +08:00
|
|
|
CXX = CC
|
|
|
|
ifeq ($(CXX),CC)
|
2005-11-17 19:09:22 +08:00
|
|
|
LINKARGS = -L${TOPDIR}/$(LIBINST) -LANG:std -OPT:Olimit=0
|
|
|
|
C++ = CC
|
|
|
|
DEPARG = -M
|
|
|
|
INC += -I${TOPDIR}/include -I/usr/freeware/include
|
|
|
|
LDFLAGS += -L/usr/local/lib
|
|
|
|
DEF += -LANG:std -OPT:Olimit=0 \
|
2006-03-02 23:26:12 +08:00
|
|
|
-DEBUG:woff=1681 -DEBUG:woff=1682 -DEBUG:woff=3303 \
|
2005-11-17 19:09:22 +08:00
|
|
|
-MDupdate $(MAKEDEPEND)
|
|
|
|
OPTF = -O2
|
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
|
|
|
SHARED = -shared
|
|
|
|
PFLIBS = \
|
|
|
|
-lpf3ds -lpfdem -lpfdted -lpfdwb -lpfdxf -lpfevt \
|
|
|
|
-lpfflt -lpfgds -lpfgfo -lpfim -lpflsa -lpflsb \
|
|
|
|
-lpfnff -lpfobj -lpfpegg -lpfpfb -lpfphd -lpfpts \
|
|
|
|
-lpfrot -lpfscale -lpfsgf -lpfsgo -lpfsphere -lpfsv \
|
|
|
|
-lpftri -lpfunc -lpfvct -lpfdu -lpfutil -lpf -all -limage
|
|
|
|
ARCH = 32
|
|
|
|
ifeq ($(ARCH),64)
|
|
|
|
ARCHARGS = -64 -DARCH64
|
|
|
|
ARCHINST = 64
|
|
|
|
LINKARGS += -L/usr/freeware/lib64
|
|
|
|
PF_XTRA_LIBS = -L/usr/lib64/libpfdb -rpath /usr/lib64/libpfdb \
|
|
|
|
$(PFLIBS)
|
|
|
|
else
|
|
|
|
ARCHARGS = -n32
|
|
|
|
ARCHINST = 32
|
|
|
|
LINKARGS += -L/usr/freeware/lib32
|
|
|
|
PF_XTRA_LIBS = -L/usr/lib32/libpfdb -rpath /usr/lib32/libpfdb \
|
|
|
|
$(PFLIBS)
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LIBS = -lstdc++
|
|
|
|
LINKARGS = -L${TOPDIR}/$(LIBINST)
|
|
|
|
C++ = g++
|
|
|
|
INC += -I${TOPDIR}/include -I/usr/freeware/include
|
|
|
|
DEF += -fPIC -W -Wno-unused
|
|
|
|
OPTF = -O2
|
|
|
|
DBGF = -g -gstabs+ -DOSG_COMPILE_UNIT_TESTS
|
|
|
|
SHARED = -shared
|
|
|
|
PFLIBS = \
|
|
|
|
-lpf3ds -lpfdem -lpfdted -lpfdwb -lpfdxf -lpfevt \
|
|
|
|
-lpfflt -lpfgds -lpfgfo -lpfim -lpflsa -lpflsb \
|
|
|
|
-lpfnff -lpfobj -lpfpegg -lpfpfb -lpfphd -lpfpts \
|
|
|
|
-lpfrot -lpfscale -lpfsgf -lpfsgo -lpfsphere -lpfsv \
|
|
|
|
-lpftri -lpfunc -lpfvct -lpfdu -lpfutil -lpf -all -limage
|
|
|
|
ARCH = 32
|
|
|
|
ifeq ($(ARCH),64)
|
|
|
|
ARCHARGS = -mabi=64 -mips4 -DARCH64
|
|
|
|
ARCHINST = 64
|
|
|
|
LINKARGS += -L/usr/freeware/lib64
|
|
|
|
PF_XTRA_LIBS = -L/usr/lib64/libpfdb -rpath /usr/lib64/libpfdb \
|
|
|
|
$(PFLIBS)
|
|
|
|
else
|
|
|
|
ARCHARGS = -mabi=n32 -mips4
|
|
|
|
ARCHINST = 32
|
|
|
|
LINKARGS += -L/usr/freeware/lib32
|
|
|
|
PF_XTRA_LIBS = -L/usr/lib32/libpfdb -rpath /usr/lib32/libpfdb \
|
|
|
|
$(PFLIBS)
|
|
|
|
endif
|
2004-08-04 17:20:28 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
DYNAMICLIBRARYLIB =
|
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
|
|
|
GL_LIBS = -lGLU -lGL
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2004-08-04 17:20:28 +08:00
|
|
|
X_INC = -I/usr/X11R6/include
|
|
|
|
X_LIBS = -lXext -lXi -lXmu -lX11
|
|
|
|
SOCKET_LIBS =
|
|
|
|
OTHER_LIBS = -lm -lOpenThreads
|
|
|
|
PNG_LIBS = -lpng
|
|
|
|
JPEG_LIBS = -ljpeg
|
|
|
|
TIFF_LIB = -ltiff
|
|
|
|
GIF_LIBS = -lungif
|
|
|
|
MAKEDIST = $(TOPDIR)/Make/makeirixdist
|
|
|
|
|
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
#### Linux specific definitions
|
2002-04-15 22:45:14 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
ifeq ($(OS),Linux)
|
2002-04-15 22:45:14 +08:00
|
|
|
|
2003-03-13 10:53:40 +08:00
|
|
|
ifeq (x$(CXX),x)
|
|
|
|
C++ = g++
|
|
|
|
else
|
|
|
|
C++ = $(CXX)
|
|
|
|
endif
|
|
|
|
|
2002-04-17 05:39:45 +08:00
|
|
|
DEPARG = -M
|
2002-04-02 14:58:18 +08:00
|
|
|
INC +=
|
2003-03-13 10:53:40 +08:00
|
|
|
|
|
|
|
ifeq ($(COMPILER),intel)
|
2005-11-16 02:31:40 +08:00
|
|
|
C++ = icpc
|
2003-03-13 10:53:40 +08:00
|
|
|
LIBS = -lgcc_s
|
2005-11-16 02:31:40 +08:00
|
|
|
DEF += -fPIC -x c++ -cxxlib-gcc -gcc-version=323
|
2003-03-13 10:53:40 +08:00
|
|
|
OPTF = -O2
|
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
2005-11-16 02:31:40 +08:00
|
|
|
LDFLAGS += -L/usr/X11R6/lib64
|
2003-03-21 06:13:10 +08:00
|
|
|
ifeq ($(SYSARCH),ia64)
|
|
|
|
ARCHARGS =
|
2003-03-25 07:02:08 +08:00
|
|
|
ARCH = IA64
|
|
|
|
ARCHINST = IA64
|
2003-03-21 06:13:10 +08:00
|
|
|
else
|
|
|
|
ARCHARGS =
|
|
|
|
ARCH = 32
|
|
|
|
ARCHINST =
|
|
|
|
endif
|
2003-03-13 10:53:40 +08:00
|
|
|
else
|
2004-11-15 01:02:30 +08:00
|
|
|
|
|
|
|
ifeq ("$(COMPILE_OSG_OP_OT_WITH_SONAMES)","YES")
|
2004-11-15 00:36:27 +08:00
|
|
|
LDFLAGS += -Wl,-soname -Wl,$@.0
|
2004-11-15 01:02:30 +08:00
|
|
|
endif
|
2005-03-13 09:47:46 +08:00
|
|
|
|
2005-04-11 23:17:24 +08:00
|
|
|
# LDFLAGS += `getconf LFS_LDFLAGS`
|
|
|
|
# DEF += `getconf LFS_CFLAGS`
|
2004-11-15 01:02:30 +08:00
|
|
|
|
2003-03-13 10:53:40 +08:00
|
|
|
LIBS = -lstdc++
|
2006-05-02 17:45:31 +08:00
|
|
|
# DEF += -W -Wall -fPIC -pipe -Woverloaded-virtual
|
2004-11-16 03:45:27 +08:00
|
|
|
DEF += -W -Wall -fPIC -pipe
|
2003-03-13 10:53:40 +08:00
|
|
|
OPTF = -O2
|
|
|
|
DBGF = -g -gstabs+ -DOSG_COMPILE_UNIT_TESTS
|
2003-03-21 06:13:10 +08:00
|
|
|
SYSARCH := $(shell arch)
|
|
|
|
ifeq ($(SYSARCH),x86_64)
|
2003-03-25 07:02:08 +08:00
|
|
|
ARCHARGS =
|
2003-03-21 06:13:10 +08:00
|
|
|
ARCH = 64
|
|
|
|
ARCHINST = 64
|
|
|
|
else
|
|
|
|
ARCHARGS =
|
|
|
|
ARCH = 32
|
|
|
|
ARCHINST =
|
|
|
|
endif
|
2003-03-13 10:53:40 +08:00
|
|
|
endif
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
SHARED = -shared
|
2003-03-25 07:02:08 +08:00
|
|
|
ifeq ($(SYSARCH),x86_64)
|
|
|
|
LINKARGS = -L/usr/X11R6/lib64
|
|
|
|
else
|
|
|
|
LINKARGS = -L/usr/X11R6/lib
|
|
|
|
endif
|
2002-04-02 14:58:18 +08:00
|
|
|
DYNAMICLIBRARYLIB = -ldl
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-04-02 14:58:18 +08:00
|
|
|
GL_LIBS = -lGLU -lGL
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2003-08-18 18:58:30 +08:00
|
|
|
X_INC = -I/usr/X11R6/include
|
2002-04-18 23:16:59 +08:00
|
|
|
X_LIBS = -lXi -lXmu -lX11
|
2002-07-01 22:20:37 +08:00
|
|
|
PF_XTRA_LIBS = -L/usr/lib/libpfdb -Xlinker -rpath /usr/lib/libpfdb \
|
2003-01-23 07:40:47 +08:00
|
|
|
-lpfdu -lpfutil -lpf
|
2002-04-02 14:58:18 +08:00
|
|
|
SOCKET_LIBS =
|
2003-07-19 08:18:07 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads
|
2002-04-10 09:29:45 +08:00
|
|
|
PNG_LIBS = -lpng
|
|
|
|
JPEG_LIBS = -ljpeg
|
|
|
|
TIFF_LIB = -ltiff
|
2002-09-25 04:14:08 +08:00
|
|
|
GIF_LIBS = -lungif
|
2002-04-05 02:01:44 +08:00
|
|
|
MAKEDIST = $(TOPDIR)/Make/makerpms
|
2004-08-01 12:06:07 +08:00
|
|
|
|
|
|
|
ifeq ("$(PROFILER)","gprof")
|
|
|
|
DEF += -pg
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ("$(PROFILER)","FunctionCheck")
|
|
|
|
DEF += -finstrument-functions
|
|
|
|
OTHER_LIBS += -lfnccheck
|
|
|
|
endif
|
|
|
|
|
2004-08-04 17:20:28 +08:00
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
#### FreeBSD specific definitions
|
|
|
|
ifeq ($(OS),FreeBSD)
|
2006-06-12 17:57:01 +08:00
|
|
|
SYSARCH := $(shell uname -p)
|
|
|
|
ifeq (x$(CXX),x)
|
|
|
|
C++ = g++
|
|
|
|
else
|
|
|
|
C++ = $(CXX)
|
|
|
|
endif
|
|
|
|
ifeq (x$(PTHREAD_CFLAGS),x)
|
|
|
|
PTHREAD_CFLAGS = -pthread
|
|
|
|
endif
|
|
|
|
ifeq (x$(PTHREAD_LIBS),x)
|
|
|
|
PTHREAD_LIBS = -pthread
|
|
|
|
endif
|
|
|
|
ifeq (x$(ARCH),x)
|
|
|
|
ARCH = $(SYSARCH)
|
|
|
|
endif
|
2002-04-02 14:58:18 +08:00
|
|
|
DEPARG = -MM
|
2005-12-16 00:24:22 +08:00
|
|
|
INC += -I/usr/local/include -I/usr/X11R6/include
|
2007-02-13 23:24:56 +08:00
|
|
|
DEF += -W -Wall $(PTHREAD_CFLAGS) -pipe
|
2002-04-02 14:58:18 +08:00
|
|
|
OPTF = -O2
|
2002-08-28 22:26:09 +08:00
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
2002-04-02 14:58:18 +08:00
|
|
|
SHARED = -shared
|
2006-05-01 22:51:56 +08:00
|
|
|
ifeq ($(SYSARCH),amd64)
|
|
|
|
ARCHARGS = -fPIC
|
|
|
|
ARCHINST =
|
|
|
|
else
|
|
|
|
ARCHARGS =
|
|
|
|
ARCHINST =
|
|
|
|
endif
|
2006-06-12 17:57:01 +08:00
|
|
|
LINKARGS = -L/usr/X11R6/lib -L/usr/local/lib -rpath /usr/local/lib $(PTHREAD_CFLAGS)
|
2005-12-16 00:24:22 +08:00
|
|
|
DYNAMICLIBRARYLIB =
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-04-02 14:58:18 +08:00
|
|
|
GL_LIBS = -lGLU -lGL
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2003-08-18 18:58:30 +08:00
|
|
|
X_INC = -I/usr/X11R6/include
|
2002-04-02 14:58:18 +08:00
|
|
|
X_LIBS = -lXmu -lX11
|
|
|
|
SOCKET_LIBS =
|
2003-08-17 04:42:54 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads
|
2004-05-13 04:31:58 +08:00
|
|
|
PNG_LIBS = -lpng
|
|
|
|
JPEG_LIBS = -ljpeg
|
|
|
|
TIFF_LIB = -ltiff
|
|
|
|
GIF_LIBS = -lungif
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2004-08-04 17:20:28 +08:00
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
|
|
|
|
2002-04-05 09:52:15 +08:00
|
|
|
#### MacOS X specific definitions
|
2002-04-02 14:58:18 +08:00
|
|
|
ifeq ($(OS),Darwin)
|
2004-03-08 19:02:05 +08:00
|
|
|
ifeq (x$(CXX),x)
|
|
|
|
C++ = g++
|
|
|
|
else
|
|
|
|
C++ = $(CXX)
|
|
|
|
endif
|
2004-10-24 13:50:59 +08:00
|
|
|
|
2005-05-06 22:07:02 +08:00
|
|
|
#### Default to AGL? Will try it temporary while waiting for feedback
|
|
|
|
USE_AGL ?= yes
|
|
|
|
|
2004-10-24 13:50:59 +08:00
|
|
|
FINC += -F/System/Library/Frameworks
|
|
|
|
|
2005-05-06 22:07:02 +08:00
|
|
|
ifeq ($(USE_AGL),yes)
|
|
|
|
|
|
|
|
DEF += -D__USE_OSX_AGL_IMPLEMENTATION__
|
|
|
|
INC += $(FINC)
|
2005-11-17 19:09:22 +08:00
|
|
|
LDFLAGS += $(FINC)
|
2005-05-06 22:07:02 +08:00
|
|
|
X_INC =
|
|
|
|
X_LIBS =
|
2007-02-07 01:01:20 +08:00
|
|
|
GL_LIBS = -framework OpenGL $(CARBON_LIB)
|
|
|
|
GLUT_LIBS = -framework GLUT
|
2005-05-06 22:07:02 +08:00
|
|
|
|
2004-10-24 13:50:59 +08:00
|
|
|
else
|
2005-05-06 22:07:02 +08:00
|
|
|
ifeq ($(USE_CGL),yes)
|
|
|
|
|
2005-11-17 19:09:22 +08:00
|
|
|
DEF += -D__USE_OSX_CGL_IMPLEMENTATION__
|
2005-05-06 22:07:02 +08:00
|
|
|
INC += $(FINC)
|
2005-11-17 19:09:22 +08:00
|
|
|
LDFLAGS += $(FINC)
|
2005-05-06 22:07:02 +08:00
|
|
|
X_INC =
|
|
|
|
X_LIBS =
|
2007-02-07 01:01:20 +08:00
|
|
|
GL_LIBS = -framework OpenGL $(CARBON_LIB)
|
|
|
|
GLUT_LIBS = -framework GLUT
|
2005-05-06 22:07:02 +08:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
INC += $(FINC) -I$(SDKPATH)/usr/X11R6/include
|
2005-11-17 19:09:22 +08:00
|
|
|
LDFLAGS += $(FINC) -L$(SDKPATH)/usr/include -L$(SDKPATH)/usr/X11R6/lib -L/sw/lib
|
2005-05-06 22:07:02 +08:00
|
|
|
X_INC = -I$(SDKPATH)/usr/X11R6/include
|
|
|
|
X_LIBS = -lX11
|
2007-02-07 01:01:20 +08:00
|
|
|
GL_LIBS = -lGL -lGLU
|
|
|
|
GLUT_LIBS = -lGLUT
|
2005-05-06 22:07:02 +08:00
|
|
|
|
|
|
|
endif
|
2004-10-24 13:50:59 +08:00
|
|
|
endif
|
|
|
|
|
2004-03-08 19:02:05 +08:00
|
|
|
DEF += -Wall
|
2002-04-02 14:58:18 +08:00
|
|
|
OPTF = -O2
|
2002-08-31 00:17:41 +08:00
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
2002-04-02 14:58:18 +08:00
|
|
|
DEPARG = -M $(DEF)
|
2003-12-17 18:05:29 +08:00
|
|
|
SHARED = -dynamic
|
2004-03-08 19:02:05 +08:00
|
|
|
ARCH = 32
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHINST =
|
2002-04-02 14:58:18 +08:00
|
|
|
ARCHARGS =
|
2002-08-31 00:17:41 +08:00
|
|
|
LINKARGS =
|
|
|
|
DYNAMICLIBRARYLIB =
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-04-02 14:58:18 +08:00
|
|
|
CARBON_LIB = -framework Carbon
|
|
|
|
SOCKET_LIBS =
|
2003-07-21 18:11:34 +08:00
|
|
|
OTHER_LIBS = -lm -lstdc++ -lobjc -lOpenThreads
|
2003-03-13 10:53:40 +08:00
|
|
|
LIB_EXT = dylib
|
2005-11-17 19:09:22 +08:00
|
|
|
LIBVERSION = -current_version $(VERSION) \
|
2003-08-08 22:41:37 +08:00
|
|
|
-compatibility_version \
|
|
|
|
$(VERSION_MAJOR).$(VERSION_MINOR).0
|
2004-02-05 18:10:18 +08:00
|
|
|
|
2004-02-04 06:46:10 +08:00
|
|
|
ifeq ($(DARWIN_QUICKTIME),yes)
|
|
|
|
DEF += -DDARWIN_QUICKTIME
|
|
|
|
endif
|
2004-02-05 18:10:18 +08:00
|
|
|
|
2005-11-17 19:09:22 +08:00
|
|
|
QUICKTIME = -framework QuickTime $(CARBON_LIB)
|
2004-02-05 18:10:18 +08:00
|
|
|
PNG_LIBS = -lpng -lz
|
|
|
|
JPEG_LIBS = -ljpeg
|
|
|
|
GIF_LIBS = -lungif
|
2004-10-26 04:04:52 +08:00
|
|
|
TIFF_LIB = -ltiff -lz -ljpeg
|
2004-02-05 18:10:18 +08:00
|
|
|
|
2004-08-07 03:55:36 +08:00
|
|
|
# FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
# FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2005-05-07 01:43:40 +08:00
|
|
|
FREETYPE_INCLUDE = -I$(SDKPATH)/usr/X11R6/include -I$(SDKPATH)/usr/X11R6/include/freetype2
|
|
|
|
FREETYPE_LIB = -L$(SDKPATH)/usr/X11R6/lib -lfreetype
|
2004-08-04 17:20:28 +08:00
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
|
|
|
|
2004-03-26 02:34:40 +08:00
|
|
|
#### Cygwin specific definitions
|
2002-04-05 02:01:44 +08:00
|
|
|
ifeq ($(OS),CYGWIN)
|
2002-04-02 14:58:18 +08:00
|
|
|
C++ = c++
|
2004-11-17 22:56:08 +08:00
|
|
|
DEPARG = -M -DWIN32
|
2002-04-02 14:58:18 +08:00
|
|
|
INC +=
|
2005-05-17 17:06:12 +08:00
|
|
|
LIB =
|
2006-09-05 16:46:34 +08:00
|
|
|
DEF += -DWIN32 -DNOMINMAX -W -Wall -mnop-fun-dllimport
|
2002-04-02 14:58:18 +08:00
|
|
|
OPTF = -O2
|
2002-08-28 22:26:09 +08:00
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
2004-08-04 16:27:43 +08:00
|
|
|
SHARED = -shared \
|
2005-12-08 19:37:55 +08:00
|
|
|
-Wl,--out-implib,lib$(TARGET_BASENAME).dll.a \
|
2004-08-04 16:27:43 +08:00
|
|
|
-Wl,--export-all-symbols
|
2004-03-26 02:34:40 +08:00
|
|
|
|
|
|
|
EXE_EXT =.exe
|
2004-11-17 22:56:08 +08:00
|
|
|
ARCH = 32
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCHINST =
|
2002-04-02 14:58:18 +08:00
|
|
|
ARCHARGS =
|
|
|
|
LINKARGS = -W -Wall
|
|
|
|
DYNAMICLIBRARYLIB =
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-04-02 14:58:18 +08:00
|
|
|
GL_LIBS = -lglu32 -lopengl32
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2003-08-18 18:58:30 +08:00
|
|
|
X_INC =
|
2002-04-02 14:58:18 +08:00
|
|
|
X_LIBS = -lgdi32 -luser32
|
|
|
|
SOCKET_LIBS =
|
2003-08-17 04:42:54 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads
|
2002-04-05 02:01:44 +08:00
|
|
|
PNG_LIBS = -lpng -lz
|
2005-05-17 17:06:12 +08:00
|
|
|
JPEG_LIBS = -L/usr/local/lib -ljpeg
|
2002-04-05 02:01:44 +08:00
|
|
|
GIF_LIBS = -lungif
|
|
|
|
TIFF_LIB = -ltiff -lz -ljpeg
|
2004-08-04 17:20:28 +08:00
|
|
|
|
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
2004-08-04 16:27:43 +08:00
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
2005-12-10 03:14:55 +08:00
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
|
|
|
GDAL_LIBS += `gdal-config --dep-libs`
|
2004-03-26 02:34:40 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
|
|
|
|
2004-11-17 22:56:08 +08:00
|
|
|
LIBINST = bin/$(OS)$(ARCH)
|
2005-12-08 19:37:55 +08:00
|
|
|
IMP_LIBINST = lib/$(OS)$(ARCH)
|
|
|
|
PLUGININST = bin/$(OS)$(ARCH)/osgPlugins
|
|
|
|
IMP_PLUGININST = lib/$(OS)$(ARCH)/osgPlugins
|
2004-03-26 02:34:40 +08:00
|
|
|
|
2002-04-05 09:52:15 +08:00
|
|
|
LIB_PREFIX = cyg
|
|
|
|
LIB_EXT = dll
|
2005-12-08 19:37:55 +08:00
|
|
|
IMP_LIB_EXT = dll.a
|
2002-04-05 09:52:15 +08:00
|
|
|
PLUGIN_EXT = dll
|
|
|
|
LINK = cp -f
|
2005-12-10 03:34:09 +08:00
|
|
|
INST_LOCATION = /usr/local/OpenSceneGraph
|
2003-06-24 23:40:09 +08:00
|
|
|
INST_INCLUDE = $(INST_LOCATION)/include
|
2005-11-17 19:13:36 +08:00
|
|
|
INST_SHARE_PREFIX = $(INST_LOCATION)
|
2002-11-11 16:05:07 +08:00
|
|
|
INST_SRC = $(INST_SHARE_PREFIX)/src
|
2005-11-17 19:09:22 +08:00
|
|
|
INST_EXAMPLES = $(INST_SHARE_PREFIX)/bin
|
|
|
|
INST_EXAMPLE_SRC = $(INST_SHARE_PREFIX)/src/demos
|
2002-04-05 09:52:15 +08:00
|
|
|
INST_DOC = $(INST_SHARE_PREFIX)/doc
|
|
|
|
INST_DATA = $(INST_SHARE_PREFIX)/data
|
2003-06-24 23:40:09 +08:00
|
|
|
MAKEDIST = $(TOPDIR)/Make/makeinnosetup
|
2002-04-02 14:58:18 +08:00
|
|
|
endif
|
|
|
|
|
2004-03-26 02:34:40 +08:00
|
|
|
#### Mingw specific definitions
|
2002-06-16 04:57:50 +08:00
|
|
|
ifeq ($(OS),MINGW)
|
2004-08-04 16:27:43 +08:00
|
|
|
C++ = c++ -mthreads
|
|
|
|
# -fomit-frame-pointer -march=pentium3 -msse -mmmx -mfpmath=sse
|
2002-06-16 04:57:50 +08:00
|
|
|
DEPARG = -M
|
|
|
|
INC +=
|
|
|
|
DEF += -DWIN32 -Wall
|
|
|
|
# -W
|
2004-08-04 16:27:43 +08:00
|
|
|
OPTF = -O2
|
2002-08-28 22:26:09 +08:00
|
|
|
DBGF = -g -DOSG_COMPILE_UNIT_TESTS
|
2003-09-13 05:05:40 +08:00
|
|
|
SHARED = -shared -mthreads \
|
2005-12-08 19:37:55 +08:00
|
|
|
-Wl,--out-implib,lib$(TARGET_BASENAME).dll.a \
|
2004-03-26 02:34:40 +08:00
|
|
|
-Wl,--export-all-symbols
|
|
|
|
|
|
|
|
EXE_EXT =.exe
|
2003-03-13 10:53:40 +08:00
|
|
|
ARCH =
|
|
|
|
ARCHINST =
|
2002-06-16 04:57:50 +08:00
|
|
|
ARCHARGS =
|
|
|
|
LINKARGS = -W -Wall
|
|
|
|
DYNAMICLIBRARYLIB =
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-06-16 04:57:50 +08:00
|
|
|
GL_LIBS = -lglu32 -lopengl32
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2003-08-18 18:58:30 +08:00
|
|
|
X_INC =
|
2002-06-16 04:57:50 +08:00
|
|
|
X_LIBS = -lgdi32 -luser32
|
2003-09-13 05:05:40 +08:00
|
|
|
SOCKET_LIBS = -lws2_32
|
2003-08-17 04:42:54 +08:00
|
|
|
OTHER_LIBS = -lOpenThreads
|
2002-06-16 04:57:50 +08:00
|
|
|
PNG_LIBS = -lpng -lz
|
|
|
|
JPEG_LIBS = -ljpeg
|
|
|
|
GIF_LIBS = -lungif
|
|
|
|
TIFF_LIB = -ltiff -lz -ljpeg
|
2004-08-04 17:20:28 +08:00
|
|
|
|
2005-11-11 00:47:48 +08:00
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
2004-08-04 17:20:28 +08:00
|
|
|
|
2005-04-29 03:41:16 +08:00
|
|
|
GDAL_INCLUDES =
|
|
|
|
GDAL_LIBS = -lgdal -ljpeg -lgeotiff -ltiff -lpng -lz
|
2002-06-16 04:57:50 +08:00
|
|
|
|
2005-02-05 03:34:46 +08:00
|
|
|
XINE_INCLUDES = `xine-config --cflags`
|
|
|
|
XINE_LIBS = `xine-config --libs`
|
|
|
|
|
2005-11-22 22:35:12 +08:00
|
|
|
LIBINST = bin/$(OS)$(ARCH)
|
2005-12-08 19:37:55 +08:00
|
|
|
IMP_LIBINST = lib/$(OS)$(ARCH)
|
|
|
|
PLUGININST = bin/$(OS)$(ARCH)/osgPlugins
|
|
|
|
IMP_PLUGININST = lib/$(OS)$(ARCH)/osgPlugins
|
2004-03-26 02:34:40 +08:00
|
|
|
|
2002-06-16 04:57:50 +08:00
|
|
|
LIB_PREFIX = lib
|
|
|
|
LIB_EXT = dll
|
2005-12-08 19:37:55 +08:00
|
|
|
IMP_LIB_EXT = dll.a
|
2002-06-16 04:57:50 +08:00
|
|
|
PLUGIN_EXT = dll
|
|
|
|
LINK = cp -f
|
2005-12-10 03:34:09 +08:00
|
|
|
INST_LOCATION = /usr/local/OpenSceneGraph
|
2003-06-24 23:40:09 +08:00
|
|
|
INST_INCLUDE = $(INST_LOCATION)/include
|
2005-11-17 19:13:36 +08:00
|
|
|
INST_SHARE_PREFIX = $(INST_LOCATION)
|
2002-11-11 16:05:07 +08:00
|
|
|
INST_SRC = $(INST_SHARE_PREFIX)/src
|
2004-03-26 02:34:40 +08:00
|
|
|
INST_EXAMPLES = $(INST_SHARE_PREFIX)/bin
|
|
|
|
INST_EXAMPLE_SRC = $(INST_SHARE_PREFIX)/src/examples
|
2002-06-16 04:57:50 +08:00
|
|
|
INST_DOC = $(INST_SHARE_PREFIX)/doc
|
|
|
|
INST_DATA = $(INST_SHARE_PREFIX)/data
|
|
|
|
endif
|
|
|
|
|
2002-07-23 18:48:22 +08:00
|
|
|
#### HP-UX Specific definitions
|
|
|
|
# contributed by tino.schwarze@informatik.tu-chemnitz.de
|
2005-04-06 03:08:48 +08:00
|
|
|
# replaced by Olaf Flebb for use with aCC compiler
|
2002-07-23 18:48:22 +08:00
|
|
|
|
|
|
|
ifeq ($(OS),HP-UX)
|
2005-11-17 19:09:22 +08:00
|
|
|
CXX = aCC -AA -mt
|
|
|
|
C++ = $(CXX)
|
2005-04-06 03:08:48 +08:00
|
|
|
DEPARG = -w +make -E
|
|
|
|
INC += -I/opt/graphics/OpenGL/include -I/usr/contrib/X11R6/include -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE_EXTENDED
|
|
|
|
DEF += +Z -z
|
|
|
|
OPTF = +O2
|
|
|
|
DBGF = -g
|
|
|
|
SHARED = -b +Z -z -Wl,+s
|
2002-07-23 18:48:22 +08:00
|
|
|
ARCH = 32
|
2005-11-17 19:09:22 +08:00
|
|
|
LDFLAGS += -L/opt/graphics/OpenGL/lib -L/usr/contrib/X11R6/lib/
|
2005-04-06 03:08:48 +08:00
|
|
|
LINKARGS = -lpthread
|
2002-07-23 18:48:22 +08:00
|
|
|
LIB_EXT = sl
|
|
|
|
PLUGIN_EXT = sl
|
|
|
|
DYNAMICLIBRARYLIB = -ldld
|
2005-04-06 03:08:48 +08:00
|
|
|
|
|
|
|
|
2003-03-16 04:20:46 +08:00
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
2002-07-23 18:48:22 +08:00
|
|
|
GL_LIBS = -L/opt/graphics/OpenGL/lib -lGLU -lGL
|
2005-11-28 17:15:46 +08:00
|
|
|
GLUT_LIBS = -lglut
|
2003-08-18 18:58:30 +08:00
|
|
|
X_INC = -I/usr/X11R6/include
|
2005-04-06 03:08:48 +08:00
|
|
|
X_LIBS = -L/usr/lib/X11R6 -lXext -lXi -lX11
|
2002-07-23 18:48:22 +08:00
|
|
|
SOCKET_LIBS =
|
2005-04-06 03:08:48 +08:00
|
|
|
OTHER_LIBS = -lm -lOpenThreads
|
|
|
|
PNG_INCLUDE = -I/usr/local/include/libpng -I/usr/local/include/
|
|
|
|
PNG_LIBS = -L/usr/local/lib -lpng -lz
|
2005-11-17 19:09:22 +08:00
|
|
|
JPEG_INCLUDE = -I/usr/local/include
|
2005-04-06 03:08:48 +08:00
|
|
|
JPEG_LIBS = -L/usr/local/lib -ljpeg
|
|
|
|
TIFF_INCLUDE = -I/usr/local/include
|
|
|
|
TIFF_LIB = -L/usr/local/lib -ltiff
|
2005-11-17 19:09:22 +08:00
|
|
|
GIF_INCLUDE = -I/opt/libungif/include
|
2002-07-23 18:48:22 +08:00
|
|
|
GIF_LIBS = -L/opt/libungif/lib -lungif
|
|
|
|
|
2004-08-04 17:20:28 +08:00
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
2004-08-04 18:03:57 +08:00
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
2004-08-04 16:27:43 +08:00
|
|
|
|
2006-08-02 18:43:26 +08:00
|
|
|
INSTXCMD = install -c -m 755
|
|
|
|
INSTRCMD = install -c -m 644
|
|
|
|
|
|
|
|
INSTBINCMD = install -c -m 755
|
|
|
|
INSTDEVCMD = install -c -m 644
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(OS),AIX)
|
|
|
|
CXX = g++
|
|
|
|
C++ = $(CXX)
|
|
|
|
DEPARG = -M
|
|
|
|
INC +=
|
|
|
|
DEF +=
|
|
|
|
OPTF = -O
|
|
|
|
DBGF = -g
|
|
|
|
SHARED =
|
|
|
|
ARCH = 32
|
|
|
|
LDFLAGS +=
|
|
|
|
LINKARGS = -lpthread
|
|
|
|
LIB_EXT = sl
|
|
|
|
PLUGIN_EXT = sl
|
|
|
|
DYNAMICLIBRARYLIB = -ldld
|
|
|
|
|
|
|
|
|
|
|
|
OSG_LIBS = -losgGA -losgDB -losgUtil -losg
|
|
|
|
GL_LIBS = -lGLU -lGL
|
|
|
|
X_INC =
|
|
|
|
X_LIBS = -lXext -lXi -lX11
|
|
|
|
SOCKET_LIBS =
|
|
|
|
OTHER_LIBS = -lm -lOpenThreads
|
|
|
|
PNG_INCLUDE = -I/usr/local/include/libpng -I/usr/local/include/
|
|
|
|
PNG_LIBS = -L/usr/local/lib -lpng -lz
|
|
|
|
JPEG_INCLUDE = -I/usr/local/include
|
|
|
|
JPEG_LIBS = -L/usr/local/lib -ljpeg
|
|
|
|
TIFF_INCLUDE = -I/usr/local/include
|
|
|
|
TIFF_LIB = -L/usr/local/lib -ltiff
|
|
|
|
GIF_INCLUDE = -I/opt/libungif/include
|
|
|
|
GIF_LIBS = -L/opt/libungif/lib -lungif
|
|
|
|
|
|
|
|
FREETYPE_INCLUDE = `freetype-config --cflags`
|
|
|
|
FREETYPE_LIB = `freetype-config --libs`
|
|
|
|
|
|
|
|
GDAL_INCLUDES = `gdal-config --cflags`
|
|
|
|
GDAL_LIBS = `gdal-config --libs`
|
|
|
|
|
2002-07-23 18:48:22 +08:00
|
|
|
endif
|
2002-04-02 14:58:18 +08:00
|
|
|
|
2005-04-06 03:08:48 +08:00
|
|
|
|
2002-04-02 14:58:18 +08:00
|
|
|
VPATH=..
|
|
|
|
|