version 1.14, 2005/05/12 15:27:28
|
version 1.18, 2007/11/30 18:45:05
|
|
|
#//%2005//////////////////////////////////////////////////////////////////////// |
#//%2006//////////////////////////////////////////////////////////////////////// |
#// | #// |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
#// EMC Corporation; VERITAS Software Corporation; The Open Group. | #// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
#// | #// |
#// Permission is hereby granted, free of charge, to any person obtaining a copy | #// Permission is hereby granted, free of charge, to any person obtaining a copy |
#// of this software and associated documentation files (the "Software"), to | #// of this software and associated documentation files (the "Software"), to |
|
|
#//============================================================================== | #//============================================================================== |
DEPEND_MAK = $(OBJ_DIR)/depend.mak | DEPEND_MAK = $(OBJ_DIR)/depend.mak |
| |
ifeq ($(PEGASUS_PLATFORM),SOLARIS_SPARC_CC) |
ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) |
|
SOURCES_NO_ASM = $(patsubst %.s,,$(SOURCES)) |
|
else |
|
SOURCES_NO_ASM = $(SOURCES) |
|
endif |
|
|
|
ifeq ($(CXX), g++) |
|
PEGASUS_CXX_MAKEDEPEND_OPTION = -M |
|
endif |
|
ifeq ($(CXX), CC) |
|
PEGASUS_CXX_MAKEDEPEND_OPTION = -xM1 |
|
endif |
|
ifeq ($(CXX), aCC) |
|
PEGASUS_CXX_MAKEDEPEND_OPTION = +make -E |
|
acc_sed_filter = -e 's=$(OBJ_DIR).*cpp:==g' |
|
endif |
|
|
|
ifdef PEGASUS_CXX_MAKEDEPEND_OPTION |
depend: $(OBJ_DIR)/target $(ERROR) | depend: $(OBJ_DIR)/target $(ERROR) |
$(CXX) -xM1 $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $(SOURCES) | sed -e 's=^\(.*:\)='$(OBJ_DIR)'/\1=' > $(DEPEND_MAK) |
$(CXX) $(PEGASUS_CXX_MAKEDEPEND_OPTION) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $(SOURCES_NO_ASM) | sed -e 's=^\(.*:\)='$(OBJ_DIR)'/\1=' $(acc_sed_filter) > $(DEPEND_MAK) |
| |
else | else |
ifdef PEGASUS_HAS_MAKEDEPEND | ifdef PEGASUS_HAS_MAKEDEPEND |
|
|
| |
depend: $(OBJ_DIR)/target $(ERROR) | depend: $(OBJ_DIR)/target $(ERROR) |
touch $(DEPEND_MAK) | touch $(DEPEND_MAK) |
makedepend -v $(LOCAL_DEFINES) $(DEFINES) $(DEPEND_DEFINES) $(PRE_DEPEND_INCLUDES) $(DEPEND_INCLUDES) $(INCLUDES) $(SOURCES) -f $(DEPEND_MAK) -p $(OBJ_DIR)/ |
makedepend -v $(LOCAL_DEFINES) $(DEFINES) $(DEPEND_DEFINES) $(PRE_DEPEND_INCLUDES) $(DEPEND_INCLUDES) $(INCLUDES) $(SOURCES_NO_ASM) -f $(DEPEND_MAK) -p $(OBJ_DIR)/ |
else | else |
depend: $(OBJ_DIR)/target $(ERROR) | depend: $(OBJ_DIR)/target $(ERROR) |
mu depend -O$(OBJ_DIR) $(INCLUDES) $(SOURCES) > $(DEPEND_MAK) |
mu depend -O$(OBJ_DIR) $(INCLUDES) $(SOURCES_NO_ASM) > $(DEPEND_MAK) |
endif | endif |
endif | endif |
| |