Mercurial > illumos > onarm
comparison usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/Makefile @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children | 1a15d5aaf794 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c9caec207d52 |
---|---|
1 # | |
2 # CDDL HEADER START | |
3 # | |
4 # The contents of this file are subject to the terms of the | |
5 # Common Development and Distribution License, Version 1.0 only | |
6 # (the "License"). You may not use this file except in compliance | |
7 # with the License. | |
8 # | |
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
10 # or http://www.opensolaris.org/os/licensing. | |
11 # See the License for the specific language governing permissions | |
12 # and limitations under the License. | |
13 # | |
14 # When distributing Covered Code, include this CDDL HEADER in each | |
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
16 # If applicable, add the following below this CDDL HEADER, with the | |
17 # fields enclosed by brackets "[]" replaced with your own identifying | |
18 # information: Portions Copyright [yyyy] [name of copyright owner] | |
19 # | |
20 # CDDL HEADER END | |
21 # | |
22 # | |
23 # ident "@(#)Makefile 1.14 05/06/08 SMI" | |
24 # | |
25 # Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved. | |
26 # Use is subject to license terms. | |
27 # | |
28 # cmd/cmd-inet/usr.sadm/dhcpmgr/Makefile | |
29 | |
30 include $(SRC)/Makefile.master | |
31 | |
32 SUBDIRS = com lib bin help | |
33 | |
34 all := TARGET= all | |
35 install := TARGET= install | |
36 clean := TARGET= clean | |
37 clobber := TARGET= clobber | |
38 lint := TARGET= lint | |
39 _msg := TARGET= _msg | |
40 | |
41 GUI_JAR= dhcpmgr.jar | |
42 GUI_JARFILES= com/sun/dhcpmgr/client/*.class \ | |
43 com/sun/dhcpmgr/ui/*.class \ | |
44 com/sun/dhcpmgr/ui/*.gif \ | |
45 com/sun/dhcpmgr/client/*.properties \ | |
46 com/sun/dhcpmgr/ui/*.properties | |
47 | |
48 SERVER_JAR= dhcpsvc.jar | |
49 SERVER_JARFILES= com/sun/dhcpmgr/server/*.class \ | |
50 com/sun/dhcpmgr/bridge/*.class \ | |
51 com/sun/dhcpmgr/server/*.properties \ | |
52 com/sun/dhcpmgr/bridge/*.properties | |
53 | |
54 | |
55 CLI_JAR= dhcpcli.jar | |
56 CLI_JARFILES= com/sun/dhcpmgr/cli/*/*.class \ | |
57 com/sun/dhcpmgr/cli/*/*.properties | |
58 | |
59 COMMON_JAR= dhcpcommon.jar | |
60 COMMON_JARFILES= com/sun/dhcpmgr/data/*.class \ | |
61 com/sun/dhcpmgr/data/qualifier/*.class \ | |
62 com/sun/dhcpmgr/common/*.class \ | |
63 com/sun/dhcpmgr/data/*.properties \ | |
64 com/sun/dhcpmgr/common/*.properties | |
65 | |
66 SUNWFILES_JAR= SUNWfiles.jar | |
67 SUNWFILES_JARFILES= com/sun/dhcpmgr/client/SUNWfiles/*.class \ | |
68 com/sun/dhcpmgr/client/SUNWfiles/*.properties | |
69 SUNWFILES_MANIFEST= SUNWfiles.manifest | |
70 | |
71 SUNWBINFILES_JAR= SUNWbinfiles.jar | |
72 SUNWBINFILES_JARFILES= com/sun/dhcpmgr/client/SUNWbinfiles/*.class \ | |
73 com/sun/dhcpmgr/client/SUNWbinfiles/*.properties | |
74 SUNWBINFILES_MANIFEST= SUNWbinfiles.manifest | |
75 | |
76 SUNWNISPLUS_JAR= SUNWnisplus.jar | |
77 SUNWNISPLUS_JARFILES= com/sun/dhcpmgr/client/SUNWnisplus/*.class \ | |
78 com/sun/dhcpmgr/client/SUNWnisplus/*.properties | |
79 SUNWNISPLUS_MANIFEST= SUNWnisplus.manifest | |
80 | |
81 CLI_JARS=${CLI_JAR} ${SERVER_JAR} ${COMMON_JAR} | |
82 GUI_JARS=$(GUI_JAR) ${SUNWFILES_JAR} ${SUNWBINFILES_JAR} ${SUNWNISPLUS_JAR} | |
83 ALL_JARS= ${GUI_JARS} ${CLI_JARS} | |
84 | |
85 MANIFEST_FILES= $(SUNWFILES_MANIFEST) $(SUNWBINFILES_MANIFEST) $(SUNWNISPLUS_MANIFEST) | |
86 | |
87 ROOTGUIDIR = $(ROOT)/usr/sadm/admin/dhcpmgr | |
88 ROOTCLIDIR = $(ROOT)/usr/lib/inet/dhcp/svcadm | |
89 ROOTDIRS= $(ROOT)/usr/sadm/admin $(ROOTGUIDIR) $(ROOTCLIDIR) | |
90 | |
91 ROOTCLIFILES = ${CLI_JARS} | |
92 ROOTGUIFILES = ${GUI_JARS} | |
93 ROOTCLIDIRJAR = $(ROOTCLIFILES:%=$(ROOTCLIDIR)/%) | |
94 ROOTGUIDIRJAR = $(ROOTGUIFILES:%=$(ROOTGUIDIR)/%) | |
95 | |
96 JAVADOC_PKGS= com.sun.dhcpmgr.client \ | |
97 com.sun.dhcpmgr.ui \ | |
98 com.sun.dhcpmgr.data \ | |
99 com.sun.dhcpmgr.data.qualifier \ | |
100 com.sun.dhcpmgr.server \ | |
101 com.sun.dhcpmgr.bridge \ | |
102 com.sun.dhcpmgr.cli.common \ | |
103 com.sun.dhcpmgr.cli.dhcpconfig \ | |
104 com.sun.dhcpmgr.cli.dhtadm \ | |
105 com.sun.dhcpmgr.cli.pntadm \ | |
106 com.sun.dhcpmgr.common | |
107 | |
108 FILEMODE = 0444 | |
109 DIRMODE = 0755 | |
110 | |
111 .KEEP_STATE: | |
112 | |
113 all: $(SUBDIRS) $(ALL_JARS) | |
114 | |
115 install: all $(ROOTDIRS) $(SUBDIRS) $(ROOTCLIDIRJAR) $(ROOTGUIDIRJAR) | |
116 | |
117 clean clobber: $(SUBDIRS) | |
118 -$(RM) $(MANIFEST_FILES) | |
119 -$(RM) $(ALL_JARS) | |
120 | |
121 lint: lib | |
122 | |
123 _msg: $(SUBDIRS) | |
124 | |
125 strip: | |
126 | |
127 # | |
128 # The javadocs target is non-standard; used for creating API reference docs | |
129 # The javadocs will be placed in $(CODEMGR_WS}/javadocs | |
130 # | |
131 javadocs: | |
132 $(RM) -r $(CODEMGR_WS)/$@; mkdir $(CODEMGR_WS)/$@ | |
133 $(JAVADOC) -classpath $(CLASSPATH) -sourcepath . -d $(CODEMGR_WS)/$@ $(JAVADOC_PKGS) -windowtitle "DHCP Administration packages" | |
134 | |
135 $(GUI_JAR): FRC | |
136 $(JAR) cf $@ $(GUI_JARFILES) | |
137 | |
138 $(SERVER_JAR): FRC | |
139 $(JAR) cf $@ $(SERVER_JARFILES) | |
140 | |
141 $(CLI_JAR): FRC | |
142 $(JAR) cf $@ $(CLI_JARFILES) | |
143 | |
144 $(COMMON_JAR): FRC | |
145 $(JAR) cf $@ $(COMMON_JARFILES) | |
146 | |
147 $(SUNWFILES_JAR): $(SUNWFILES_MANIFEST) FRC | |
148 $(JAR) cmf $(SUNWFILES_MANIFEST) $@ $(SUNWFILES_JARFILES) | |
149 | |
150 $(SUNWBINFILES_JAR): $(SUNWBINFILES_MANIFEST) FRC | |
151 $(JAR) cmf $(SUNWBINFILES_MANIFEST) $@ $(SUNWBINFILES_JARFILES) | |
152 | |
153 $(SUNWNISPLUS_JAR): $(SUNWNISPLUS_MANIFEST) FRC | |
154 $(JAR) cmf $(SUNWNISPLUS_MANIFEST) $@ $(SUNWNISPLUS_JARFILES) | |
155 | |
156 $(SUNWFILES_MANIFEST): | |
157 @$(ECHO) "Name: com/sun/dhcpmgr/client/SUNWfiles/SUNWfiles.class" > $@; | |
158 @$(ECHO) "Java-Bean: True" >> $@; | |
159 | |
160 $(SUNWBINFILES_MANIFEST): | |
161 @$(ECHO) "Name: com/sun/dhcpmgr/client/SUNWbinfiles/SUNWbinfiles.class" > $@; | |
162 @$(ECHO) "Java-Bean: True" >> $@; | |
163 | |
164 $(SUNWNISPLUS_MANIFEST): | |
165 @$(ECHO) "Name: com/sun/dhcpmgr/client/SUNWnisplus/SUNWnisplus.class" > $@; | |
166 @$(ECHO) "Java-Bean: True" >> $@; | |
167 | |
168 $(ROOTCLIDIR)/%: % | |
169 $(INS.file) | |
170 | |
171 $(ROOTGUIDIR)/%: % | |
172 $(INS.file) | |
173 | |
174 $(ROOTDIRS): | |
175 $(INS.dir) | |
176 | |
177 $(SUBDIRS): FRC | |
178 @cd $@; pwd; $(MAKE) $(TARGET) | |
179 | |
180 FRC: |