author | Jan Damborsky <jan.damborsky@sun.com> |
Fri, 07 Mar 2008 10:25:22 +0100 | |
changeset 26 | fb9b1fd08e73 |
parent 0 | 87f703f8362e |
child 74 | ba240cbcdf1c |
permissions | -rw-r--r-- |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
1 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
3 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
7 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
11 |
# and limitations under the License. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
12 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
14 |
# file and include the License file at src/OPENSOLARIS.LICENSE. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
18 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
20 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
21 |
# Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
22 |
# Use is subject to license terms. |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
23 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
24 |
#ident "@(#)Makefile 1.1 07/08/03 SMI" |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
25 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
26 |
# Target Discovery software library makefile |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
27 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
28 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
29 |
LIBRARY = libtd.a |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
30 |
VERS = .1 |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
31 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
32 |
OBJECTS = \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
33 |
td_mg.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
34 |
td_version.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
35 |
td_mountall.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
36 |
td_util.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
37 |
td_dd.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
38 |
td_dd_svm.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
39 |
test_td.o |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
40 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
41 |
# td_misc.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
42 |
# td_boolean.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
43 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
44 |
PRIVHDRS = \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
45 |
td_lib.h \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
46 |
td_version.h \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
47 |
td_dd.h |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
48 |
EXPHDRS = \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
49 |
td_api.h |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
50 |
HDRS = $(EXPHDRS) $(PRIVHDRS) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
51 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
52 |
include ../Makefile.lib |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
53 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
54 |
INCLUDE = -I. -I../libspmizones \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
55 |
-I../libspmisvc \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
56 |
-I../liborchestrator \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
57 |
-I../liblogsvc \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
58 |
-I$(ROOTINCADMIN) |
26
fb9b1fd08e73
683 orchestrator should be libspmi* clean
Jan Damborsky <jan.damborsky@sun.com>
parents:
0
diff
changeset
|
59 |
|
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
60 |
CPPFLAGS += ${INCLUDE} -D${ARCH} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
61 |
CFLAGS += $(DEBUG_CFLAGS) -Xa ${CPPFLAGS} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
62 |
LDFLAGS += |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
63 |
SOFLAGS += -L$(ROOTADMINLIB) -R$(ROOTADMINLIB:$(ROOT)%=%) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
64 |
-lwanboot -lcontract -ldiskmgt -lnvpair -lspmizones -lzonecfg \ |
26
fb9b1fd08e73
683 orchestrator should be libspmi* clean
Jan Damborsky <jan.damborsky@sun.com>
parents:
0
diff
changeset
|
65 |
-lspmicommon -llogsvc |
0
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
66 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
67 |
LINTERR = lint_errors |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
68 |
LINTFILES = ${SRCS:%.c=${ARCH}/%.ln} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
69 |
LINTFLAGS = -uaxm ${CPPFLAGS} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
70 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
71 |
.KEEP_STATE: |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
72 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
73 |
all: $(HDRS) .WAIT static dynamic |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
74 |
@true |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
75 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
76 |
#Target Discovery Manager test program |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
77 |
mgtst: .WAIT static tdmgtst.o |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
78 |
${LINK.c} -R$(ROOTADMINLIB:$(ROOT)%=%) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
79 |
-o tdmgtst tdmgtst.o \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
80 |
-Lobjs/${ARCH} -ldiskmgt -lnvpair -ldevinfo \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
81 |
-L${ROOT}/usr/snadm/lib \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
82 |
-ladm -lzonecfg -lcontract -lwanboot \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
83 |
-lspmiapp -lspmisvc -lspmistore \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
84 |
-lspmisoft -lspmicommon -lpkg \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
85 |
-lorchestrator \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
86 |
-llogsvc -lspmizones \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
87 |
-Bstatic \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
88 |
-ltd \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
89 |
-Bdynamic |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
90 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
91 |
# -L../liborchestrator/objs/${ARCH} -lorchestrator \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
92 |
# |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
93 |
#Target Discovery test program |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
94 |
tdtst: .WAIT dynamic test_td.o |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
95 |
${LINK.c} -R$(ROOTADMINLIB:$(ROOT)%=%) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
96 |
-o test_td test_td.o -L$(ROOTADMINLIB) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
97 |
-Lpics/${ARCH} -ltd -llogsvc -lnvpair -lspmicommon |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
98 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
99 |
static: $(LIBS) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
100 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
101 |
dynamic: $(DYNLIB) .WAIT $(DYNLIBLINK) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
102 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
103 |
install: all .WAIT \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
104 |
$(ROOTADMINLIB) $(ROOTADMINLIBS) $(ROOTADMINLIBDYNLIB) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
105 |
$(ROOTADMINLIBDYNLIBLINK) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
106 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
107 |
install_test: all .WAIT \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
108 |
$(ROOTADMINLIB) $(ROOTADMINLIBS) $(ROOTADMINLIBDYNLIB) \ |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
109 |
$(ROOTADMINLIBDYNLIBLINK) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
110 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
111 |
install_h: $(ROOTUSRINCLEXP) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
112 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
113 |
lint: ${SRCS} ${HDRS} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
114 |
${LINT.c} ${SRCS} |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
115 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
116 |
cstyle: $(SRCS) $(PRIVHDRS) $(PUBHDRS) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
117 |
$(CSTYLE) $(SRCS) $(PRIVHDRS) $(PUBHDRS) |
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
118 |
|
87f703f8362e
OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff
changeset
|
119 |
include ../Makefile.targ |