Added HDEPENDS_CMD option for compiler or mkmf.pl

This commit is contained in:
Janet B. Anderson
2001-08-02 22:09:16 +00:00
parent e661474c44
commit a83f3f9214
9 changed files with 43 additions and 22 deletions

View File

@ -42,5 +42,5 @@ STATIC_LDFLAGS_NO =
SHRLIB_LDFLAGS_YES = -shared
SHRLIB_LDFLAGS_NO =
HDEPENDS_FLAGS = -MM
HDEPENDS_FLAGS_CMPLR = -MM

View File

@ -237,12 +237,25 @@ COMPILE.cpp = $(CCC) -c $(CPPFLAGS) $(CXXFLAGS) $(INCLUDES) $(SOURCE_CXXFLAG)
#--------------------------------------------------
# Build depends command here
HDEPENDS.c = $(CC)
HDEPENDS.cpp = $(CCC)
HDEPENDS_CMD.c = -$(HDEPENDS.c) $(HDEPENDS_CFLAGS) $(HDEPENDSFLAGS) $< > $*$(DEP)
HDEPENDS_CMD.cpp = -$(HDEPENDS.cpp) $(HDEPENDS_CXXFLAGS) $(HDEPENDSFLAGS) $< > $*$(DEP)
HOST_HDEPENDS_CMD = CMPLR
CROSS_HDEPENDS_CMD = CMPLR
HDEPENDS_CMD = $($(BUILD_CLASS)_HDEPENDS_CMD)
HDEPENDS.c_CMPLR = $(CC)
HDEPENDS.cpp_CMPLR = $(CCC)
HDEPENDSFLAGS_CMPLR += $(CPPFLAGS) $(INCLUDES) $< > $*$(DEP)
HDEPENDS.c_MKMF = $(PERL) $(TOOLS)/mkmf.pl
HDEPENDS.cpp_MKMF = $(PERL) $(TOOLS)/mkmf.pl
HDEPENDSFLAGS_MKMF += -c "$(CPPFLAGS)" -m $*$(DEP) -f $(subst -I,,$(INCLUDES)) $<
HDEPENDS.c = $(HDEPENDS.c_$(HDEPENDS_CMD))
HDEPENDS.cpp = $(HDEPENDS.cpp_$(HDEPENDS_CMD))
HDEPENDSFLAGS = $(HDEPENDSFLAGS_$(HDEPENDS_CMD))
HDEPENDS_FLAGS = $(HDEPENDS_FLAGS_$(HDEPENDS_CMD))
HDEPENDS_CMD.c = -$(HDEPENDS.c) $(HDEPENDS_FLAGS) $(HDEPENDSFLAGS)
HDEPENDS_CMD.cpp = -$(HDEPENDS.cpp) $(HDEPENDS_FLAGS) $(HDEPENDSFLAGS)
HDEPENDS_TARGETS_CMD = @$(PERL) $(TOOLS)/makeDependsTargets.pl $*$(DEP)
HDEPENDSFLAGS += $(CPPFLAGS) $(INCLUDES) $(HDEPENDS_FLAGS)
#--------------------------------------------------
# depends definition

View File

@ -91,12 +91,19 @@ STATIC_BUILD=NO
# Should header dependancy files be automatically generated
# for each C/C++ source code file?
# must be either YES or NO
#
# Note: On solaris and WIN32 hosts, the gnu compilers gcc and g++ are
# used to generate the dependancy files, and they must be in
# your path.
HDEPENDS=YES
# Default command to generate header dependancies for host builds
# only used if HDEPENDS=YES
# must be either CMPLR or MKMF
# CMPLR - use c/c++ compiler (recommended)
# MKMF - use mkmf.pl perl script in tools directory (has limitations)
#
# CMPLR Note: On solaris and WIN32 hosts, gnu compilers gcc and g++
# are used to generate dependancy files for host builds,
# and they must be in your path.
HOST_HDEPENDS_CMD=CMPLR
# Host build optimization
# must be either YES or NO
HOST_OPT=YES

View File

@ -53,5 +53,5 @@ STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS_YES = -G -h $@
HDEPENDS_FLAGS = +m
HDEPENDS_FLAGS_CMPLR = +m

View File

@ -43,7 +43,7 @@ STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS_YES = -shared
HDEPENDS_FLAGS =
HDEPENDS_FLAGS_CMPLR =
############# ???????????
#####ACC_SFLAGS_YES= -non_shared

View File

@ -57,7 +57,7 @@ SHRLIB_LDFLAGS_YES = -G -h $@
# gnu compiler used because Sun compiler output
# includes headers from /opt/SUNWspro and does
# not work for c++ headers without .h suffix.
HDEPENDS_FLAGS = -MM
HDEPENDS.c = gcc
HDEPENDS.cpp = g++
HDEPENDS_FLAGS_CMPLR = -MM
HDEPENDS.c_CMPLR = gcc
HDEPENDS.cpp_CMPLR = g++

View File

@ -57,6 +57,7 @@ SHRLIB_LDFLAGS_YES = -G -h $@
# gnu compiler used because Sun compiler output
# includes headers from /opt/SUNWspro and does
# not work for c++ headers without .h suffix.
HDEPENDS_FLAGS = -MM
HDEPENDS.cpp = g++
HDEPENDS_FLAGS_CMPLR = -MM
HDEPENDS.c_CMPLR = gcc
HDEPENDS.cpp_CMPLR = g++

View File

@ -46,5 +46,5 @@ STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS_YES = -assert pure-text -h $@
HDEPENDS_FLAGS = -xM1
HDEPENDS_FLAGS_CMPLR = -xM1

View File

@ -29,10 +29,10 @@ ARCMD = lib /nologo /verbose /out:$@ $(LIBRARY_LD_OBJS)
BAFCMD = bscmake /nologo /o $@
# gnu compiler used to create depends files (not available in Visual C++)
HDEPENDS_FLAGS = -MM $(addprefix -I,$(subst ;, ,$(INCLUDE)))
HDEPENDS.c = gcc
HDEPENDS.cpp = g++
# gnu compiler used to create depends files
HDEPENDS_FLAGS_CMPLR = -MM
HDEPENDS.c_CMPLR = gcc
HDEPENDS.cpp_CMPLR = g++
#
# Configure OS vendor C compiler