Return to depend-unix.mak CVS log | Up to [Pegasus] / pegasus / mak |
1 martin 1.20 #//%LICENSE//////////////////////////////////////////////////////////////// | ||
2 martin 1.14 #// | ||
3 martin 1.20 #// Licensed to The Open Group (TOG) under one or more contributor license 4 #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with 5 #// this work for additional information regarding copyright ownership. 6 #// Each contributor licenses this file to you under the OpenPegasus Open 7 #// Source License; you may not use this file except in compliance with the 8 #// License. 9 #// 10 #// Permission is hereby granted, free of charge, to any person obtaining a 11 #// copy of this software and associated documentation files (the "Software"), 12 #// to deal in the Software without restriction, including without limitation 13 #// the rights to use, copy, modify, merge, publish, distribute, sublicense, 14 #// and/or sell copies of the Software, and to permit persons to whom the 15 #// Software is furnished to do so, subject to the following conditions: 16 #// 17 #// The above copyright notice and this permission notice shall be included 18 #// in all copies or substantial portions of the Software. 19 #// 20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 24 martin 1.20 #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 25 #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 26 #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 #// 28 #////////////////////////////////////////////////////////////////////////// | ||
29 mike 1.1 DEPEND_MAK = $(OBJ_DIR)/depend.mak 30 | ||
31 dmitry.mikulin 1.17 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) 32 SOURCES_NO_ASM = $(patsubst %.s,,$(SOURCES)) 33 else 34 SOURCES_NO_ASM = $(SOURCES) 35 endif 36 | ||
37 denise.eckstein 1.16 ifeq ($(CXX), g++) 38 PEGASUS_CXX_MAKEDEPEND_OPTION = -M 39 endif 40 ifeq ($(CXX), CC) 41 PEGASUS_CXX_MAKEDEPEND_OPTION = -xM1 42 endif | ||
43 dmitry.mikulin 1.17 ifeq ($(CXX), aCC) | ||
44 dmitry.mikulin 1.19 PEGASUS_CXX_MAKEDEPEND_OPTION = +Make -E | ||
45 dmitry.mikulin 1.18 acc_sed_filter = -e 's=$(OBJ_DIR).*cpp:==g' | ||
46 dmitry.mikulin 1.17 endif | ||
47 denise.eckstein 1.16 48 ifdef PEGASUS_CXX_MAKEDEPEND_OPTION | ||
49 keith.petley 1.11 depend: $(OBJ_DIR)/target $(ERROR) | ||
50 dmitry.mikulin 1.18 $(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) | ||
51 denise.eckstein 1.16 | ||
52 keith.petley 1.11 else | ||
53 mike 1.9 ifdef PEGASUS_HAS_MAKEDEPEND | ||
54 david.dillard 1.13 DEPEND_INCLUDES += -DPEGASUS_OS_TYPE_UNIX -I/usr/include $(SYS_INCLUDES) | ||
55 mike 1.9 56 depend: $(OBJ_DIR)/target $(ERROR) 57 touch $(DEPEND_MAK) | ||
58 dmitry.mikulin 1.17 makedepend -v $(LOCAL_DEFINES) $(DEFINES) $(DEPEND_DEFINES) $(PRE_DEPEND_INCLUDES) $(DEPEND_INCLUDES) $(INCLUDES) $(SOURCES_NO_ASM) -f $(DEPEND_MAK) -p $(OBJ_DIR)/ | ||
59 mike 1.9 else | ||
60 mike 1.5 depend: $(OBJ_DIR)/target $(ERROR) | ||
61 dmitry.mikulin 1.17 mu depend -O$(OBJ_DIR) $(INCLUDES) $(SOURCES_NO_ASM) > $(DEPEND_MAK) | ||
62 keith.petley 1.11 endif | ||
63 mike 1.9 endif | ||
64 mike 1.2 65 clean-depend: 66 $(RM) $(OBJ_DIR)/depend.mak |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |