1 martin 1.20 #//%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.21 #//
|
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 martin 1.21 #//
|
10 martin 1.20 #// 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 martin 1.21 #//
|
17 martin 1.20 #// The above copyright notice and this permission notice shall be included
18 #// in all copies or substantial portions of the Software.
|
19 martin 1.21 #//
|
20 martin 1.20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.20 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 #// 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 martin 1.21 #//
|
28 martin 1.20 #//////////////////////////////////////////////////////////////////////////
|
29 mike 1.1 DEPEND_MAK = $(OBJ_DIR)/depend.mak
30
|
31 nagaraj.gr 1.24 ifeq ($(ARCHITECTURE),PARISC)
|
32 dmitry.mikulin 1.17 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 dev.meetei 1.23 ifeq ($(CXX), clang++)
41 PEGASUS_CXX_MAKEDEPEND_OPTION = -M
42 C_SOURCES = $(filter %.c, $(SOURCES))
43 endif
44
|
45 denise.eckstein 1.16 ifeq ($(CXX), CC)
46 PEGASUS_CXX_MAKEDEPEND_OPTION = -xM1
47 endif
|
48 dmitry.mikulin 1.17 ifeq ($(CXX), aCC)
|
49 dmitry.mikulin 1.19 PEGASUS_CXX_MAKEDEPEND_OPTION = +Make -E
|
50 dmitry.mikulin 1.18 acc_sed_filter = -e 's=$(OBJ_DIR).*cpp:==g'
|
51 dmitry.mikulin 1.17 endif
|
52 denise.eckstein 1.16
|
53 kumpf 1.22 ifdef PEGASUS_CXX_MAKEDEPEND_OPTION
|
54 dev.meetei 1.23
55 ifeq ($(COMPILER), clang)
56 ifneq ($(strip $(C_SOURCES)),)
57 depend: $(OBJ_DIR)/target $(ERROR)
58 $(CC) $(PEGASUS_CXX_MAKEDEPEND_OPTION) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $(SOURCES_NO_ASM) | sed -e 's=^\(.*:\)='$(OBJ_DIR)'/\1=' > $(DEPEND_MAK)
59 else
|
60 keith.petley 1.11 depend: $(OBJ_DIR)/target $(ERROR)
|
61 dev.meetei 1.23 $(CXX) $(PEGASUS_CXX_MAKEDEPEND_OPTION) $(LOCAL_DEFINES) $(DEFINES) $(SYS_INCLUDES) $(INCLUDES) $(SOURCES_NO_ASM) | sed -e 's=^\(.*:\)='$(OBJ_DIR)'/\1=' > $(DEPEND_MAK)
62 endif
63 else
64 depend: $(OBJ_DIR)/target $(ERROR)
|
65 karl 1.25 $(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)
|
66 dev.meetei 1.23
67 endif
|
68 keith.petley 1.11 else
|
69 mike 1.9 ifdef PEGASUS_HAS_MAKEDEPEND
|
70 david.dillard 1.13 DEPEND_INCLUDES += -DPEGASUS_OS_TYPE_UNIX -I/usr/include $(SYS_INCLUDES)
|
71 mike 1.9
72 depend: $(OBJ_DIR)/target $(ERROR)
73 touch $(DEPEND_MAK)
|
74 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)/
|
75 mike 1.9 else
|
76 mike 1.5 depend: $(OBJ_DIR)/target $(ERROR)
|
77 dmitry.mikulin 1.17 mu depend -O$(OBJ_DIR) $(INCLUDES) $(SOURCES_NO_ASM) > $(DEPEND_MAK)
|
78 keith.petley 1.11 endif
|
79 mike 1.9 endif
|
80 mike 1.2 clean-depend:
81 $(RM) $(OBJ_DIR)/depend.mak
|