Browse Source

remove old Makefile stuff

David Rose 22 years ago
parent
commit
6b908559da

+ 0 - 50
dtool/src/build/Makefile.a.rules

@@ -1,50 +0,0 @@
-# Makefile for .a archive libraries
-
-# We *do* need -prelink when making an archive of C++ code.  To
-# facilitate this, we use the C++ compiler to build the archive.  This
-# is only necessary, of course, on SGI.
-
-ALLOFILES := $(ALLOFILES) $(OFILES)
-
-
-ifeq (,$(USE_DEFERRED))
-  DEFERRED_TARGET :=
-endif
-
-ifneq (,$(DEFERRED_TARGET))
-
-  # If the makefile requests a "deferred target", it means that we'll
-  # just write out a mini-makefile that defines the .o files that go
-  # into the target, rather than actually building the target now.
-  # Another Makefile later will presumably do the actual building.
-
-  DEFERRED_MAKEFILE := Deferred.$(DEFERRED_TARGET).$(BASETARGET)
-  THISDIR := $(notdir $(shell pwd))
-
-$(TARGET) : $(DEFERRED_MAKEFILE)
-$(DEFERRED_MAKEFILE):
-	rm -f $@
-	echo ALLOFILES += $(patsubst ./%,../../$(THISDIR)/%,$(ALLOFILES)) > $@
-
-else # DEFERRED_TARGET
-
-  ifneq (,$(strip $(ALLOFILES)))
-  $(TARGET): $(OFILES)   # *not* ALLOFILES
-    ifeq (SGI,$(PENV))
-	$(C++) -ar -o $@ $(ALLOFILES) 
-    else
-	$(AR) $(ARFLAGS) $@ $(ALLOFILES) 
-    endif
-  endif
-
-endif # DEFERRED_TARGET
-
-clean::
-	@rm -f a.out.$(TARGET)
-
-cleanall: clean
-	rm -rf ii_files
-	rm -f $(TARGET)
-
-list:
-	@echo $(TARGET)

+ 0 - 23
dtool/src/build/Makefile.a.template

@@ -1,23 +0,0 @@
-#### Makefile for archive libraries.  Any fields commented out are optional.
-
-#### Target's name:
-#CTTARGET
-
-#CTINCLUDE $DTOOL/lib/Makefile.o.include
-
-#### Pull in standard binary make variables.
-include $(DTOOL)/include/Makefile.bin.vars
-
-#### Other .o files.
-# OFILES = 
-
-#### Libs and flags for template instantiation.
-# LIBS = 
-# LDFLAGS = 
-
-#### Archiver flags
-# ARFLAGS = 
-
-#### The .a action is here.
-include $(DTOOL)/include/Makefile.a.rules
-

+ 0 - 69
dtool/src/build/Makefile.bin.rules

@@ -1,69 +0,0 @@
-# Rules to construct a binary from .o files
-
-ALLOFILES := $(ALLOFILES) $(OFILES)
-
-ifeq (,$(USE_DEFERRED))
-  LIBS := $(WHEN_NO_DEFER_LIBS) $(LIBS)
-else
-  LIBS := $(WHEN_DEFER_LIBS) $(LIBS)
-endif
-
-# Eliminate -lm and -ldl on NT because they don't exist
-WINLIBS := $(filter-out -lm -ldl,$(SYSLIBS))
-# On NT -l<library> needs to map to lib<library>.lib
-WINLIBS := $(LIBS:-l%=lib%$(DEBUGNAME).lib) $(WINLIBS:-l%=lib%.lib)
-
-ifeq (PS2,$(PENV))
-  LDFLAGS += -lm -nostartfiles
-endif  # (PS2,$(PENV))
-
-ifneq (,$(strip $(ALLOFILES)))
-$(TARGET): $(OFILES)  # *not* ALLOFILES
-
-# PS2 MODIFICATION ###################
-
-ifeq (PS2, $(PENV))
-	$(LD) $(LDFLAGS) $(ALLOFILES) $(LPATH) $(LIBS) $(SYSLIBS) -T /for/program/sce/ee/lib/app.cmd -o a.out.$@
-	mv a.out.$@ [email protected]
-else
-
-# END PS2 MOD ########################
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-	$(LD) $(LDFLAGS) $(LPATH) $(LINKFLAGS) $(ALLOFILES) $(WINLIBS) -OUT:a.out.$@
-	mv a.out.$@ $@
-else # NON-WIN32_VC
-	$(LD) $(LDFLAGS) $(LPATH) $(LINKFLAGS) $(ALLOFILES) $(LIBS) $(SYSLIBS) -o a.out.$@
-	mv a.out.$@ $@
-endif # WIN32_VC
-endif # PS2
-
-ifeq (4,$(OPTIMIZE))
-	strip $@
-endif
-endif
-
-EXPBIN =
-ILKBIN =
-PDBBIN =
-LIBBIN =
-VCFILES =
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  EXPBIN := $(BASETARGET:%=a.out.%.exp)
-  ILKBIN := $(BASETARGET:%=a.out.%.ilk)
-  PDBBIN := $(BASETARGET:%=a.out.%.pdb)
-  LIBBIN := $(BASETARGET:%=a.out.%.lib)
-  VCFILES := vc60.idb vc60.pdb
-endif # WIN32_VC
-
-clean::
-	@rm -f a.out.$(TARGET) $(EXPBIN) $(ILKBIN) $(PDBBIN) $(LIBBIN) \
-		$(VCFILES)
-
-cleanall: clean
-	rm -rf ii_files
-	rm -f $(TARGET) $(EXPBIN) $(ILKBIN) $(PDBBIN) $(LIBBIN) \
-		$(VCFILES)
-
-list:
-	@echo $(TARGET)

+ 0 - 23
dtool/src/build/Makefile.bin.template

@@ -1,23 +0,0 @@
-#### Makefile for binaries.  Any fields commented out are optional.
-
-#### Target's name:
-#CTTARGET
-
-#CTINCLUDE $DTOOL/lib/Makefile.o.include
-
-#### Pull in standard binary make variables.
-include $(DTOOL)/include/Makefile.bin.vars
-
-#### Other files and lib.  Include $(ODIR) in any .o names.
-# OFILES = 
-# LIBS = 
-
-#### Additional search directories for lib:
-# LPATH := $(LPATH) -L/my/directory -L/my/other/directory
-
-#### Other linker flags. 
-# LDFLAGS = 
-
-#### The bin action is here.
-include $(DTOOL)/include/Makefile.bin.rules
-

+ 0 - 137
dtool/src/build/Makefile.bin.vars

@@ -1,137 +0,0 @@
-# Pull in the .o vars if they haven't been read already
-ifeq (,$(MAKEFILE_O_VARS))
-include $(DTOOL)/include/Makefile.o.vars
-endif
-
-# Get the project root
-ifeq (,$(CTPROJROOT))
-CTPROJROOT := $(shell $(DTOOL)/bin/ctproj -root)
-export CTPROJROOT
-endif
-
-# Set the SOLOCATIONS file
-SOLOCATIONS := ../../etc/so_locations
-
-# Make sure CT_LIBRARY_PATH is set.
-ifeq (,$(CT_LIBRARY_PATH))
-ifneq (,$(LD_LIBRARY_PATH))
-export CT_LIBRARY_PATH := $(LD_LIBRARY_PATH)
-else
-export CT_LIBRARY_PATH = .
-endif
-endif
-
-LPATH_DIRS := $(strip $(shell ctpathadjust $(subst :, ,$(CT_LIBRARY_PATH)))) $(patsubst -L%,%,$(LPATH))
-
-# Legacy.
-ifneq (,$(PYTHON_LIB))
-  LPATH_DIRS += $(PYTHON_LIB)
-endif
-ifneq (,$(NSPR_LIB))
-  LPATH_DIRS += $(NSPR_LIB)
-endif
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  LPATH := $(foreach path,$(LPATH_DIRS),-LIBPATH:"$(shell cygpath -w $(path))")
-else # NON-WIN32_VC
-  LPATH := $(patsubst %,-L%,$(LPATH_DIRS))
-endif # WIN32_VC
-
-ifeq (SGI,$(PENV))
-  CLDFLAGS = -Wl,-force_load -Wl,-transitive_link
-  C++LDFLAGS = -Wl,-demangle -Wl,-force_load -Wl,-transitive_link
-endif
-
-# Figure out what the linker is.  Start with simple defaults.
-
-ifeq (PS2, $(PENV))
-  AR = ee-ar
-  SET_LD = ee-ld
-else
-  AR = ar
-  SET_LD = ld
-endif
-
-SET_LDFLAGS = 
-LINKFLAGS =
-
-# C files
-ifneq (,$(CFILES))   
-SET_LD := $(CC)
-SET_LDFLAGS := $(CLDFLAGS) $(CFLAGS)
-endif
-
-# C++ files
-ifneq (,$(C++FILES)) # If there are C++ files, make it CC
-SET_LD := $(C++)
-SET_LDFLAGS := $(C++LDFLAGS) $(C++FLAGS)
-endif
-
-# C files in the OFILES list 
-ifneq (,$(findstring .c,$(suffix $(OFILES))))
-SET_LD := $(CC)
-SET_LDFLAGS := $(IPATH) $(CLDFLAGS) $(CFLAGS)
-endif
-
-# C++ files in the OFILES list
-ifneq (,$(findstring .cxx,$(suffix $(OFILES))))
-SET_LD := $(C++)
-SET_LDFLAGS := $(IPATH) $(C++LDFLAGS) $(C++FLAGS)
-endif
-
-# Making a DSO - use C++ for now
-ifeq (.so,$(suffix $(TARGET)))
-SET_LD := $(C++)
-SET_LDFLAGS := $(IPATH) $(C++LDFLAGS) $(C++FLAGS)
-endif
-
-# Making a DLL - use C++ for now
-ifeq (.dll,$(suffix $(TARGET)))
-SET_LD := $(C++)
-SET_LDFLAGS := $(C++LDFLAGS) $(C++FLAGS)
-endif
-
-# Making a WIN binary file
-ifeq (WIN32,$(PENV))
-  SET_LD = link
-  SET_LDFLAGS = -NOLOGO 
-
-  ifeq (4,$(OPTIMIZE))
-      LINKFLAGS += -fixed:no
-  else
-    ifeq (3,$(OPTIMIZE))
-      LINKFLAGS += -fixed:no
-    else
-      LINKFLAGS += -debug -incremental:no
-    endif
-  endif
-endif
-
-ifeq ($(LD),ld)
-  LD := $(SET_LD)
-endif
-ifeq ($(LD),)
-  LD := $(SET_LD)
-endif
-
-LDFLAGS += $(SET_LDFLAGS)
-
-ARFLAGS = ruv
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

+ 0 - 74
dtool/src/build/Makefile.foreign.rules

@@ -1,74 +0,0 @@
-##############################################################################
-#
-# Foreign package building rules
-#
-
-# Clear ALLTARGETS
-ALLTARGETS = 
-
-ifneq (,$(COMMAND1))
-ALLTARGETS := $(ALLTARGETS) $(TARGET)_COMMAND1_RULE
-ifeq (,$(DIR1))
-DIR1 = .
-endif
-$(TARGET)_COMMAND1_RULE:
-	@ echo "**** executing subcommand '$(COMMAND1)'"
-	@ cd $(STARTDIR)/$(DIR1) ; $(COMMAND1)
-.PHONY: $(TARGET)_COMMAND1_RULE
-endif
-
-ifneq (,$(COMMAND2))
-ALLTARGETS := $(ALLTARGETS) $(TARGET)_COMMAND2_RULE
-ifeq (,$(DIR2))
-DIR2 = .
-endif
-$(TARGET)_COMMAND2_RULE:
-	@ echo "**** executing subcommand '$(COMMAND2)'"
-	@ cd $(STARTDIR)/$(DIR2) ; $(COMMAND2)
-.PHONY: $(TARGET)_COMMAND2_RULE
-endif
-
-ifneq (,$(COMMAND3))
-ALLTARGETS := $(ALLTARGETS) $(TARGET)_COMMAND3_RULE
-ifeq (,$(DIR3))
-DIR3 = .
-endif
-$(TARGET)_COMMAND3_RULE:
-	@ echo "**** executing subcommand '$(COMMAND3)'"
-	@ cd $(STARTDIR)/$(DIR3) ; $(COMMAND3)
-.PHONY: $(TARGET)_COMMAND3_RULE
-endif
-
-ifneq (,$(COMMAND4))
-ALLTARGETS := $(ALLTARGETS) $(TARGET)_COMMAND4_RULE
-ifeq (,$(DIR4))
-DIR4 = .
-endif
-$(TARGET)_COMMAND4_RULE:
-	@ echo "**** executing subcommand '$(COMMAND4)'"
-	@ cd $(STARTDIR)/$(DIR4) ; $(COMMAND4)
-.PHONY: $(TARGET)_COMMAND4_RULE
-endif
-
-ifneq (,$(COMMAND5))
-ALLTARGETS := $(ALLTARGETS) $(TARGET)_COMMAND5_RULE
-ifeq (,$(DIR5))
-DIR5 = .
-endif
-$(TARGET)_COMMAND5_RULE:
-	@ echo "**** executing subcommand '$(COMMAND5)'"
-	@ cd $(STARTDIR)/$(DIR5) ; $(COMMAND5)
-.PHONY: $(TARGET)_COMMAND5_RULE
-endif
-
-# now if there's anything to do, do it
-ifneq (,$(ALLTARGETS))
-$(TARGET): $(ALLTARGETS)
-endif
-
-clean::
-
-cleanall: clean
-
-list:
-	@ echo $(TARGET)

+ 0 - 28
dtool/src/build/Makefile.foreign.template

@@ -1,28 +0,0 @@
-#### Makefile for foreign packages.  Any fields commented out are optional.
-
-#### Target's name:
-#CTTARGET
-
-#### Pull in standard foreign package make variables
-include $(DTOOL)/include/Makefile.foreign.vars
-
-#### commands for building a foreign package.  DIR?, if ommitted, defaults to
-#### '.'.  COMMAND?, if ommitted, does nothing.
-# DIR1 = 
-# COMMAND1 = 
-
-# DIR2 = 
-# COMMAND2 = 
-
-# DIR3 = 
-# COMMAND3 = 
-
-# DIR4 = 
-# COMMAND4 = 
-
-# DIR5 = 
-# COMMAND5 = 
-
-
-#### The foreign package build action is here.
-include $(DTOOL)/include/Makefile.foreign.rules

+ 0 - 19
dtool/src/build/Makefile.foreign.vars

@@ -1,19 +0,0 @@
-# Standard variables for building foreign packages
-
-ifeq (,$(MAKEFILE_FOREIGN_VARS))
-MAKEFILE_FOREIGN_VARS = TRUE
-
-ifeq (,$(MAKEFILE_PENV_VARS))
-include $(DTOOL)/include/Makefile.penv.vars
-endif
-
-# Delete the default suffixes
-.SUFFIXES:
-
-# get a dir to cd to
-STARTDIR = `ctproj -r`/src/all/$(TARGET)
-
-# Set the default target
-install all : $(TARGET)
-
-endif

+ 0 - 891
dtool/src/build/Makefile.install.rules

@@ -1,891 +0,0 @@
-#### Makefile install rules.  Setup. 
-strip-target = `echo $@ | sed 's/^[^-]*-//'`
-
-# Yank out any whitespace in the package name.
-PACKAGE := $(strip $(PACKAGE))
-
-# Pull in standard install make variables.
-ifeq (,$(MAKEFILE_INSTALL_VARS))
-include $(DTOOL)/include/Makefile.install.vars
-endif
-
-# We need this one to define DEBUGNAME for us.
-ifeq (,$(MAKEFILE_O_VARS))
-include $(DTOOL)/include/Makefile.o.vars
-endif
-
-# Infer the package root from the package name, if not already set.
-ifeq (,$(PKGROOT))
-PKGROOT = src/all/$(PACKAGE)
-else
-PKGROOT := $(strip $(PKGROOT))
-endif
-
-
-# First target.  Convenient synonym for install.
-$(PACKAGE): install-$(PACKAGE)
-$(PKGROOT): install-$(PKGROOT)
-
-
-
-#### File install actions
-#
-# This section constructs lists of installed files, and the source files
-# from which they are copied.  Then the user supplied list is cleared.
-# This is because this rules file is included in the project Makefile
-# more than once, and we'd rather not have one package's file list
-# affecting the installation of another package that follows it.
-#
-# Each installed file depends on the existence of a source file from
-# which to copy it.  Each block below is for a different installation
-# directory.  The ALLSRC and ALLINST lists will be used in the next sections 
-# of the rules.  More such blocks may be added by following the pattern.
-#
-
-ALLSRC = 
-ALLINST = 
-
-
-# DEFERRED supplied by package's Makefile.install.  If defined (and
-# not overridden in Makefile.penv.vars), this indicates that a
-# deferred build is requested by the makefiles in this package, and we
-# should install only the output of these deferred builds.  This,
-# therefore, overrides any request to install LIBS.
-
-ifeq (,$(USE_DEFERRED))
-  DEFERRED :=
-endif
-
-ifeq (PS2, $(PENV))
-  SOLIBS := $(filter %.so,$(LIBS))
-  SOLIBS := $(SOLIBS:%.so=%.a)
-  ALIBS := $(filter %.a,$(LIBS))
-  LIBS := $(SOLIBS)
-  LIBS += $(ALIBS)
-endif
-
-SRCDEFERRED := $(addprefix $(PKGROOT)/,$(DEFERRED))
-ALLSRC := $(ALLSRC) $(SRCDEFERRED)
-INSTDEFERRED := $(addprefix deferred/,$(DEFERRED))
-ALLINST := $(ALLINST) $(INSTDEFERRED)
-DEFERRED = 
-
-ifneq (,$(INSTDEFERRED))
-$(INSTDEFERRED): deferred/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-# LIBS supplied by package's Makefile.install.
-ifeq (WIN32,$(PENV))
-  SOLIBS := $(filter %.so,$(LIBS))
-  SOLIBS := $(SOLIBS:%.so=%$(DEBUGNAME).dll)
-  ALIBS := $(filter %.a,$(LIBS))
-  ALIBS := $(ALIBS:%.a=%$(DEBUGNAME).lib)
-  LIBS := $(SOLIBS:%.dll=%.lib)
-  LIBS += $(ALIBS)
-  LIBS += $(SOLIBS)
-endif # WIN32
-ifeq (OSX,$(PENV))
-  SOLIBS := $(filter %.so,$(LIBS))
-  SOLIBS := $(SOLIBS:%.so=%.dylib)
-  ALIBS := $(filter %.a,$(LIBS))
-  LIBS := $(ALIBS)
-  LIBS += $(SOLIBS)
-endif # OSX
-
-SRCLIBS := $(addprefix $(PKGROOT)/,$(LIBS))
-ALLSRC := $(ALLSRC) $(SRCLIBS)
-INSTLIBS := $(addprefix lib/,$(LIBS))
-ALLINST := $(ALLINST) $(INSTLIBS)
-LIBS = 
-
-ifeq (,$(INSTDEFERRED))
-  ifneq (,$(INSTLIBS))
-    $(INSTLIBS): lib/% : $(PKGROOT)/%
-	$(MKINSTALL)
-  endif
-else
-  ifneq (,$(INSTLIBS))
-    $(INSTLIBS):
-  endif
-endif
-  
-
-# INCLUDE supplied by package's Makefile.install.
-INCLUDE := $(strip $(INCLUDE))
-SRCINCLUDE := $(addprefix $(PKGROOT)/,$(INCLUDE))
-ALLSRC := $(ALLSRC) $(SRCINCLUDE)
-INSTINCLUDE := $(addprefix include/,$(INCLUDE))
-ALLINST := $(ALLINST) $(INSTINCLUDE)
-INCLUDE = 
-
-ifneq (,$(INSTINCLUDE))
-$(INSTINCLUDE): include/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# BINS supplied by package's Makefile.install.
-BINS := $(strip $(BINS))
-ifeq (WIN32,$(PENV))
-  BINS := $(BINS:%=%.exe)
-endif
-SRCBINS := $(addprefix $(PKGROOT)/,$(BINS))
-ALLSRC := $(ALLSRC) $(SRCBINS)
-INSTBINS := $(addprefix bin/,$(BINS))
-ALLINST := $(ALLINST) $(INSTBINS)
-BINS = 
-
-ifneq (,$(INSTBINS))
-  $(INSTBINS): bin/% : $(PKGROOT)/%
-	$(MKINSTALL)
-	@chmod +x $@
-endif
-
-
-# SCRIPTS supplied by package's Makefile.install.
-SCRIPTS := $(strip $(SCRIPTS))
-SRCSCRIPTS := $(addprefix $(PKGROOT)/,$(SCRIPTS))
-ALLSRC := $(ALLSRC) $(SRCSCRIPTS)
-INSTSCRIPTS := $(addprefix bin/,$(SCRIPTS))
-ALLINST := $(ALLINST) $(INSTSCRIPTS)
-SCRIPTS = 
-
-ifneq (,$(INSTSCRIPTS))
-$(INSTSCRIPTS): bin/% : $(PKGROOT)/%
-	$(MKINSTALL)
-	@chmod +x $@
-endif
-
-
-# SS supplied by package's Makefile.install.
-SS := $(strip $(SS))
-SRCSS := $(addprefix $(PKGROOT)/,$(SS))
-ALLSRC := $(ALLSRC) $(SRCSS)
-INSTSS := $(addprefix lib/ss/,$(SS))
-ALLINST := $(ALLINST) $(INSTSS)
-SS =
-
-ifneq (,$(INSTSS))
-$(INSTSS): lib/ss/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# ST supplied by package's Makefile.install.
-ST := $(strip $(ST))
-SRCST := $(addprefix $(PKGROOT)/,$(ST))
-ALLSRC := $(ALLSRC) $(SRCST)
-INSTST := $(addprefix lib/st/,$(ST))
-ALLINST := $(ALLINST) $(INSTST)
-ST =
-
-ifneq (,$(INSTST))
-$(INSTST): lib/st/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# STK supplied by package's Makefile.install.
-STK := $(strip $(STK))
-SRCSTK := $(addprefix $(PKGROOT)/,$(STK))
-ALLSRC := $(ALLSRC) $(SRCSTK)
-INSTSTK := $(addprefix lib/stk/,$(STK))
-ALLINST := $(ALLINST) $(INSTSTK)
-STK =
-
-ifneq (,$(INSTSTK))
-$(INSTSTK): lib/stk/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# ETC supplied by package's Makefile.install.
-ETC := $(strip $(ETC))
-SRCETC := $(addprefix $(PKGROOT)/,$(ETC))
-ALLSRC := $(ALLSRC) $(SRCETC)
-INSTETC := $(addprefix etc/,$(ETC))
-ALLINST := $(ALLINST) $(INSTETC)
-ETC = 
-
-ifneq (,$(INSTETC))
-$(INSTETC): etc/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# IGATEDB supplied by package's Makefile.install.
-ifeq (,$(NO_INTERROGATE))
-IGATEDB := $(strip $(IGATEDB))
-SRCIGATEDB := $(addprefix $(PKGROOT)/,$(IGATEDB))
-ALLSRC := $(ALLSRC) $(SRCIGATEDB)
-INSTIGATEDB := $(addprefix etc/,$(IGATEDB))
-ALLINST := $(ALLINST) $(INSTIGATEDB)
-IGATEDB = 
-
-ifneq (,$(INSTIGATEDB))
-$(INSTIGATEDB): etc/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-endif
-
-
-# MODELS supplied by package's Makefile.install.
-MODELS := $(strip $(MODELS))
-SRCMODELS := $(addprefix $(PKGROOT)/,$(MODELS))
-ALLSRC := $(ALLSRC) $(SRCMODELS)
-INSTMODELS := $(addprefix etc/models/, $(MODELS))
-ALLINST := $(ALLINST) $(INSTMODELS)
-MODELS = 
-
-ifneq (, $(INSTMODELS))
-$(INSTMODELS): etc/models/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# DOC supplied by package's Makefile.install.
-DOC := $(strip $(DOC))
-SRCDOC := $(addprefix $(PKGROOT)/,$(DOC))
-ALLSRC := $(ALLSRC) $(SRCDOC)
-INSTDOC := $(addprefix doc/,$(DOC))
-ALLINST := $(ALLINST) $(INSTDOC)
-DOC = 
-
-ifneq (,$(INSTDOC))
-$(INSTDOC): doc/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# MAN supplied by package's Makefile.install.
-MAN := $(strip $(MAN))
-SRCMAN := $(addprefix $(PKGROOT)/,$(MAN))
-ALLSRC := $(ALLSRC) $(SRCMAN)
-INSTMAN := $(addprefix doc/man/,$(MAN))
-ALLINST := $(ALLINST) $(INSTMAN)
-MAN = 
-
-ifneq (,$(INSTMAN))
-$(INSTMAN): doc/man/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-# TXT supplied by package's Makefile.install.
-TXT := $(strip $(TXT))
-SRCTXT := $(addprefix $(PKGROOT)/,$(TXT))
-ALLSRC := $(ALLSRC) $(SRCTXT)
-INSTTXT := $(addprefix doc/txt/,$(TXT))
-ALLINST := $(ALLINST) $(INSTTXT)
-TXT = 
-
-ifneq (,$(INSTTXT))
-$(INSTTXT): doc/txt/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-# HTML supplied by package's Makefile.install.
-HTML := $(strip $(HTML))
-SRCHTML := $(addprefix $(PKGROOT)/,$(HTML))
-ALLSRC := $(ALLSRC) $(SRCHTML)
-INSTHTML := $(addprefix doc/html/,$(HTML))
-ALLINST := $(ALLINST) $(INSTHTML)
-HTML = 
-
-ifneq (,$(INSTHTML))
-$(INSTHTML): doc/html/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-# PS supplied by package's Makefile.install.
-PS := $(strip $(PS))
-SRCPS := $(addprefix $(PKGROOT)/,$(PS))
-ALLSRC := $(ALLSRC) $(SRCPS)
-INSTPS := $(addprefix doc/ps/,$(PS))
-ALLINST := $(ALLINST) $(INSTPS)
-PS = 
-
-ifneq (,$(INSTPS))
-$(INSTPS): doc/ps/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-# FONTS supplied by package's Makefile.install.
-FONTS := $(strip $(FONTS))
-SRCFONTS := $(addprefix $(PKGROOT)/,$(FONTS))
-ALLSRC := $(ALLSRC) $(SRCFONTS)
-INSTFONTS := $(addprefix etc/fonts/,$(FONTS))
-ALLINST := $(ALLINST) $(INSTFONTS)
-FONTS = 
-
-ifneq (,$(INSTFONTS))
-$(INSTFONTS): etc/fonts/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# ICONS supplied by package's Makefile.install.
-ICONS := $(strip $(ICONS))
-SRCICONS := $(addprefix $(PKGROOT)/,$(ICONS))
-ALLSRC := $(ALLSRC) $(SRCICONS)
-INSTICONS := $(addprefix etc/icons/,$(ICONS))
-ALLINST := $(ALLINST) $(INSTICONS)
-ICONS = 
-
-ifneq (,$(INSTICONS))
-$(INSTICONS): etc/icons/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# APPDEFAULTS supplied by package's Makefile.install.
-APPDEFAULTS := $(strip $(APPDEFAULTS))
-SRCAPPDEFAULTS := $(addprefix $(PKGROOT)/,$(APPDEFAULTS))
-ALLSRC := $(ALLSRC) $(SRCAPPDEFAULTS)
-INSTAPPDEFAULTS := $(addprefix etc/app-defaults/,$(APPDEFAULTS))
-ALLINST := $(ALLINST) $(INSTAPPDEFAULTS)
-APPDEFAULTS = 
-
-ifneq (,$(INSTAPPDEFAULTS))
-$(INSTAPPDEFAULTS): etc/app-defaults/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# TCL supplied by package's Makefile.install.
-TCL := $(strip $(TCL))
-SRCTCL := $(addprefix $(PKGROOT)/,$(TCL))
-ALLSRC := $(ALLSRC) $(SRCTCL)
-INSTTCL := $(addprefix etc/tcl/,$(TCL))
-ALLINST := $(ALLINST) $(INSTTCL)
-TCL = 
-
-ifneq (,$(INSTTCL))
-$(INSTTCL): etc/tcl/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# TELEUSE supplied by package's Makefile.install.
-TELEUSE := $(strip $(TELEUSE))
-SRCTELEUSE := $(addprefix $(PKGROOT)/,$(TELEUSE))
-ALLSRC := $(ALLSRC) $(SRCTELEUSE)
-INSTTELEUSE := $(addprefix etc/teleuse/,$(TELEUSE))
-ALLINST := $(ALLINST) $(INSTTELEUSE)
-TELEUSE = 
-
-ifneq (,$(INSTTELEUSE))
-$(INSTTELEUSE): etc/teleuse/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# SHADERS supplied by package's Makefile.install.
-SHADERS := $(strip $(SHADERS))
-SRCSHADERS := $(addprefix $(PKGROOT)/,$(SHADERS))
-ALLSRC := $(ALLSRC) $(SRCSHADERS)
-INSTSHADERS := $(addprefix etc/shaders/,$(SHADERS))
-ALLINST := $(ALLINST) $(INSTSHADERS)
-SHADERS = 
-
-ifneq (,$(INSTSHADERS))
-$(INSTSHADERS): etc/shaders/% : $(PKGROOT)/%
-	$(MKINSTALL)
-endif
-
-
-# OTHER supplied by package's Makefile.install.
-OTHER := $(strip $(OTHER))
-SRCOTHER := $(addprefix $(PKGROOT)/,$(notdir $(OTHER)))
-ALLSRC := $(ALLSRC) $(SRCOTHER)
-INSTOTHER := $(OTHER)
-ALLINST := $(ALLINST) $(INSTOTHER)
-OTHER = 
-# Install actions for these files come from package's Makefile.install
-
-
-
-#### Dependencies on files from other packages (same project).
-
-ALLUSES = 
-
-# USESLIBS supplied by package's Makefile.install.
-
-ifeq (PS2, $(PENV))
-  USESLIBS := $(USESLIBS:%.so=%.a)
-endif
-
-ifeq (WIN32,$(PENV))
-  USESLIBS := $(USESLIBS:%.so=%$(DEBUGNAME).dll)
-  USESLIBS := $(USESLIBS:%.a=%$(DEBUGNAME).lib)
-endif # WIN32
-ifeq (OSX,$(PENV))
-  USESLIBS := $(USESLIBS:%.so=%.dylib)
-endif # OSX
-ALLUSES := $(ALLUSES) $(addprefix lib/,$(strip $(USESLIBS)))
-USESLIBS = 
-
-# USESINCLUDE supplied by package's Makefile.install.
-ALLUSES := $(ALLUSES) $(addprefix include/,$(strip $(USESINCLUDE)))
-USESINCLUDE = 
-
-# USESDEFERREDLIBS supplied by package's Makefile.install, but only
-# respected if USE_DEFERRED is set.
-ifneq (,$(USE_DEFERRED))
-  ifeq (WIN32,$(PENV))
-    USESDEFERREDLIBS := $(USESDEFERREDLIBS:%.so=%$(DEBUGNAME).dll)
-    USESDEFERREDLIBS := $(USESDEFERREDLIBS:%.a=%$(DEBUGNAME).lib)
-  endif # WIN32
-  ifeq (OSX,$(PENV))
-    USESDEFERREDLIBS := $(USESDEFERREDLIBS:%.so=%.dylib)
-  endif # OS X
-  ALLUSES := $(ALLUSES) $(addprefix lib/,$(strip $(USESDEFERREDLIBS)))
-  USESDEFERREDLIBS = 
-endif
-
-# USESOTHER supplied by package's Makefile.install.
-ALLUSES := $(ALLUSES) $(strip $(USESOTHER))
-USESOTHER = 
-
-
-
-#### Action targets
-#
-# The following series of targets all cause some action to take place in
-# the project tree.  All of these actions may be done on a single
-# package or on the entire project.  By default, any action done on a
-# package is also done first on any packages it depends on.  This can be
-# circumvented by setting NODEPEND to true.  
-#
-# One of the tricky things done in all the following rules was to not use 
-# any variables in the build scripts.  This is necessary because this 
-# rules files is read in multiple times in a project build, and the 
-# variable are set multiple times.  However, build scripts are executed
-# at the end of the read process, after dependency resolution.  At that
-# time, variables have the value they were last set to.  Instead, the
-# approach is to place the variables in the dependency lists and target
-# names, since these are resolved as the file is read.
-#
-
-#### Installation and build rules.
-
-# To install project, install all packages.
-install-$(CTPROJECT): install-$(PKGROOT)
-
-# To install package, must build all installed files.
-install-$(PKGROOT):  announce-install-$(PKGROOT) $(ALLINST)
-
-# Synonym for installing a package.
-install-$(PACKAGE): install-$(PKGROOT)
-
-# $(ALLINST) : $(ALLSRC) done in install actions section above.
-
-## Before installing, announce that installation is starting.
-#ifneq (,$(ALLSRC))
-#$(ALLSRC): announce-install-$(PKGROOT)
-#endif
-
-# State that we're installing files from the package.  Build first.
-announce-install-$(PKGROOT): build-$(PKGROOT)
-	@echo '***' Installing from $(strip-target) '...'
-
-# Check for Makefile in package.  If found, make it.
-ifeq (,$(NODEPEND))
-build-$(PKGROOT) : $(addprefix install-,$(ALLUSES))
-else
-build-$(PKGROOT) :
-endif
-	@cd $(CTPROJROOT)/$(strip-target); if [ -r Makefile ]; then echo '***' Building $(strip-target) '...'; \
-	$(MAKE) install; fi
-
-# Convenient synonym for build.
-build-$(PACKAGE): build-$(PKGROOT)
-
-# Provide hooks for other packages to transmit build dependencies.
-ifneq (,$(ALLINST))
-$(addprefix install-,$(ALLINST)): install-$(PKGROOT)
-endif
-
-
-
-#### Clean rules.
-
-# To clean project, clean each package.
-clean-$(CTPROJECT): clean-$(PKGROOT)
-
-# Synonym to clean a particular package.
-clean-$(PACKAGE): clean-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix clean-,$(ALLINST)): clean-$(PKGROOT)
-endif
-
-# To clean package, cd to it and do 'make clean' (if there's a Makefile).
-ifeq (,$(NODEPEND))
-clean-$(PKGROOT) : $(addprefix clean-,$(ALLUSES))
-else
-clean-$(PKGROOT) :
-endif
-	@cd $(CTPROJROOT)/$(strip-target); if [ -r Makefile ]; then echo '***' Cleaning $(strip-target) '...'; \
-	$(MAKE) clean; fi
-
-
-
-#### Cleanall rules.
-
-# To clean project, clean each package.
-cleanall-$(CTPROJECT): cleanall-$(PKGROOT)
-
-# Synonym to cleanall a particular package.
-cleanall-$(PACKAGE): cleanall-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix cleanall-,$(ALLINST)): cleanall-$(PKGROOT)
-endif
-
-# To cleanall package, cd to it and do 'make cleanall' (if there's a Makefile).
-ifeq (,$(NODEPEND))
-cleanall-$(PKGROOT) : $(addprefix cleanall-,$(ALLUSES))
-else
-cleanall-$(PKGROOT) :
-endif
-	@cd $(CTPROJROOT)/$(strip-target); if [ -r Makefile ]; then echo '***' Wiping $(strip-target) '...'; \
-	$(MAKE) cleanall; fi
-
-
-
-#### Uninstall rules.
-
-# To uninstall project, must uninstall each package.
-uninstall-$(CTPROJECT): uninstall-$(PKGROOT)
-
-# To uninstall package, must remove each installed file.
-uninstall-$(PKGROOT): $(addprefix uninstall-,$(ALLINST))
-
-# Synonym for uninstalling a package.
-uninstall-$(PACKAGE): uninstall-$(PKGROOT)
-
-# To remove file, check if it's there and rm it.
-ifneq (,$(ALLINST))
-$(addprefix uninstall-,$(ALLINST)): announce-uninstall-$(PKGROOT)
-	@if [ -r $(strip-target) ]; then echo $(strip-target); rm -rf $(strip-target); fi
-
-$(addprefix touninstall-,$(ALLINST)): uninstall-$(PKGROOT)
-endif
-
-# Announce uninstallation.  First uninstall dependent packages.
-ifeq (,$(NODEPEND))
-announce-uninstall-$(PKGROOT): $(addprefix touninstall-,$(ALLUSES))
-else
-announce-uninstall-$(PKGROOT):
-endif
-	@echo '***' Uninstalling from package $(strip-target) '...'
-
-
-
-#### Touch rules.
-
-# To touch project, must touch each package.
-touch-$(CTPROJECT): touch-$(PKGROOT)
-
-# To touch package, must touch each installed file.
-touch-$(PKGROOT): $(addprefix touch-,$(ALLINST))
-
-# Synonym for touching a package.
-touch-$(PACKAGE): touch-$(PKGROOT)
-
-# To touch file, check if it's there and touch it.  Works on directories.
-ifneq (,$(ALLINST))
-$(addprefix touch-,$(ALLINST)): announce-touch-$(PKGROOT)
-	@if [ -r $(strip-target) ]; then find $(strip-target) -print -exec touch {} \; ; fi
-
-$(addprefix totouch-,$(ALLINST)): touch-$(PKGROOT)
-endif
-
-# Announce touch.  First touch dependent packages.
-ifeq (,$(NODEPEND))
-announce-touch-$(PKGROOT): $(addprefix totouch-,$(ALLUSES))
-else
-announce-touch-$(PKGROOT):
-endif
-	@echo '***' Touching package $(strip-target) '...'
-
-
-
-#### Copy rules.
-
-# To copy project, must copy each package.
-copy-$(CTPROJECT): copy-$(PKGROOT)
-
-# To copy package, must copy each installed file.
-copy-$(PKGROOT): $(addprefix copy-,$(ALLINST))
-
-# Synonym for copying a package.
-copy-$(PACKAGE): copy-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix copy-,$(ALLINST)): announce-copy-$(PKGROOT)
-ifneq (,$(CTFROM))
-	@if [ ! -d $(*D) ]; then mkdir $(*D); fi
-	@cp -r $(CTFROM)/$(strip-target) $(strip-target) && echo $(strip-target)
-else
-	@echo CTFROM variable not set; exit 1
-endif
-
-$(addprefix tocopy-,$(ALLINST)): copy-$(PKGROOT)
-endif
-
-# Announce copy.  First copy dependent packages.
-ifeq (,$(NODEPEND))
-announce-copy-$(PKGROOT): $(addprefix tocopy-,$(ALLUSES))
-else
-announce-copy-$(PKGROOT):
-endif
-	@echo '***' Copying package $(strip-target) '...'
-
-
-
-#### Query targets.
-#
-# The following rules use the project makefile as a database, to which
-# various questions can be put, such as 'what files does this package
-# install?', 'which files are currently installed?', and 'what packages
-# must be built before this package can be built?'.  These targets take
-# no action in the project, they just produce a list of one or more 
-# answers.  As in the action targets, interpackage dependencies are used
-# to automatically propagate the question from a package to its
-# dependency packages (those it needs to build).
-
-#### Query files to be installed by a package.
-
-# To find files installed by project, query each package.
-toinstall-$(CTPROJECT): toinstall-$(PKGROOT)
-
-# Convenient synonym for toinstall.
-toinstall-$(PACKAGE): toinstall-$(PKGROOT)
-
-# To list package, list each file installed by package.
-toinstall-$(PKGROOT): $(addprefix toinstall-,$(ALLINST))
-
-# Echo each installed file's name.  First announce the package.
-ifneq (,$(ALLINST))
-$(addprefix toinstall-,$(ALLINST)): announce-toinstall-$(PKGROOT)
-	@echo $(strip-target)
-
-$(addprefix totoinstall-,$(ALLINST)): toinstall-$(PKGROOT)
-endif
-
-ifeq (,$(NODEPEND))
-announce-toinstall-$(PKGROOT): $(addprefix totoinstall-,$(ALLUSES))
-else
-announce-toinstall-$(PKGROOT):
-endif
-	@echo '***' To be installed from $(strip-target) '...'
-
-
-
-
-#### Query files that have been installed by a package.
-
-isinstalled-$(CTPROJECT): isinstalled-$(PKGROOT)
-
-isinstalled-$(PKGROOT): $(addprefix isinstalled-,$(ALLINST))
-
-isinstalled-$(PACKAGE): isinstalled-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix isinstalled-,$(ALLINST)): announce-isinstalled-$(PKGROOT)
-	@if [ -r $(strip-target) ]; then echo $(strip-target); fi
-
-$(addprefix toisinstalled-,$(ALLINST)): isinstalled-$(PKGROOT)
-endif
-
-ifeq (,$(NODEPEND))
-announce-isinstalled-$(PKGROOT): $(addprefix toisinstalled-,$(ALLUSES))
-else
-announce-isinstalled-$(PKGROOT):
-endif
-	@echo '***' Currently installed from $(strip-target) '...'
-
-
-
-#### Query files that have not been installed by a package.
-
-notinstalled-$(CTPROJECT): notinstalled-$(PKGROOT)
-
-notinstalled-$(PKGROOT): $(addprefix notinstalled-,$(ALLINST))
-
-notinstalled-$(PACKAGE): notinstalled-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix notinstalled-,$(ALLINST)): announce-notinstalled-$(PKGROOT)
-	@if [ ! -r $(strip-target) ]; then echo $(strip-target); fi
-
-$(addprefix tonotinstalled-,$(ALLINST)): notinstalled-$(PKGROOT)
-endif
-
-ifeq (,$(NODEPEND))
-announce-notinstalled-$(PKGROOT): $(addprefix tonotinstalled-,$(ALLUSES))
-else
-announce-notinstalled-$(PKGROOT):
-endif
-	@echo '***' Not currently installed from $(strip-target) '...'
-
-
-
-#### Check that a package is completely installed.
-
-checkinstall-$(CTPROJECT): checkinstall-$(PKGROOT)
-
-checkinstall-$(PACKAGE): checkinstall-$(PKGROOT)
-
-checkinstall-$(PKGROOT): $(addprefix checkinstall-,$(ALLINST))
-
-ifneq (,$(ALLINST))
-$(addprefix checkinstall-,$(ALLINST)): announce-checkinstall-$(PKGROOT)
-	@if [ ! -r $(strip-target) ]; then exit 1; fi
-
-$(addprefix tocheckinstall-,$(ALLINST)): checkinstall-$(PKGROOT)
-endif
-
-ifeq (,$(NODEPEND))
-announce-checkinstall-$(PKGROOT): $(addprefix tocheckinstall-,$(ALLUSES))
-else
-announce-checkinstall-$(PKGROOT):
-endif
-	@echo '***' Checking installation from $(strip-target) '...'
-
-
-
-#### Query files used to build a package.
-
-# To find files needed in project, query each package.
-showuses-$(CTPROJECT): showuses-$(PKGROOT)
-
-# Convenient synonym for showuses.
-showuses-$(PACKAGE): showuses-$(PKGROOT)
-
-showuses-$(PKGROOT): $(addprefix showuses-,$(ALLUSES))
-	@echo '***' Files declared as needed to build $(strip-target) '...'
-	@if expr "$^" != "" > /dev/null; then echo $^ | sed -e 's/showuses-//g' | tr " " "\012"; fi
-
-ifneq (,$(NODEPEND))
-
-ifneq (,$(ALLUSES))
-$(addprefix showuses-,$(ALLUSES)): 
-
-endif
-
-else
-
-ifneq (,$(ALLINST))
-$(addprefix showuses-,$(ALLINST)): showuses-$(PKGROOT)
-
-endif
-
-endif
-
-
-
-#### Find package location given installed file, or package name.
-
-ifneq (,$(ALLINST))
-$(addprefix find-,$(ALLINST)): find-$(PKGROOT)
-endif
-
-find-$(PKGROOT):
-	@echo $(strip-target)
-
-find-$(PACKAGE): find-$(PKGROOT)
-
-
-
-#### List packages that need this package in order to build successfully.
-
-# A package needs this package if it needs any of its files.
-needs-$(PACKAGE): $(addprefix needs-,$(ALLINST))
-
-# Define empty targets for needs-installed-files.  Ensures successful 
-# completion.
-ifneq (,$(ALLINST))
-$(addprefix needs-,$(ALLINST)):
-endif
-
-# Needing the file mean the package has a prerequisite.
-ifneq (,$(ALLUSES))
-$(addprefix needs-,$(ALLUSES)): prereq-$(PKGROOT)
-endif
-
-# Print all packages with prerequisites triggered by original package.
-# Possibly propagate prerequisites on to other packages.
-ifeq (,$(NODEPEND))
-prereq-$(PKGROOT): $(addprefix needs-,$(ALLINST))
-else
-prereq-$(PKGROOT):
-endif
-	@echo $(strip-target)
-
-
-
-#### List packages used to build this package (opposite of above).
-
-depends-$(CTPROJECT): depends-$(PKGROOT)
-
-depends-$(PKGROOT):
-
-ifneq (,$(ALLINST))
-$(addprefix depends-,$(ALLINST)): requires-$(PKGROOT)
-endif
-
-ifneq (,$(ALLUSES))
-
-depends-$(PKGROOT): $(addprefix depends-,$(ALLUSES))
-
-ifeq (,$(NODEPEND))
-requires-$(PKGROOT): $(addprefix depends-,$(ALLUSES))
-else
-requires-$(PKGROOT):
-endif
-	@echo $(strip-target)
-
-endif
-
-depends-$(PACKAGE): depends-$(PKGROOT)
-
-
-
-#### List packages that do not depend on other packages.
-
-nodepends-$(CTPROJECT): nodepends-$(PKGROOT)
-
-ifeq (,$(strip $(ALLUSES)))
-nodepends-$(PKGROOT):
-	@echo $(strip-target)	
-
-else
-nodepends-$(PKGROOT):
-
-endif
-
-
-
-#### List files included by a package.
-
-# To clean project, clean each package.
-includes-$(CTPROJECT): includes-$(PKGROOT)
-
-# Synonym to includes a particular package.
-includes-$(PACKAGE): includes-$(PKGROOT)
-
-ifneq (,$(ALLINST))
-$(addprefix includes-,$(ALLINST)): includes-$(PKGROOT)
-endif
-
-# Call ctshowdep on package
-ifeq (,$(NODEPEND))
-includes-$(PKGROOT) : $(addprefix includes-,$(ALLUSES))
-else
-includes-$(PKGROOT) :
-endif
-	@echo '***' Files included by $(strip-target) '...'
-	-ctshowdep $(CTINC) $(strip-target)

+ 0 - 61
dtool/src/build/Makefile.install.template

@@ -1,61 +0,0 @@
-#### Installation makefile
-# Note: This file is included by the project-wide Makefile so the current
-# directory is the project root.  Also, commented-out fields are optional.
-
-#### Package name and location (if not src/all/$(PACKAGE)):
-#CTPACKAGE
-PKGROOT =                   # Leave this blank if no change needed
-
-ifneq (,$(PACKAGE))
-
-#### Package dependencies (USESOTHER needs relative paths from project root):
-# USESLIBS = 
-# USESINCLUDE = 
-# USESOTHER = 
-
-#### Installed files:
-# LIBS = 
-# INCLUDE = 
-# BINS =
-# SCRIPTS =
-# SS = 
-# ST = 
-# STK = 
-# MODELS = 
-# ETC = 
-# DOC =
-# MAN =
-# TXT =
-# HTML =
-# PS = 
-# FONTS = 
-# ICONS = 
-# APPDEFAULTS = 
-# TCL = 
-# TELEUSE = 
-# SHADERS = 
-
-#### Other files to be installed (use relative pathname from project root):
-# OTHER = 
-
-#### Where the action happens.
-include $(DTOOL)/include/Makefile.install.rules
-
-#### Install actions for OTHER files (source must be in $(PKGROOT)):
-# [ installed file ] : $(PKGROOT)/[ source file ]  # Files must have same name
-#	$(INSTALL)                      # Copies from source to dest
-#
-# [ installed file ] : $(PKGROOT)/[ source file ]
-#	$(MKINSTALL)			# Also makes directory if needed
-
-#### Other install/uninstall actions:
-# install-$(PKGROOT): #Add dependencies here
-#	Add actions here
-#
-# uninstall-$(PKGROOT): #Add dependencies here
-#	Add actions here
-
-#### Sub-package Makefile.install inclusions:
-# include foo/Makefile.install
-
-endif

+ 0 - 25
dtool/src/build/Makefile.install.vars

@@ -1,25 +0,0 @@
-# Standard variables for installation
-
-ifeq (,$(MAKEFILE_INSTALL_VARS))
-MAKEFILE_INSTALL_VARS = TRUE
-
-# This makes the variables available to sub-Makes.
-ifeq (,$(MAKEFILE_PENV_VARS))
-include $(DTOOL)/include/Makefile.penv.vars
-endif
-
-ifeq (,$(MAKEFILE_PROJECT_VARS))
-include $(DTOOL)/include/Makefile.project.vars
-endif
-
-# Delete the standard suffixes
-.SUFFIXES:
-
-# The following macros accomplish single file installation.  The second
-# will also create any necessary subdirectories.
-INSTALL		= @echo $@; rm -rf $@; cp -r $< $@;
-MKINSTALL	= @if [ ! -d $(dir $@) ]; then mkdir $(dir $@); fi; \
-                  echo $@; rm -rf $@; cp -r $< $@;
-LNINSTALL	= @echo $@; rm -rf $@; ln -s ../../$< $@;
-
-endif

+ 0 - 103
dtool/src/build/Makefile.meta.rules

@@ -1,103 +0,0 @@
-# Meta makefile rules.
-
-# Delete the default suffixes
-.SUFFIXES:
-
-# Define macro to strip characters preceding '-' in the target variable ($*)
-strip-target = `echo $@ | sed 's/^[^-]*-//'`
-
-ifeq (,$(CTPROJROOT))
-CTPROJROOT := $(shell $(DTOOL)/bin/ctproj -root)
-endif
-export CTPROJROOT 
-
-# Make sure that CT_INCLUDE_PATH is set.
-ifeq (,$(CT_INCLUDE_PATH))
-export CT_INCLUDE_PATH = .
-endif
-
-# Make sure CT_LIBRARY_PATH is set.
-ifeq (,$(CT_LIBRARY_PATH))
-ifneq (,$(LD_LIBRARY_PATH))
-export CT_LIBRARY_PATH := $(LD_LIBRARY_PATH)
-else
-export CT_LIBRARY_PATH = .
-endif
-endif
-
-# export the OPTIMIZE variable
-ifneq (,$(OPTIMIZE))
-export OPTIMIZE
-endif
-
-ifeq (,$(INSTALL))
-INSTALL := $(SUBMAKES)
-endif
-
-all: $(SUBMAKES)
-
-install: $(INSTALL)
-
-ifeq (yes,$(HAVE_ATRIA))
-realinstall:
-	@cd `ctproj -r` ; clearmake -C gnu install-`ctproj -p`
-else
-realinstall:
-	@proj=`ctproj -p` ; cd `ctproj -r` ; $(MAKE) install-$$proj
-endif
-
-ifneq (,$(SUBMAKES))
-.PHONY: $(SUBMAKES)
-.PHONY: $(addprefix egg-,$(SUBMAKES))
-.PHONY: $(addprefix unopt-,$(SUBMAKES))
-.PHONY: $(addprefix pfb-,$(SUBMAKES))
-endif
-
-ifneq (,$(NUMBER_OF_PROCESSORS))
-# on NT, parallelize using NUMBER_OF_PROCESSORS env-var
-PARALLEL_MAKE = -j $(NUMBER_OF_PROCESSORS)
-endif
-
-$(SUBMAKES):
-	@echo '***' Executing $(MAKE) for sub-target $@...
-	@echo $(MAKE) $(PARALLEL_MAKE) -f $(MAKEDIR)/Makefile.$@
-	@$(MAKE) $(PARALLEL_MAKE) -f $(MAKEDIR)/Makefile.$@
-
-clean: $(addprefix clean-,$(SUBMAKES))
-
-$(addprefix clean-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) clean for sub-target $(strip-target)...
-	@$(MAKE) $(PARALLEL_MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) clean
-	@rm -f *~
-
-cleanall: $(addprefix cleanall-,$(SUBMAKES))
-
-$(addprefix cleanall-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) cleanall for sub-target $(strip-target)...
-	@$(MAKE) $(PARALLEL_MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) cleanall
-
-list:
-	@echo $(SUBMAKES)
-
-# These are used in src/all/model subdirectories.
-
-egg: $(addprefix egg-,$(SUBMAKES))
-$(addprefix egg-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) egg for sub-target $(strip-target)...
-	@$(MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) egg
-
-unopt: $(addprefix unopt-,$(SUBMAKES))
-$(addprefix unopt-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) unopt for sub-target $(strip-target)...
-	@$(MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) unopt
-
-pfb: $(addprefix pfb-,$(SUBMAKES))
-$(addprefix pfb-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) pfb for sub-target $(strip-target)...
-	@$(MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) pfb
-
-uninstall: $(addprefix uninstall-,$(SUBMAKES))
-$(addprefix uninstall-,$(SUBMAKES)):
-	@echo '***' Executing $(MAKE) uninstall for sub-target $(strip-target)...
-	@$(MAKE) -f $(MAKEDIR)/Makefile.$(strip-target) uninstall
-

+ 0 - 16
dtool/src/build/Makefile.meta.template

@@ -1,16 +0,0 @@
-#### Meta Makefile.
-
-#### Sub make targets (extension of sub Makefile, eg 'foo' for Makefile.foo):
-SUBMAKES = 
-
-#### List the minimal set of sub makes on the list above required to install.
-INSTALL = 
-
-#### Location of sub Makefiles.
-MAKEDIR = .
-
-#### The action is here.
-include $(DTOOL)/include/Makefile.meta.rules
-
-#### Sub-make build order dependencies:
-# foo: bar

+ 0 - 43
dtool/src/build/Makefile.o.include

@@ -1,43 +0,0 @@
-# Standard .o file conversion information.
-
-#### Pull in standard .o make variables
-include $(DTOOL)/include/Makefile.o.vars
-
-#### Lex files 
-# LFILES = 
-# LFLAGS = 
-# LEXTENSION = 
-# LSUBST =
-
-#### Yacc files 
-# YFILES = 
-# YFLAGS = 
-# YEXTENSION =
-# YSUBST =
-
-#### C files 
-# CFILES = 
-# CFLAGS =
-
-#### C++ files 
-# C++FILES = 
-# C++FLAGS =
-# USETEMPLATES = TRUE
-# PTREPOSITORY = # Specify only if you want a specific name
-
-#### Interrogate info
-# IGATESCAN  = 
-# IGATEFLAGS = 
-# IGATEFILE  = # Specify only if you want a specific name
-
-#### Additional search directories for C/C++ header files:
-# IPATH := $(IPATH) -I/my/directory -I/my/other/directory
-
-#### Location to put .o files:
-# ODIR = 
-
-#### Source file dependencies (unnecessary with clearmake)
-# foo.c: foo.h
-
-#### The .o action is here.
-include $(DTOOL)/include/Makefile.o.rules

+ 0 - 361
dtool/src/build/Makefile.o.rules

@@ -1,361 +0,0 @@
-# Makefile rules for making .o files from source files
-
-#############################################################################
-#
-# Yacc conversion rules.
-#
-# Files are converted to source form,  then added to CFILES or C++FILES to
-# be compiled into .o files.  A file foo.y becomes foo.$(YEXTENSION) (see
-# variable list below).  If YEXTENSION contains a 'C' then the file is added
-# to C++FILES, otherwise it goes to CFILES.  A substitution string may be
-# added to all 'yy' and 'YY' symbols in the yacc output so that multiple yacc
-# parsers can be linked into one program.  
-#
-# Variables:
-#   YFILES = list of .y files to be yacc'ed 
-#   YEXTENSION = extension to put on yacc'ed files (default = tab.c)
-#   YFLAGS = command line flags to yacc
-#
-ifneq (,$(YFILES))
-
-# Instead of adding the list of yacc-generated files to the CFILES or
-# C++FILES lists, we must generate a new list that's compiled via a
-# separate rule.  This allows us to use different options (for
-# instance, to eliminate optimization, which seems to trouble some
-# compilers, particularly gcc).
-
-# We must then process YCFILES and YC++FILES before we process CFILES
-# and C++FILES, so yacc will get called before any of the C files are
-# compiled, in case one of the C files wants to include y.tab.h.
-
-ifneq (,$(findstring cxx,$(YEXTENSION)))
-  YC++FILES := $(patsubst %.yxx, %.$(YEXTENSION), $(YFILES))
-else
-  YCFILES := $(patsubst %.yxx, %.$(YEXTENSION), $(YFILES))
-endif
-
-$(YCFILES) $(YC++FILES) : %.$(YEXTENSION) : %.yxx
-	$(YACC) $(YFLAGS) $<
-	mv y.tab.c $@
-	mv y.tab.h $(patsubst %.$(YEXTENSION), %.h, $@)
-
-clean::
-	rm -f $(YCFILES) $(YC++FILES)
-	
-endif
-
-
-
-#############################################################################
-#
-# Lex conversion rules.
-#
-# Files are converted to source form,  then added to CFILES or C++FILES to
-# be compiled into .o files.  A file foo.l becomes foo.$(LEXTENSION) (see
-# variable list below).  If LEXTENSION contains a 'C' then the file is added
-# to C++FILES, otherwise it goes to CFILES.  A substitution string may be
-# added to all 'yy' and 'YY' symbols in the lex output so that multiple lex
-# analyzers can be linked into one program.  
-#
-# Variables:
-#   LFILES = list of .l files to be lex'ed (from user Makefile)
-#   LEXTENSION = extension to put on lex'ed files (default = yy.c)
-#   LFLAGS = command line flags to lex
-#
-ifneq (,$(LFILES))
-
-LCFILES := $(patsubst %.lxx, %.$(LEXTENSION), $(LFILES))
-ifneq (,$(findstring cxx,$(LEXTENSION)))
-C++FILES := $(C++FILES) $(LCFILES)
-else
-CFILES := $(CFILES) $(LCFILES)
-endif
-
-# We must strip out the reference to unistd.h that flex so annoyingly
-# puts in its generated code.
-$(LCFILES) : %.$(LEXTENSION) : %.lxx
-	$(LEX) $(LFLAGS) $<
-	sed '/#include <unistd.h>/d' lex.yy.c > $@
-	rm lex.yy.c
-
-clean:: 
-	rm -f $(LCFILES)
-	
-endif
-
-#############################################################################
-#
-# .cpp -> .cxx conversion rules.
-#
-
-ifneq (,$(CPPFILES))
-
-CPPCFILES := $(patsubst %.cpp, %.cxx, $(CPPFILES))
-C++FILES := $(C++FILES) $(CPPCFILES)
-
-$(CPPCFILES) : %.cxx : %.cpp
-	cp $< $@
-	chmod 666 $@
-
-clean::
-	rm -f $(CPPCFILES)
-
-endif
-
-
-
-#############################################################################
-#
-# C/C++ Conversion rules.
-#
-
-# Clear ALLOFILES
-ALLOFILES = 
-SUPERALLOFILES = 
-
-ifneq (,$(YCFILES))
-  SUPERALLOFILES += $(YCFILES:%.c=__%.o_file_find_me)
-endif
-ifneq (,$(YC++FILES))
-  SUPERALLOFILES += $(YC++FILES:%.cxx=__%.o_file_find_me)
-endif
-ifneq (,$(CFILES))
-  SUPERALLOFILES += $(CFILES:%.c=__%.o_file_find_me)
-endif
-ifneq (,$(C++FILES))
-  SUPERALLOFILES += $(C++FILES:%.cxx=__%.o_file_find_me)
-endif
-ifeq (,$(NO_INTERROGATE))
-  ifneq (,$(IGATESCAN))
-    ifeq (,$(IGATEFILE))
-      SUPERALLOFILES += __$(TARGET).o_file_find_me
-    else
-      SUPERALLOFILES += $(IGATEFILE:%.cxx=__%.o_file_find_me)
-    endif
-  endif
-endif
-
-NTCFILETYPE =
-NTC++FILETYPE =
-
-ifneq (,$(YCFILES))
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  YCOFILES := $(YCFILES:%.c=$(ODIR)/%.obj)
-  NTCFILETYPE := -Tc
-  $(YCOFILES): $(ODIR)/%.obj : %.c
-else # NON-WIN32_VC
-  YCOFILES := $(YCFILES:%.c=$(ODIR)/%.o)
-  $(YCOFILES): $(ODIR)/%.o : %.c
-endif # WIN32_VC
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-	$(CC) -c $(IPATH) $(SYS_IPATH) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(CFLAGS) $(NTCFILETYPE) $< -o $@
-
-ALLOFILES := $(ALLOFILES) $(YCOFILES)
-endif
-
-ifneq (,$(YC++FILES))
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  YC++OFILES := $(YC++FILES:%.cxx=$(ODIR)/%.obj)
-  NTC++FILETYPE := -Tp
-  $(YC++OFILES): $(ODIR)/%.obj : %.cxx
-else # NON-WIN32_VC
-  YC++OFILES := $(YC++FILES:%.cxx=$(ODIR)/%.o)
-  $(YC++OFILES): $(ODIR)/%.o : %.cxx
-endif # WIN32_VC
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) $< -o $@
-
-ALLOFILES := $(ALLOFILES) $(YC++OFILES)
-endif
-
-ifneq (,$(CFILES))
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  COFILES := $(CFILES:%.c=$(ODIR)/%.obj)
-  NTCFILETYPE := -Tc
-  $(COFILES): $(ODIR)/%.obj : %.c
-else # NON-WIN32_VC
-  COFILES := $(CFILES:%.c=$(ODIR)/%.o)
-  $(COFILES): $(ODIR)/%.o : %.c
-endif # WIN32_VC
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-	$(CC) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(CFLAGS) $(NTCFILETYPE) $< -o $@
-
-ALLOFILES := $(ALLOFILES) $(COFILES)
-endif
-
-
-ifneq (,$(C++FILES))
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  C++OFILES := $(C++FILES:%.cxx=$(ODIR)/%.obj)
-  NTC++FILETYPE := -Tp
-  $(C++OFILES): $(ODIR)/%.obj : %.cxx
-else # NON-WIN32_VC
-  C++OFILES := $(C++FILES:%.cxx=$(ODIR)/%.o)
-  $(C++OFILES): $(ODIR)/%.o : %.cxx
-endif # WIN32_VC
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-ifeq (OSX,$(PENV))
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) -DFILE_SYM_NAME=__$(subst .,_,$@)_file_find_me -DALL_FILE_SYMS_NAME="\"$(subst .,_,$(SUPERALLOFILES))\"" $< -o $@
-else  # OSX
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) $< -o $@
-endif # OSX
-
-ALLOFILES := $(ALLOFILES) $(C++OFILES)
-endif
-
-ifneq (,$(NO_INTERROGATE))
-  IGATESCAN :=
-  IGATEMSCAN :=
-endif
-
-ifeq (,$(IGATELIBRARY))
-IGATELIBRARY := $(basename $(BASETARGET))
-endif
-
-ifneq (,$(IGATESCAN))
-
-ifeq (,$(IGATEFILE))
-IGATEFILE := $(BASETARGET).cxx
-endif
-
-ifeq (,$(IGATEMODULE))
-IGATEMODULE := $(DEFERRED_TARGET)
-endif
-ifeq (,$(IGATEMODULE))
-IGATEMODULE := $(patsubst lib%,%,$(IGATELIBRARY))
-endif
-
-ifeq (,$(IGATEDBFILE))
-IGATEDBFILE := $(basename $(BASETARGET)).in
-endif
-
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  IGATEOFILE := $(IGATEFILE:%.cxx=$(ODIR)/%.obj)
-  NTC++FILETYPE := -Tp
-else # NON-WIN32_VC
-  IGATEOFILE := $(IGATEFILE:%.cxx=$(ODIR)/%.o)
-endif
-
-IGATENFILES := $(wildcard $(IGATESCAN:%.h=%.N))
-$(IGATEFILE): $(IGATESCAN) $(IGATENFILES)
-	$(INTERROGATE) $(IGATESYSPATH) $(IPATH) $(IGATEFLAGS) $(COMPILE_DEFS) -module "$(IGATEMODULE)" -library "$(IGATELIBRARY)" -oc $@ -od $(IGATEDBFILE) -fnames -string -refcount -assert -promiscuous -python $(IGATESCAN)
-$(IGATEOFILE): $(IGATEFILE)
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-ifeq (OSX,$(PENV))
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) -DFILE_SYM_NAME=__$(subst .,_,$@)_file_find_me -DALL_FILE_SYMS_NAME="\"$(subst .,_,$(SUPERALLOFILES))\"" $< -o $@
-else  # OSX
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) $< -o $@
-endif # OSX
-ALLOFILES := $(ALLOFILES) $(IGATEOFILE)
-
-clean::
-	rm -f $(IGATEOFILE) $(IGATEFILE) $(IGATEDBFILE)
-
-endif
-
-ifneq (,$(IGATEMSCAN))
-IGATEMC := $(basename $(BASETARGET)).module.cxx
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  IGATEMO := $(IGATEMC:%.cxx=%.obj)
-else
-  IGATEMO := $(IGATEMC:%.cxx=%.o)
-endif
-$(IGATEMC): $(wildcard $(CTPROJROOT)/etc/*.in)
-	interrogate_module -oc $@ -module "$(IGATEMSCAN)" -library "$(IGATELIBRARY)" -python $(CTPROJROOT)/etc/*.in
-
-$(IGATEMO): $(IGATEMC)
-	@if [ ! -d $(ODIR) ]; then mkdir $(ODIR); fi
-ifeq (OSX,$(PENV))
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) -DFILE_SYM_NAME=__$(subst .,_,$@)_file_find_me -DALL_FILE_SYMS_NAME="\"$(subst .,_,$(SUPERALLOFILES))\"" $< -o $@
-else  # OSX
-	$(C++) -c $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $(NTC++FILETYPE) $< -o $@
-endif # OSX
-ALLOFILES := $(ALLOFILES) $(IGATEMO)
-
-clean::
-	rm -f $(IGATEMO) $(IGATEMC)
-endif # IGATEMSCAN
-
-ifeq (,$(USE_DEFERRED))
-  DEFERRED_FILES :=
-endif
-
-ifneq (,$(DEFERRED_FILES))
-include $(wildcard $(patsubst %,$(CTPROJROOT)/deferred/Deferred.%.*,$(DEFERRED_FILES)))
-endif
-
-
-ifneq (,$(ALLOFILES))
-clean::
-	rm -f $(ALLOFILES)
-endif
-
-
-$(TARGET): $(ALLOFILES)
-
-ifeq (Linux,$(PENV))
-DO_GNU_AUTO_DEP = yes
-endif
-
-ifneq (,$(DO_GNU_AUTO_DEP))
-
-#############################################################################
-#
-# GNU Auto-dependency rules.
-#
-
-%.d: %.c
-	$(SHELL) -ec '$(CC) -M $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(CFLAGS) $< \
-	  | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
-	  [ -s $@ ] || rm -f $@'
-
-%.d: %.cxx
-	$(SHELL) -ec '$(C++) -M $(IPATH) $(SYS_IPATH) $(OPTIMIZE_FLAGS) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $< \
-	  | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \
-	  [ -s $@ ] || rm -f $@'
-
-ifneq (,$(IGATEOFILE))
-include $(IGATEOFILE:.o=.d)
-
-$(IGATEOFILE:.o=.d) : $(IGATEOFILE:.o=.cxx)
-	$(SHELL) -ec '$(C++) -M $(IPATH) $(SYS_IPATH) $(COMPILE_FLAGS) $(COMPILE_DEFS) $(C++FLAGS) $< \
-	  | sed '\''s/\($*\)\.o[ :]*$</\1.o $@ $< : /g'\'' > $@; \
-	  [ -s $@ ] || rm -f $@'
-
-clean::
-	rm -f $(IGATEOFILE:.o=.d)
-endif
-
-ifneq (,$(YCFILES))
-include $(YCFILES:.c=.d)
-
-clean::
-	rm -f $(YCFILES:.c=.d)
-endif
-
-ifneq (,$(YC++FILES))
-include $(YC++FILES:.cxx=.d)
-
-clean::
-	rm -f $(YC++FILES:.cxx=.d)
-endif
-
-ifneq (,$(CFILES))
-include $(CFILES:.c=.d)
-
-clean::
-	rm -f $(CFILES:.c=.d)
-endif
-
-ifneq (,$(C++FILES))
-include $(C++FILES:.cxx=.d)
-
-clean::
-	rm -f $(C++FILES:.cxx=.d)
-endif
-
-endif  # (,$(DO_GNU_AUTO_DEP))

+ 0 - 11
dtool/src/build/Makefile.o.template

@@ -1,11 +0,0 @@
-# Makefile for a collection of .o files
-
-#### State the target.  No need to change this.
-#TARGET = ofiles
-#CTTARGET
-
-#CTINCLUDE $DTOOL/lib/Makefile.o.include
-
-#### Add a cleanall target
-cleanall: clean
-	rm -rf $(PTREPOSITORY)

+ 0 - 362
dtool/src/build/Makefile.o.vars

@@ -1,362 +0,0 @@
-# Standard variable for creation of .o files and things that use .o
-# files (lib, bin).
-
-ifeq (,$(MAKEFILE_O_VARS))
-MAKEFILE_O_VARS = TRUE
-
-ifeq (,$(MAKEFILE_PENV_VARS))
-  include $(DTOOL)/include/Makefile.penv.vars
-endif
-
-# First, examine the OPTIMIZE variable.  Make sure it is set to one
-# of the allowed values.
-ifeq (1,$(OPTIMIZE))
-  # Optimize 1 : no compiler optimizations, full debugging symbols.
-  DEBUGSYMBOLS = yes
-else
-  ifeq (2,$(OPTIMIZE))
-    # Optimize 2 : full compiler optimizations, full debugging symbols.
-    DEBUGSYMBOLS = yes
-  else
-    ifeq (3,$(OPTIMIZE))
-      # Optimize 3 : full compiler optimizations, no debugging symbols.
-    else
-      ifeq (4,$(OPTIMIZE))
-        # Optimize 4 : full compiler optimizations, no debugging symbols,
-        #              and assertion tests eliminated via NDEBUG.
-      else
-        ifeq (,$(OPTIMIZE))
-          # OPTIMIZE unspecified: assume Optimize 1.
-          OPTIMIZE = 1
-          DEBUGSYMBOLS = yes
-        else
-          # OPTIMIZE is none of the above: assume Optimize 4.
-          OPTIMIZE = 4
-        endif # old opt
-      endif # opt4
-    endif # opt3
-  endif # opt2
-endif # opt1
-
-BASETARGET := $(TARGET)
-DEBUGNAME :=
-
-ifeq (WIN32,$(PENV))
-  # If we are compiling with symbols, we rename the target to target_d.
-  # This helps us keep debug vs. nondebug libraries separate, and also
-  # helps us play along with Python's importing conventions.  But it's
-  # a big mess here in the makefiles.
-
-  ifeq (yes,$(DEBUGSYMBOLS))
-    DEBUGNAME := _d
-  endif
-
-  ifneq (,$(findstring .so,$(suffix $(TARGET))))
-    TARGET := $(TARGET:%.so=%$(DEBUGNAME).dll)
-  else
-    ifneq (,$(findstring .a,$(suffix $(TARGET))))
-      TARGET := $(TARGET:%.a=%$(DEBUGNAME).lib)
-    else
-      TARGET := $(TARGET:%=%.exe)
-    endif # .a
-  endif # .so
-endif # WIN32
-ifeq (OSX,$(PENV))
-  ifneq (,$(findstring .so,$(suffix $(TARGET))))
-    TARGET := $(TARGET:%.so=%.dylib)
-  endif # .so
-endif # OSX
-
-IGATESYSPATH = -S$(DTOOL)/include/parser-inc -DCPPPARSER -D__cplusplus $(SYSTEM_IGATE_FLAGS)
-
-# Delete the default suffixes
-.SUFFIXES:
-
-# Make sure that CT_INCLUDE_PATH is set.
-ifeq (,$(CT_INCLUDE_PATH))
-  export CT_INCLUDE_PATH = .
-endif
-
-IPATH_DIRS := $(strip $(shell ctpathadjust $(CT_INCLUDE_PATH))) $(patsubst -I%,%,$(IPATH))
-
-# Legacy.
-ifneq (,$(PYTHON_INCLUDE))
-  IPATH_DIRS += $(PYTHON_INCLUDE)
-endif
-ifneq (,$(NSPR_INCLUDE))
-  IPATH_DIRS += $(NSPR_INCLUDE)
-endif
-
-# Add one more for dtool_config.h
-IPATH_DIRS += $(DTOOL)
-
-# Convert CT_INCLUDE_PATH to cc/CC compatible flag string
-ifeq (WIN32_VC,$(PENV_COMPILER))
-  IPATH := $(foreach path,$(IPATH_DIRS),-I"$(shell cygpath -w $(path))")
-  SYS_IPATH := -I"$(shell cygpath -w /msvc98/Include)"
-else
-  IPATH := $(patsubst %,-I"%",$(IPATH_DIRS))
-endif
-
-##### Playstation2 can't handle .so's.  The rename to .a's is handled here
-##### and acted upon in Makefile.so.rules.  (CSN)
-
-ifeq (PS2, $(PENV))
-  IPATH += -I/for/program/sce/ee/include
-
-  # Uncommenting this line will make the ps2 look for files on the dvd
-  # instead of on the host dev machine.
-
-  PS2_FILE_PREFIX := #### PS2_DVD_FILES
-
-  ifneq (,$(findstring .so,$(suffix $(TARGET))))
-    TARGET := $(TARGET:%.so=%.a)
-  endif
-endif
-
-##### End ps2
-
-COMPILE_FLAGS =
-COMPILE_DEFS =
-OPTIMIZE_FLAGS =
-
-ifeq (SGI,$(PENV))
-  # Standard applications and flags.
-  CC            = cc $(SGI_BINFORMAT_CC)
-  C++FLAGS      = -fullwarn $(WOFF_LIST)
-
-  # MIPSPro compiler cannot simultaneously optimize and encode
-  # debugging symbols.
-
-  ifeq (1,$(OPTIMIZE))
-    COMPILE_FLAGS = -g
-  else
-    ifeq (2,$(OPTIMIZE))
-      COMPILE_FLAGS =
-      OPTIMIZE_FLAGS = -O2 -OPT:Olimit=2500
-    else
-      ifeq (3,$(OPTIMIZE))
-        COMPILE_DEFS = -DOPTIMIZE
-        OPTIMIZE_FLAGS = -O2 -OPT:Olimit=2500
-      else
-        ifeq (4,$(OPTIMIZE))
-          COMPILE_DEFS = -DOPTIMIZE -DNDEBUG
-          OPTIMIZE_FLAGS = -O2 -OPT:Olimit=2500
-        endif # opt4
-      endif # opt3
-    endif # opt2
-  endif # opt1
-  
-  C++           = CC $(SGI_BINFORMAT_CC)
-
-  ifeq ($(SGI_BINFORMAT),o32)
-    
-    # These are the warning numbers according to the o32 compiler
-    # 3317 - controlling expression is constant, e.g. if (0) { ... }
-    # 3262 - function 'blah' was declared but never used
-    WOFF_LIST   = -woff 3317,3262
-    
-  else  # ($(SGI_BINFORMAT),n32)
-    
-    # These are the warning numbers according to the n32 compiler
-    # 1174 - function 'blah' was declared but never used
-    # 1201 - trailing comma is nonstandard.
-    # 1209 - controlling expression is constant, e.g. if (0) { ... }
-    # 1234 - access control not specified, 'public' by default
-    # 1355 - extra ";" ignored
-    # 1375 - destructor for base class is not virtual.
-    #    this one actually is bad.  But we got alot of them from the classes
-    #    that we've derived from STL collections.  Beware of this.
-    # 3322 - omission of explicit type is nonstandard ("int" assumed)
-    WOFF_LIST   = -woff 1174,1201,1209,1234,1355,1375,3322
-
-    # Linker warnings
-    # 85 - definition of SOMESYMBOL in SOMELIB preempts that of definition in
-    #      SOMEOTHERLIB.
-    WOFF_LIST   += -Wl,-LD_MSG:off=85
-    
-    # We'll also woff this one if we are compiling DELIVERY_PLAYER, which
-    # leaves out large chunks of code.
-    # 3201 - parameter was never referenced.
-    ifneq (,$(DELIVERY_PLAYER))
-      WOFF_LIST += -woff 3201
-    endif
-  endif   # $(SGI_BINFORMAT)
-
-  CFLAGS += -DPENV_SGI
-  C++FLAGS += -DPENV_SGI
-endif     # (SGI,$(PENV))
-
-ifeq (OSX,$(PENV))
-  # Standard applications and flags
-  CC = cc
-
-  ifeq (1,$(OPTIMIZE))
-    COMPILE_FLAGS = -g
-  else
-    ifeq (2,$(OPTIMIZE))
-      COMPILE_FLAGS = -g
-      OPTIMIZE_FLAGS = -O2
-    else
-      ifeq (3,$(OPTIMIZE))
-        COMPILE_FLAGS = -g
-        COMPILE_DEFS = -DOPTIMIZE
-        OPTIMIZE_FLAGS = -O2
-      else
-        ifeq (4,$(OPTIMIZE))
-          COMPILE_DEFS = -DOPTIMIZE -DNDEBUG
-          OPTIMIZE_FLAGS = -O2
-        endif # (4,$(OPTIMIZE))
-      endif # (3,$(OPTIMIZE))
-    endif # (2,$(OTPIMIZE))
-  endif  # (1,$(OPTIMIZE))
-
-  C++ = cc
-  TMPTARGETTHING := __$(BASETARGET:%.so=%_so)_find_me__
-  CFLAGS += -DPENV_OSX -DLIB_SYMBOL_NAME=$(TMPTARGETTHING)
-  C++FLAGS += -DPENV_OSX -DLIB_SYMBOL_NAME=$(TMPTARGETTHING) -ftemplate-depth-30
-endif     # (OSX,$(PENV))
-
-ifeq (Linux,$(PENV))
-  # Standard applications and flags.
-  CC            = gcc
-
-  ifeq (1,$(OPTIMIZE))
-    COMPILE_FLAGS = -g
-  else
-    ifeq (2,$(OPTIMIZE))
-      COMPILE_FLAGS = -g
-      OPTIMIZE_FLAGS = -O2
-    else
-      ifeq (3,$(OPTIMIZE))
-        COMPILE_FLAGS = -g
-        COMPILE_DEFS = -DOPTIMIZE
-        OPTIMIZE_FLAGS = -O2
-      else
-        ifeq (4,$(OPTIMIZE))
-          COMPILE_DEFS = -DOPTIMIZE -DNDEBUG
-          OPTIMIZE_FLAGS = -O2
-        endif # opt4
-      endif # opt3
-    endif # opt2
-  endif # opt1
-  
-  C++           = g++
-
-  CFLAGS += -DPENV_LINUX
-  C++FLAGS += -DPENV_LINUX -ftemplate-depth-30
-endif     # $(Linux,$(PENV))
-
-ifeq (PS2,$(PENV))
-  # Playstation2 apps and flags.
-
-  CC = ee-gcc
-  C++ = ee-g++
-
-  ifeq (1,$(OPTIMIZE))
-    COMPILE_FLAGS = -g
-  else
-    ifeq (2,$(OPTIMIZE))
-      COMPILE_FLAGS = -g
-      OPTIMIZE_FLAGS = -O2
-    else
-      ifeq (3,$(OPTIMIZE))
-        COMPILE_FLAGS = -g
-        COMPILE_DEFS = -DOPTIMIZE
-        OPTIMIZE_FLAGS = -O2
-      else
-        ifeq (4,$(OPTIMIZE))
-          COMPILE_DEFS = -DOPTIMIZE -DNDEBUG
-          OPTIMIZE_FLAGS = -O2
-        endif # opt4
-      endif # opt3
-    endif # opt2
-  endif # opt1
-
-  CFLAGS += -DPENV_PS2
-  C++FLAGS += -DPENV_PS2 -ftemplate-depth-30
-
-endif	# $(PS2,$(PENV))
-
-ifeq (WIN32,$(PENV))
-  # Standard applications and flags.
-  # Note:  You must also set LDFLAGS and LINKFLAGS in Makefile.bin.vars
-  CC 	  = cl
-  C++     = cl
-
-  # tell cl.exe to generate .sbr files, which bscmake can compile into Msdev source browser info
-  ifeq (1,$(CL_MAKE_BROWSE_INFO))
-      BROWSEINFO_FLAG := -Fr 
-  endif
-
-  ifeq (1,$(OPTIMIZE))
-    # -Fd is change to write out per-obj .pdb, to allow parallelization
-    COMPILE_FLAGS = -MDd -GZ -Zi $(BROWSEINFO_FLAG) -Fd$(basename $@) 
-    COMPILE_DEFS = -D_DEBUG
-    LDTYPE := -DLL -DEBUG
-  else
-    ifeq (2,$(OPTIMIZE))
-      COMPILE_FLAGS = -MDd -Zi -Fd$(basename $@)
-      COMPILE_DEFS = -D_DEBUG
-      OPTIMIZE_FLAGS = -O2 -Ob1 -Ogity -G6
-      LDTYPE := -DLL -DEBUG
-    else
-      ifeq (3,$(OPTIMIZE))
-        COMPILE_FLAGS = -MD
-        COMPILE_DEFS = -DOPTIMIZE
-        OPTIMIZE_FLAGS = -O2 -Ob1 -Ogity -G6 -Gi-
-	LDTYPE := -DLL
-      else
-        ifeq (4,$(OPTIMIZE))
-          COMPILE_FLAGS = -MD
-          COMPILE_DEFS = -DOPTIMIZE -DNDEBUG
-          OPTIMIZE_FLAGS = -O2 -Ob1 -Ogity -G6 -Gi-
-          LDTYPE := -DLL
-        endif # opt4
-      endif # opt3
-    endif # opt2
-  endif # opt1
-
-   # removed -FD (generate file-depedency vc60.idb files) to allow parallelization
-   CFLAGS += -nologo -W3 -EHsc -Zm250 -D_WINDOWS -DWIN32 -D_WINDLL -DSTRICT -DPENV_WIN32 -DWIN32_VC
-   C++FLAGS += -nologo -W3 -EHsc -Zm250  -D_WINDOWS -DWIN32 -D_WINDLL -DSTRICT -DPENV_WIN32 -DWIN32_VC
-
-endif     # $(WIN32,$(PENV))
-
-ifeq (SunOS,$(PENV))
-  # Standard applications and flags.
-  CC            = egcc
-
-  ifeq (1,$(OPTIMIZE))
-    OPTIMIZE_FLAGS = -g
-  else
-    ifeq (2,$(OPTIMIZE))
-      OPTIMIZE_FLAGS = -O2 -g
-    else
-      ifeq (3,$(OPTIMIZE))
-        OPTIMIZE_FLAGS = -O2 -g -DOPTIMIZE -DNDEBUG
-      else
-        ifeq (4,$(OPTIMIZE))
-          OPTIMIZE_FLAGS = -O2 -DOPTIMIZE -DNDEBUG
-        endif # opt4
-      endif # opt3
-    endif # opt2
-  endif # opt1
-  
-  C++           = eg++-new -DUsePthreads
-
-  CFLAGS += -DPENV_SunOS
-  C++FLAGS += -DPENV_SunOS
-endif     # $(SunOS,$(PENV))
-
-INTERROGATE	= interrogate
-IGATEFLAGS	=
-
-
-ODIR            = .
-
-# Set the default target
-install all: $(TARGET)
-
-endif   # MAKEFILE_O_VARS
-

+ 0 - 69
dtool/src/build/Makefile.penv.vars

@@ -1,69 +0,0 @@
-# Variable(s) to declare the project compilation and execution environment.
-
-ifeq (,$(MAKEFILE_PENV_VARS))
-MAKEFILE_PENV_VARS = TRUE
-
-ifeq (,$(PENV))
-PENV = SGI
-endif
-
-ifeq (SGI,$(PENV))
-  # Defines the binary format (o32 vs. n32) for compiling.
-  
-  # This is the default binformat if it is not overridden in a sub-Makefile.
-  DEFAULT_BINFORMAT = n32
-   
-  ifeq ($(SGI_BINFORMAT),)
-    SGI_BINFORMAT = $(DEFAULT_BINFORMAT)
-  endif
-  
-  ifeq ($(SGI_BINFORMAT),o32)
-    SGI_BINFORMAT_CC = -mips2 -o32
-    SGI_BINFORMAT_SALIVATE = -o32
-    SGI_BINFORMAT_LIB = lib
-  else
-    SGI_BINFORMAT_CC = -mips3 -n32
-    SGI_BINFORMAT_SALIVATE = -n32
-    SGI_BINFORMAT_LIB = lib32
-  endif
-
-  # Legacy.
-  PYTHON_INCLUDE = /usr/local/include/python1.6
-  NSPR_PATH = /for/program/mozilla/dist/IRIX6.5_n32_PTH_DBG.OBJ
-  NSPR_INCLUDE = $(NSPR_PATH)/include
-  NSPR_LIB = $(NSPR_PATH)/lib
-
-  SYSTEM_IGATE_FLAGS = -D__mips__ -D__MIPSEB__ -DPENV_SGI
-endif
-
-ifeq (OSX,$(PENV))
-  SYSTEM_IGATE_FLAGS =
-endif
-
-ifeq (Linux,$(PENV))
-
-  SYSTEM_IGATE_FLAGS = -D__i386__ -DPENV_LINUX
-
-  # Legacy.
-  PYTHON_INCLUDE = /usr/local/include/python1.6
-  NSPR_PATH = /usr/local/mozilla/dist/Linux2.2.10_x86_PTH_DBG.OBJ
-  NSPR_INCLUDE = $(NSPR_PATH)/include
-  NSPR_LIB = $(NSPR_PATH)/lib
-
-endif
-
-ifeq (WIN32,$(PENV))
-
-  # Guarantee that PENV_COMPILER gets set to default to VC
-  PENV_COMPILER = WIN32_VC
-
-  SYSTEM_IGATE_FLAGS = -longlong __int64 -D_X86_ -DPENV_WIN32 -DWIN32_VC -D"_declspec(param)="
-
-  # Windows is always a deferred build.
-  USE_DEFERRED := yes
-
-endif # WIN32 
-
-
-endif   # MAKEFILE_PENV_VARS
-

+ 0 - 18
dtool/src/build/Makefile.project.template

@@ -1,18 +0,0 @@
-# Makefile for project.
-# Should live at project root directory, and be called Makefile.
-
-# Do not delete the line below.  It tells ctaddpkg to automatically
-# append install Makefiles when packages are created.
-# CT-STANDARD-PROJECT-MAKEFILE
-
-# Specify project name and project root directory.
-#CTPROJECT
-#CTPROJROOT
-
-include $(DTOOL)/include/Makefile.project.vars
-
-# Add packages to end of file as follows:
-# 	include src/all/PACKAGE/Makefile.install
-# ... or whatever path to install Makefile
-
-#CTINSTPKG

+ 0 - 66
dtool/src/build/Makefile.project.vars

@@ -1,66 +0,0 @@
-# Standard variables and targets for projects.
-
-ifeq (,$(MAKEFILE_PROJECT_VARS))
-MAKEFILE_PROJECT_VARS = TRUE
-
-# Guarantee these are all empty (we don't want a conflict with any env vars)
-LIBS :=
-INCLUDE :=
-BINS :=
-SCRIPTS :=
-SS :=
-STK :=
-MODELS :=
-ETC :=
-DOC :=
-MAN :=
-FONTS :=
-ICONS :=
-APPDEFAULTS :=
-TCL :=
-TELEUSE :=
-SHADERS :=
-
-ifeq (,$(MAKEFILE_PENV_VARS))
-include $(DTOOL)/include/Makefile.penv.vars
-endif
-
-ifeq (,$(CTPROJECT))
-CTPROJECT = project
-endif
-
-ifeq (,$(CTPROJROOT))
-CTPROJROOT := $(shell $(DTOOL)/bin/ctproj -r)
-endif
-
-ifneq (,$(OPTIMIZE))
-export OPTIMIZE
-endif
-
-install: install-$(CTPROJECT)
-
-uninstall: uninstall-$(CTPROJECT)
-
-clean: clean-$(CTPROJECT)
-
-cleanall: cleanall-$(CTPROJECT)
-
-touch: touch-$(CTPROJECT)
-
-copy: copy-$(CTPROJECT)
-
-isinstalled: isinstalled-$(CTPROJECT)
-
-notinstalled: notinstalled-$(CTPROJECT)
-
-checkinstall: checkinstall-$(CTPROJECT)
-
-toinstall: toinstall-$(CTPROJECT)
-
-depends: depends-$(CTPROJECT)
-
-nodepends: nodepends-$(CTPROJECT)
-
-showuses: showuses-$(CTPROJECT)
-
-endif  # MAKEFILE_PROJECT_VARS

+ 0 - 158
dtool/src/build/Makefile.so.rules

@@ -1,158 +0,0 @@
-# Rules to construct .so's from component files.
-
-ifneq (,$(SOLOCATIONS))
-.PRECIOUS: $(SOLOCATIONS)
-  ifeq (SGI,$(PENV))
-    ifeq (ld,$(LD))
-      SLOC := -update_registry $(SOLOCATIONS)
-    else
-      SLOC := -Wl,-update_registry,$(SOLOCATIONS)
-    endif
-  endif  # (SGI,$(PENV))
-endif  # $(SOLOCATIONS)
-
-
-ifeq (SGI,$(PENV))
-  ifeq (ld,$(LD))
-    NONE = -none
-  else
-    NONE = -Wl,-none
-  endif
-
-  DEFINE_SONAME = -soname $@
-endif  # (SGI,$(PENV))
-
-ifeq (SunOS,$(PENV))
-  SHARED_COMMAND = -G
-else
-  ifeq (OSX,$(PENV))
-    SHARED_COMMAND = -dynamiclib
-  else
-    SHARED_COMMAND = -shared
-  endif
-endif  # (SunOS,$(PENV))
-
-ifeq (OSX,$(PENV))
-ALL = 
-else
-ALL = -all
-endif  # (OSX,$(PENV))
-BASEFILE =
-
-ALLOFILES := $(ALLOFILES) $(OFILES)
-
-ifeq (,$(USE_DEFERRED))
-  LIBS := $(WHEN_NO_DEFER_LIBS) $(LIBS)
-else
-  LIBS := $(WHEN_DEFER_LIBS) $(LIBS)
-endif
-
-ifeq (,$(USE_DEFERRED))
-  SHOULD_DEFER_TARGET :=
-else
-  SHOULD_DEFER_TARGET := $(DEFERRED_TARGET)
-endif
-
-ifneq (,$(SHOULD_DEFER_TARGET))
-
-  # If the makefile requests a "deferred target", it means that we'll
-  # just write out a mini-makefile that defines the .o files that go
-  # into the target, rather than actually building the target now.
-  # Another Makefile later will presumably do the actual building.
-
-  DEFERRED_MAKEFILE := Deferred.$(DEFERRED_TARGET).$(BASETARGET)
-  THISDIR := $(notdir $(shell pwd))
-
-$(TARGET) : $(DEFERRED_MAKEFILE)
-$(DEFERRED_MAKEFILE): $(wildcard Makefile.*)
-	rm -f $@
-	echo ALLOFILES += $(patsubst ./%,../../src/$(THISDIR)/%,$(ALLOFILES)) > $@
-
-else # DEFERRED_TARGET
-
-  ifneq (,$(strip $(ALLOFILES)))
-
-  # This is less than ideal.  This means that the .so file doesn't get
-  # added to the configuration record, and hence gets none of the
-  # clearmake magic like derived-object status and winking in.
-  # However, it also means that clearmake doesn't get tricked by the
-  # so_locations file, so it seems to be a better choice than the
-  # alternative for the moment.
-  .NO_CONFIG_REC: $(TARGET)
-
-  TARGETLIB =
-  BASELIB =
-  DEFLIB =
-  EXPLIB =
-  PDBLIB =
-  LIBLIB =
-  VCFILES =
-
-  # Eliminate -lm and -ldl on NT because they don't exist
-  WINLIBS := $(filter-out -lm -ldl,$(SYSLIBS))
-  # On NT -l<library> needs to map to lib<library>.lib
-  WINLIBS := $(LIBS:-l%=lib%$(DEBUGNAME).lib) $(WINLIBS:-l%=lib%.lib)
-  # We also need to handle any explicitly listed .a libraries 
-  WINLIBS := $(WINLIBS:%.a=%.lib)
-  ifeq (WIN32_VC,$(PENV_COMPILER))
-    PDBLIB := $(TARGET:%.dll=%.pdb)
-    EXPLIB := $(TARGET:%.dll=%.exp)
-    LIBLIB := $(TARGET:%.dll=%.lib)
-    VCFILES := vc60.idb vc60.pdb
-  endif # WIN32_VC
-  
-  $(TARGET): $(OFILES)  # *not* ALLOFILES
-
-  #### The PlayStation2 doesn't do .so files AT ALL.
-  #### Solution: Every time panda/tool wants a .so, we make a .a
-
-  ifeq (PS2, $(PENV))
-	ee-ar -r a.out.$@ $(ALLOFILES)
-  else
-  ifeq (WIN32,$(PENV))
-    ifeq (WIN32_VC,$(PENV_COMPILER))
-	$(LD) $(LDFLAGS) $(LDTYPE) \
-		$(LPATH) $(LINKFLAGS) $(ALLOFILES) $(WINLIBS) -OUT:$@
-    endif # PENV_COMPILER 
-  else # NON-WIN32 
-    ifeq (OSX,$(PENV))
-	$(LD) $(SHARED_COMMAND) $(PTR) $(PTFLAGS) $(SLOC) $(LDFLAGS) \
-              $(LPATH) $(ALL) $(ALLOFILES) \
-              $(NONE) $(LIBS) $(SYSLIBS) -o $@ $(DEFINE_SONAME) \
-              $(BASEFILE) $(BASELIB) -lstdc++
-    else # non-win32 and non-OSX
-	$(LD) $(SHARED_COMMAND) $(PTR) $(PTFLAGS) $(SLOC) $(LDFLAGS) \
-		$(LPATH) $(ALL) $(ALLOFILES) \
-		$(NONE) $(LIBS) $(SYSLIBS) -o a.out.$@ $(DEFINE_SONAME) \
-		$(BASEFILE) $(BASELIB)
-    endif # non-win32 and non-OSX
-  endif # WIN32 
-  endif # PS2
-  
-  ifneq (WIN32,$(PENV))
-    ifneq (OSX,$(PENV))
-	mv a.out.$@ $@
-    endif # non-win32 and non-OSX
-    ifneq (SGI,$(PENV))
-      ifeq (4,$(OPTIMIZE))
-	strip $@
-      endif # (4,$(OPTIMIZE))
-    endif # (SGI,$(PENV))
-  endif
-  
-  endif # (,$(ALLOFILES))
-
-endif   # DEFERRED_TARGET
-  
-clean::
-	@rm -f $(TARGET) $(TARGETLIB) $(BASELIB) $(DEFLIB) $(EXPLIB) \
-		$(WINLIBS) $(PDBLIB) $(LIBLIB) $(VCFILES)
-
-cleanall: clean
-	rm -fr ii_files
-	rm -f $(TARGET) $(TARGETLIB) $(BASELIB) $(DEFLIB) $(EXPLIB) \
-		$(WINLIBS) $(PDBLIB) $(LIBLIB) $(VCFILES)
-
-list:
-	@echo $(TARGET) $(TARGETLIB) $(BASELIB) $(DEFLIB) $(EXPLIB) \
-		$(WINLIBS) $(PDBLIB) $(LIBLIB)

+ 0 - 22
dtool/src/build/Makefile.so.template

@@ -1,22 +0,0 @@
-#### Makefile for DSO's.  Any fields commented out are optional.
-
-#### Target's name:
-#CTTARGET
-
-#CTINCLUDE $DTOOL/lib/Makefile.o.include
-
-#### Pull in standard binary make variables.
-include $(DTOOL)/include/Makefile.bin.vars
-
-#### Other files and lib.  Include $(ODIR) in any .o names.
-# OFILES = 
-# LIBS = 
-
-#### Additional search directories for lib:
-# LPATH := $(LPATH) -L/my/directory -L/my/other/directory
-
-#### Other linker flags. 
-# LDFLAGS = 
-
-#### The .so action is here.
-include $(DTOOL)/include/Makefile.so.rules

+ 0 - 55
dtool/src/build/Makefile.ss.rules

@@ -1,55 +0,0 @@
-# Rules to construct .ss's from component files.
-
-##############################################################################
-#
-# .h -> .ss conversion rules
-#
-
-# Clear ALLSSFILES
-ALLSSFILES =
-
-ifneq (,$(HFILES))
-HSSFILES := $(HFILES:%.h=%.ss)
-$(HSSFILES) : %.ss : %.h
-	$(SALIVATE) $(SALIVATE-FLAGS) $< > $@
-ALLSSFILES := $(ALLSSFILES) $(HSSFILES)
-endif
-
-ifneq (,$(HHFILES))
-HHSSFILES := $(HHFILES:%.hh=%.ss)
-$(HHSSFILES) : %.ss : %.hh
-	@ cat $< > $(sstotmp)
-	@ for i in ${HHDIRS} ; do if test -r $$i/$(sstoh) ; then \
-          cat $$i/$(sstoh) >> $(sstotmp) ; fi ; done
-	$(SALIVATE) $(SALIVATE-FLAGS) $(sstotmp) > $@
-	@ rm -f $(sstotmp)
-ALLSSFILES := $(ALLSSFILES) $(HHSSFILES)
-endif
-
-TOTALSSFILES := $(ALLSSFILES) $(OTHERSSFILES)
-
-LIBTARGET := $(addprefix lib,$(addsuffix .so,$(basename $(TARGET))))
-
-ifneq (,$(TOTALSSFILES))
-$(TARGET): $(TOTALSSFILES)
-	@ echo -n "**** Creating Meta-ss file "$(TARGET)" ... "
-	@ echo '(load-shared-object "'$(LIBTARGET)'")' > $@
-ifeq (,$(STRAIGHTINCLUDE))
-	@ echo '(define dl-handle (dlopen "'$(LIBTARGET)'" 2))' >> $@
-	@ for i in ${TOTALSSFILES} ; do echo '  ('load-once '"'$$i'")' >> $@ ; done
-else
-	@ for i in ${TOTALSSFILES} ; do echo '  ('load-once '"'$$i'")' >> $@ ; done
-endif
-	@ echo "done"
-endif
-
-ifneq (,$(ALLSSFILES))
-clean::
-	rm -f $(TARGET) $(ALLSSFILES)
-endif
-
-cleanall: clean
-	rm -f $(TARGET)
-
-list:
-	@ echo $(TARGET)

+ 0 - 21
dtool/src/build/Makefile.ss.template

@@ -1,21 +0,0 @@
-#### Makefile for ss interfaces.  Any fields commented out are optional.
-
-#### Target's name:
-#CTTARGET
-
-#### Pull in standard .ss make variables
-include $(DTOOL)/include/Makefile.ss.vars
-
-#### Source files
-# HFILES  = 
-# HHFILES = 
-# HHDIRS  = 
-
-#### Additional ss files to be inlcuded.
-# OTHERSSFILES = 
-
-#### Flags to control meta-ss creation.
-# STRAIGHTINCLUDE = TRUE
-
-#### The .ss action is here.
-include $(DTOOL)/include/Makefile.ss.rules

+ 0 - 28
dtool/src/build/Makefile.ss.vars

@@ -1,28 +0,0 @@
-# Standard variable for creation of .ss files
-
-ifeq (,$(MAKEFILE_SS_VARS))
-MAKEFILE_SS_VARS = TRUE
-
-ifeq (,$(MAKEFILE_PENV_VARS))
-include $(DTOOL)/include/Makefile.penv.vars
-endif
-
-# Delete the default suffixes
-.SUFFIXES:
-
-# Standard applications and flags.
-SALIVATE       = salivate $(SGI_BINFORMAT_SALIVATE)
-SALIVATE-FLAGS =
-
-ifneq (,$(DELIVERY_PLAYER))
-SALIVATE-FLAGS += -DDELIVERY_PLAYER
-endif
-
-# Some conversion macros
-sstotmp = `echo \`basename $@ ss\`tmp`
-sstoh   = `echo \`basename $@ ss\`h`
-
-# Set the default target
-install all : $(TARGET)
-
-endif  # MAKEFILE_SS_VARS

+ 0 - 20
dtool/src/build/Makefile.uxb.rules

@@ -1,20 +0,0 @@
-# UXB (teleuse) Makefile rules
-
-ifneq (,$(OPTIMIZE))
-UFLAGS := $(UFLAGS) -DOPTIMIZE
-endif
-
-all:
-	uxb $(UFLAGS)
-
-clean:
-	uxb $(UFLAGS) clean
-
-cleanall:
-	uxb $(UFLAGS) delete
-	rm -rf ii_files
-
-list:
-	@echo -n	
-
-install: all

+ 0 - 7
dtool/src/build/Makefile.uxb.template

@@ -1,7 +0,0 @@
-# Makefile for uxb (teleuse)
-
-#### flags to pass to uxb
-UFLAGS = 
-
-#### The uxb action is here.
-include $(DTOOL)/include/Makefile.uxb.rules

+ 0 - 12
dtool/src/build/Sources.pp

@@ -1,16 +1,4 @@
-#define INSTALL_LIBS \
-    Makefile.a.template Makefile.bin.template Makefile.foreign.template \
-    Makefile.install.template Makefile.meta.template Makefile.o.include \
-    Makefile.o.template Makefile.project.template Makefile.so.template \
-    Makefile.ss.template Makefile.uxb.template
-
 #define INSTALL_HEADERS \
-    Makefile.a.rules Makefile.bin.rules Makefile.bin.vars \
-    Makefile.foreign.rules Makefile.foreign.vars Makefile.install.rules \
-    Makefile.install.vars Makefile.meta.rules Makefile.o.rules \
-    Makefile.o.vars Makefile.project.vars Makefile.so.rules \
-    Makefile.ss.rules Makefile.ss.vars Makefile.uxb.rules \
-    Makefile.penv.vars \
     ctinstmake.pl ctproj.pl ctutils.pl
 
 #define INSTALL_SCRIPTS \