1 mike 1.1 ################################################################################
2 ##
3 ## An ugly trick is used here to overcome a bug in g++ 2.9.5. G++ failes to
4 ## cleanup object files that are placed in directories other than the
5 ## current one (using the -o option). To overcome this bug, we use -o.tmp.o
6 ## and then move the file to the object directory.
7 ##
8 ################################################################################
9
|
10 mike 1.2 _TMP_O = $(PEGASUS_PLATFORM).o
|
11 mike 1.1
|
12 kumpf 1.6 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
13 $(OBJ_DIR)/%.o: %.cpp $(ERROR)
14 $(CXX) -c -o $@ $(FLAGS) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $*.cpp
15 @ $(TOUCH) $@
16 @ $(ECHO)
17 else
|
18 mike 1.1 $(OBJ_DIR)/%.o: %.cpp $(ERROR)
|
19 mike 1.3 $(CXX) -c -o $(_TMP_O) $(FLAGS) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $*.cpp
|
20 mike 1.5 @ $(COPY) $(_TMP_O) $@
21 @ $(RM) $(_TMP_O)
22 @ $(TOUCH) $@
|
23 mike 1.1 @ $(ECHO)
|
24 kumpf 1.6 endif
|