2001-10-04 05:44:07 +08:00
|
|
|
MAKEDIR = $(OSGHOME)/Make
|
|
|
|
INSTRULES = $(MAKEDIR)/instrules
|
|
|
|
MAKEDEPEND = Makedepend
|
|
|
|
OBJS = $(C++FILES:.cpp=.o) $(CFILES:.c=.o) $(YACCFILES:.y=.o) $(LEXFILES:.l=.o)
|
|
|
|
|
|
|
|
DEPFILES = $(OBJS:.o=.d)
|
|
|
|
|
|
|
|
C++ = cc
|
|
|
|
YFLAGS = -d
|
2002-02-10 19:17:58 +08:00
|
|
|
LCINCS += -I/usr/local/include -I/sw/include
|
2001-10-04 05:44:07 +08:00
|
|
|
LC++INCS += ${LCINCS}
|
2002-01-16 20:08:29 +08:00
|
|
|
CFLAGS = -O2 -W -Wall $(LCINCS) -D__DARWIN_OSX__
|
2002-03-26 07:18:02 +08:00
|
|
|
#CFLAGS = -g -DOSG_USE_MEMORY_TRACKING -W -Wall $(LCINCS) -D__DARWIN_OSX__
|
2001-10-04 05:44:07 +08:00
|
|
|
C++FLAGS = ${CFLAGS}
|
|
|
|
CPPFLAGS = ${CFLAGS}
|
2002-01-16 20:08:29 +08:00
|
|
|
# this distinction is necessary for Darwin / OS X as shared libs and loadable (dylib) modules
|
|
|
|
# are not the same thing
|
|
|
|
SO_EXT = dylib
|
|
|
|
DL_EXT = so
|
2001-10-04 05:44:07 +08:00
|
|
|
|
2002-02-10 19:17:58 +08:00
|
|
|
FRAMEWORKS = -L/sw/lib -framework GLUT -framework Carbon -framework OpenGL
|
2002-01-16 20:08:29 +08:00
|
|
|
LDFLAGS =-all_load -L/usr/local/lib -L/usr/lib
|
2001-10-04 05:44:07 +08:00
|
|
|
|
|
|
|
DYNAMICLIBRARYLIB =
|
|
|
|
PFLIBS =
|
|
|
|
|
|
|
|
#
|
|
|
|
# TARGET_DIRS are directories that would not exist on the system except
|
|
|
|
# for the presence of OpenSceneGraph. 'make instclean' removes these
|
|
|
|
# directories
|
|
|
|
#
|
|
|
|
TARGET_DIRS = \
|
|
|
|
/usr/include/osg \
|
|
|
|
/usr/include/osgDB \
|
|
|
|
/usr/include/osgGLUT \
|
|
|
|
/usr/include/osgUtil \
|
2001-11-03 04:11:37 +08:00
|
|
|
/usr/include/osgText \
|
2001-10-04 05:44:07 +08:00
|
|
|
/usr/share/OpenSceneGraph\
|
|
|
|
/usr/share/OpenSceneGraph/data\
|
|
|
|
/usr/share/OpenSceneGraph/data/Images\
|
|
|
|
/usr/share/OpenSceneGraph/data/Test\
|
|
|
|
/usr/lib/osgPlugins\
|
|
|
|
|
|
|
|
TARGET_BIN = /usr/bin
|
|
|
|
TARGET_LIB = /usr/lib
|
|
|
|
TARGET_INCLUDE = /usr/include
|
|
|
|
TARGET_DATA = /usr/share/OpenSceneGraph/data
|
|
|
|
|
|
|
|
#
|
|
|
|
# This definitions are necessary for IRIX. The following statement
|
|
|
|
# does not work for smake using a sh:
|
|
|
|
#
|
|
|
|
# for variable in $(LIST); do ...; done
|
|
|
|
#
|
|
|
|
# .. if $(LIST) is a NULL variable. So we have to define 0 length
|
|
|
|
# strings and check for them inside the for loop
|
|
|
|
#
|
|
|
|
|
|
|
|
TARGET_LIB_FILES = ""
|
|
|
|
TARGET_BIN_FILES = ""
|
|
|
|
TARGET_INCLUDE_FILES = ""
|
|
|
|
TARGET_DATA_FILES = ""
|
|
|
|
TARGET_LOADER_FILES = ""
|