(file) Return to objects-zos.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

File: [Pegasus] / pegasus / mak / objects-zos.mak (download)
Revision: 1.3, Fri Feb 11 23:52:59 2005 UTC (19 years, 3 months ago) by w.otsuka
Branch: MAIN
CVS Tags: PEP214ROOT, PEP214BRANCH, PEP214-root, PEP214-branch, PEP-214B-root
Changes since 1.2: +1 -1 lines
BUG#: 2591
TITLE:  Add CFLAGS for Linux Builds

DESCRIPTION: Added PEGASUS_EXTRA_CXX_FLAGS and PEGASUS_EXTRA_C_FLAGS. Platform maintainers should check builds on their platforms. VMS will have to implement the change if desired.

################################################################################
##
## An ugly trick is used here to overcome a bug in g++ 2.9.5. G++ failes to
## cleanup object files that are placed in directories other than the
## current one (using the -o option). To overcome this bug, we use -o.tmp.o 
## and then move the file to the object directory.
##
################################################################################

_TMP_O = $(PEGASUS_PLATFORM).o

# prelinker support

ifdef PEGASUS_ZOS_PROGRAM_OBJECT
FLAGS = $(PR_FLAGS)
endif

$(OBJ_DIR)/%.o: %.cpp $(ERROR)
	$(CXX) -c -o $(_TMP_O) $(FLAGS) $(EXTRA_CXX_FLAGS) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $*.cpp
	@ $(COPY) $(_TMP_O) $@
	@ $(RM) $(_TMP_O)
	@ $(TOUCH) $@
	@ $(ECHO)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2