2001-01-11 00:32:10 +08:00
|
|
|
#!smake
|
|
|
|
SHELL=/bin/sh
|
|
|
|
MAKE_PREP = Make/makedefs Make/makerules
|
|
|
|
|
|
|
|
DIRS = src
|
|
|
|
|
2001-12-16 06:44:32 +08:00
|
|
|
VERSION = osg-0.8.43
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2002-01-05 04:44:41 +08:00
|
|
|
export OSGHOME := $(shell pwd)
|
2002-01-04 07:19:18 +08:00
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
all : $(MAKE_PREP)
|
2001-09-20 05:08:56 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) || exit 1; cd ..; done
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
docs :
|
2001-09-20 05:08:56 +08:00
|
|
|
cd src; $(MAKE) docs;
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
Make/makedefs :
|
|
|
|
@ cd Make;\
|
|
|
|
case `uname` in\
|
|
|
|
IRIX|IRIX64) \
|
2001-09-20 05:08:56 +08:00
|
|
|
ln -sf makedefs.irix.std makedefs ;;\
|
2001-01-11 00:32:10 +08:00
|
|
|
Linux) \
|
|
|
|
ln -sf makedefs.linux makedefs;;\
|
2002-01-04 07:19:18 +08:00
|
|
|
CYGWIN*) \
|
|
|
|
ln -sf makedefs.cyg makedefs;;\
|
2001-01-11 00:32:10 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
Make/makerules :
|
|
|
|
@ cd Make;\
|
|
|
|
case `uname` in\
|
|
|
|
IRIX|IRIX64) \
|
|
|
|
ln -sf makerules.irix makerules ;; \
|
|
|
|
Linux) \
|
|
|
|
ln -sf makerules.linux makerules ;;\
|
2002-01-04 07:19:18 +08:00
|
|
|
CYGWIN*) \
|
|
|
|
ln -sf makerules.cyg makerules ;;\
|
2001-01-11 00:32:10 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
linux:
|
|
|
|
cd Make;\
|
|
|
|
ln -sf makedefs.linux makedefs;\
|
|
|
|
ln -sf makerules.linux makerules
|
2001-09-20 05:08:56 +08:00
|
|
|
$(MAKE)
|
|
|
|
|
2002-01-04 07:19:18 +08:00
|
|
|
cygwin:
|
|
|
|
cd Make;\
|
|
|
|
ln -sf makedefs.cyg makedefs;\
|
|
|
|
ln -sf makerules.cyg makerules
|
|
|
|
$(MAKE)
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
freebsd:
|
|
|
|
cd Make;\
|
|
|
|
ln -sf makedefs.freebsd makedefs;\
|
|
|
|
ln -sf makerules.freebsd makerules
|
|
|
|
$(MAKE)
|
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
irix:
|
|
|
|
cd Make;\
|
2001-09-20 05:08:56 +08:00
|
|
|
ln -sf makedefs.irix.std makedefs ;\
|
2001-01-11 00:32:10 +08:00
|
|
|
ln -sf makerules.irix makerules
|
2001-09-20 05:08:56 +08:00
|
|
|
$(MAKE)
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2002-01-16 20:29:43 +08:00
|
|
|
irix64:
|
|
|
|
cd Make;\
|
|
|
|
ln -sf makedefs.irix.std.64 makedefs ;\
|
|
|
|
ln -sf makerules.irix makerules
|
|
|
|
$(MAKE)
|
|
|
|
|
2001-09-20 05:08:56 +08:00
|
|
|
irix.old:
|
2001-01-11 00:32:10 +08:00
|
|
|
cd Make;\
|
2001-09-20 05:08:56 +08:00
|
|
|
ln -sf makedefs.irix.nonstd makedefs ;\
|
2001-01-11 00:32:10 +08:00
|
|
|
ln -sf makerules.irix makerules
|
2001-09-20 05:08:56 +08:00
|
|
|
$(MAKE)
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-10-04 05:44:07 +08:00
|
|
|
macosx:
|
|
|
|
cd Make;\
|
|
|
|
ln -sf makedefs.macosx makedefs;\
|
|
|
|
ln -sf makerules.macosx makerules
|
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
help :
|
|
|
|
@echo Usage :
|
2001-09-20 05:08:56 +08:00
|
|
|
@echo \ $(MAKE)
|
|
|
|
@echo \ $(MAKE) linux
|
2002-01-04 07:19:18 +08:00
|
|
|
@echo \ $(MAKE) cygwin
|
2001-09-20 05:08:56 +08:00
|
|
|
@echo \ $(MAKE) irix
|
|
|
|
@echo \ $(MAKE) irix.old
|
|
|
|
@echo \ $(MAKE) depend
|
|
|
|
@echo \ $(MAKE) clean
|
|
|
|
@echo \ $(MAKE) clobber
|
|
|
|
@echo \ $(MAKE) doc
|
|
|
|
@echo \ $(MAKE) release
|
|
|
|
@echo \ $(MAKE) dev
|
|
|
|
@echo \ $(MAKE) install
|
|
|
|
@echo \ $(MAKE) instlinks
|
|
|
|
@echo \ $(MAKE) instclean
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
clean : $(MAKE_PREP)
|
2001-09-20 05:08:56 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) clean; cd ..; done
|
2001-10-14 12:50:04 +08:00
|
|
|
rm -f `find lib -type f | grep -v .README`
|
|
|
|
rm -f `ls bin/* | grep -v CVS`
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
clobber : $(MAKE_PREP) clean
|
2001-09-20 05:08:56 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) clobber; cd ..; done
|
2001-01-11 00:32:10 +08:00
|
|
|
rm -f $(MAKE_PREP)
|
2002-01-16 20:29:43 +08:00
|
|
|
|
2001-01-11 00:32:10 +08:00
|
|
|
depend : $(MAKE_PREP)
|
2001-09-20 05:08:56 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) depend; cd ..; done
|
2001-01-11 00:32:10 +08:00
|
|
|
|
|
|
|
to_unix :
|
|
|
|
for f in $(DIRS) ; do cd $$f; to_unix Makefile Makefile; cd ..; done
|
2001-09-20 05:08:56 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) to_unix; cd ..; done
|
|
|
|
cd include/osg; for f in * ; do to_unix $$f $$f; done
|
|
|
|
cd include/osgUtil; for f in * ; do to_unix $$f $$f; done
|
|
|
|
cd include/osgGLUT; for f in * ; do to_unix $$f $$f; done
|
|
|
|
|
|
|
|
beautify :
|
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) beautify; cd ..; done
|
|
|
|
# cd include/osg; for f in * ; do mv $$f $$f.bak; bcpp $$f.bak $$f; rm $$f.bak; done
|
|
|
|
# cd include/osgUtil; for f in * ; do mv $$f $$f.bak; bcpp $$f.bak $$f; rm $$f.bak; done
|
|
|
|
# cd include/osgGLUT; for f in * ; do mv $$f $$f.bak; bcpp $$f.bak $$f; rm $$f.bak; done
|
|
|
|
|
|
|
|
release: $(MAKE_PREP)
|
|
|
|
$(MAKE) docs;
|
|
|
|
$(MAKE) clobber;
|
|
|
|
(cd ..; tar cvf - $(VERSION) | gzip > $(VERSION).tar.gz)
|
|
|
|
|
|
|
|
dev: $(MAKE_PREP)
|
|
|
|
$(MAKE) docs;
|
|
|
|
$(MAKE) clobber;
|
|
|
|
(cd ..; tar cvf - $(VERSION) | gzip > osg-`date "+%Y%m%d"`.tar.gz)
|
2001-01-11 00:32:10 +08:00
|
|
|
|
2001-09-29 03:36:58 +08:00
|
|
|
install instlinks instclean :
|
2002-01-05 04:44:41 +08:00
|
|
|
for f in $(DIRS) ; do cd $$f; $(MAKE) $@; cd ..; done
|
2001-09-20 05:08:56 +08:00
|
|
|
|
|
|
|
instcheck :
|
|
|
|
diff -q include/osg/ /usr/include/osg/
|
|
|
|
diff -q include/osgUtil/ /usr/include/osgUtil/
|
|
|
|
diff -q include/osgDB/ /usr/include/osgDB/
|
2001-11-03 04:11:37 +08:00
|
|
|
diff -q include/osgText/ /usr/include/osgText/
|
2001-09-20 05:08:56 +08:00
|
|
|
diff -q include/osgGLUT/ /usr/include/osgGLUT/
|
2002-01-04 07:19:18 +08:00
|
|
|
diff -q lib/libosg.$(SO_EXT) /usr/lib/libosg.$(SO_EXT)
|
|
|
|
diff -q lib/libosgUtil.$(SO_EXT) /usr/lib/libosgUtil.$(SO_EXT)
|
|
|
|
diff -q lib/libosgDB.$(SO_EXT) /usr/lib/libosgDB.$(SO_EXT)
|
|
|
|
diff -q lib/libosgGLUT.$(SO_EXT) /usr/lib/libosgGLUT.$(SO_EXT)
|
|
|
|
diff -q lib/libosgText.$(SO_EXT) /usr/lib/libosgText.$(SO_EXT)
|
2001-09-20 05:08:56 +08:00
|
|
|
diff -q lib/osgPlugins/ /usr/lib/osgPlugins/
|
|
|
|
|
|
|
|
stats :
|
|
|
|
@echo stats :
|
|
|
|
cat include/osg/* src/osg/*.cpp | wc -l
|
|
|
|
cat include/osgUtil/* src/osgUtil/*.cpp | wc -l
|
|
|
|
cat include/osgDB/* src/osgDB/*.cpp | wc -l
|
|
|
|
cat include/osgGLUT/* src/osgGLUT/*.cpp | wc -l
|
|
|
|
cat include/osgWX/* src/osgWX/*.cpp | wc -l
|
2001-12-24 22:12:38 +08:00
|
|
|
cat include/osgText/* src/osgText/*.cpp | wc -l
|
2001-09-20 05:08:56 +08:00
|
|
|
cat include/*/* src/*/*.cpp | wc -l
|
|
|
|
cat src/Demos/*/*.cpp | wc -l
|
|
|
|
cat src/osgPlugins/*/*.cpp src/osgPlugins/*/*.h | wc -l
|
|
|
|
cat include/*/* src/*/*.cpp src/Demos/*/*.cpp src/osgPlugins/*/*.cpp src/osgPlugins/*/*.h | wc -l
|