2001-10-06 14:13:28 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# common definitions
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# empty define, used to terminate lists
|
|
|
|
#
|
|
|
|
NULL =
|
|
|
|
|
|
|
|
#
|
|
|
|
# target directories
|
|
|
|
#
|
|
|
|
LIBDIR = $(DEPTH)/lib
|
2001-11-25 18:42:13 +00:00
|
|
|
BINDIR = $(DEPTH)/bin
|
2001-10-06 14:13:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# compiler options
|
|
|
|
#
|
|
|
|
CXXFLAGS = $(LCXXFLAGS) $(GCXXFLAGS) $(CXXOPTIMIZER) $(MKDEPOPT)
|
|
|
|
LCXXFLAGS = $(LCXXDEFS) $(LCXXINCS) $(LCXXOPTS)
|
|
|
|
GCXXFLAGS = $(GCXXDEFS) $(GCXXINCS) $(GCXXOPTS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# linker options
|
|
|
|
#
|
|
|
|
LDFLAGS = $(LDOPTS) $(LDLIBS)
|
|
|
|
LDOPTS = $(LLDOPTS) $(GLDOPTS)
|
|
|
|
LDLIBS = $(LLDLIBS) $(GLDLIBS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# ar options
|
|
|
|
#
|
|
|
|
ARF = $(AR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Convenience file list macros:
|
|
|
|
#
|
|
|
|
SOURCES = $(CXXFILES)
|
|
|
|
OBJECTS = $(CXXFILES:.cpp=.o)
|
|
|
|
|
|
|
|
#
|
|
|
|
# always unsatisfied target
|
|
|
|
#
|
|
|
|
_FORCE = $(COMMONPREF)_force
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# common rules
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# default target. makefiles must define a target named `targets'.
|
|
|
|
#
|
|
|
|
$(COMMONPREF)default: targets
|
|
|
|
|
|
|
|
#
|
|
|
|
# always unsatisfied target
|
|
|
|
#
|
|
|
|
$(_FORCE):
|
|
|
|
|
|
|
|
#
|
|
|
|
# cleaners
|
|
|
|
#
|
|
|
|
COMMONTARGETS = clean clobber
|
|
|
|
$(COMMONPREF)clean: $(_FORCE)
|
|
|
|
$(RM) $(DIRT)
|
|
|
|
|
|
|
|
$(COMMONPREF)clobber: clean $(_FORCE)
|
|
|
|
$(RM) $(TARGETS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# implicit target rules
|
|
|
|
#
|
|
|
|
.SUFFIXES: .cpp .o
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(MKDEPPRE)
|
|
|
|
$(CXX) $(CXXFLAGS) -c $<
|
|
|
|
$(MKDEPPOST)
|
|
|
|
|
|
|
|
#
|
|
|
|
# platform stuff
|
|
|
|
#
|
|
|
|
include $(DEPTH)/Make-linux
|
|
|
|
#include $(DEPTH)/Make-solaris
|
|
|
|
|
|
|
|
#
|
|
|
|
# load dependencies
|
|
|
|
#
|
|
|
|
sinclude $(MKDEPFILE)
|