(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.1, Mon Feb 25 14:58:43 2002 UTC (22 years, 2 months ago) by sage
Branch: MAIN
prelinker support

################################################################################
##
## 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
ifdef PEGASUS_DEBUG
FLAGS = -g -W c,XPLINK
else
FLAGS = -O2 -W c,XPLINK
endif
endif

$(OBJ_DIR)/%.o: %.cpp $(ERROR)
	$(CXX) -c -o $(_TMP_O) $(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