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

File: [Pegasus] / pegasus / mak / objects-unix.mak (download)
Revision: 1.1, Sun Feb 11 05:47:42 2001 UTC (23 years, 3 months ago) by mike
Branch: MAIN
CVS Tags: version_0_97, version_0_96, version_0_95, version_0_8, stable_0_95, stable
new

################################################################################
##
## 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 = .tmp.o

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2