xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/Makefile (revision 11262:b7ebfbf2359e)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*11262SRajagopal.Andra@Sun.COM# Common Development and Distribution License (the "License").
6*11262SRajagopal.Andra@Sun.COM# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
22*11262SRajagopal.Andra@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate# Use is subject to license terms.
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# cmd/cmd-inet/usr.sadm/dhcpmgr/Makefile
260Sstevel@tonic-gate
270Sstevel@tonic-gateinclude $(SRC)/Makefile.master
280Sstevel@tonic-gate
290Sstevel@tonic-gateSUBDIRS =	com lib bin help
300Sstevel@tonic-gate
310Sstevel@tonic-gateall	:=	TARGET= all
320Sstevel@tonic-gateinstall	:=	TARGET= install
330Sstevel@tonic-gateclean	:=	TARGET= clean
340Sstevel@tonic-gateclobber	:=	TARGET= clobber
350Sstevel@tonic-gatelint	:=	TARGET= lint
360Sstevel@tonic-gate_msg	:=	TARGET= _msg
370Sstevel@tonic-gate
380Sstevel@tonic-gateGUI_JAR= 	dhcpmgr.jar
390Sstevel@tonic-gateGUI_JARFILES=	com/sun/dhcpmgr/client/*.class \
400Sstevel@tonic-gate		com/sun/dhcpmgr/ui/*.class \
410Sstevel@tonic-gate		com/sun/dhcpmgr/ui/*.gif \
420Sstevel@tonic-gate		com/sun/dhcpmgr/client/*.properties \
430Sstevel@tonic-gate		com/sun/dhcpmgr/ui/*.properties
440Sstevel@tonic-gate
450Sstevel@tonic-gateSERVER_JAR= 		dhcpsvc.jar
460Sstevel@tonic-gateSERVER_JARFILES=	com/sun/dhcpmgr/server/*.class \
470Sstevel@tonic-gate			com/sun/dhcpmgr/bridge/*.class \
480Sstevel@tonic-gate			com/sun/dhcpmgr/server/*.properties \
490Sstevel@tonic-gate			com/sun/dhcpmgr/bridge/*.properties
500Sstevel@tonic-gate
510Sstevel@tonic-gate
520Sstevel@tonic-gateCLI_JAR= 	dhcpcli.jar
530Sstevel@tonic-gateCLI_JARFILES=	com/sun/dhcpmgr/cli/*/*.class \
540Sstevel@tonic-gate		com/sun/dhcpmgr/cli/*/*.properties
550Sstevel@tonic-gate
560Sstevel@tonic-gateCOMMON_JAR= 		dhcpcommon.jar
570Sstevel@tonic-gateCOMMON_JARFILES=	com/sun/dhcpmgr/data/*.class \
580Sstevel@tonic-gate			com/sun/dhcpmgr/data/qualifier/*.class \
590Sstevel@tonic-gate			com/sun/dhcpmgr/common/*.class \
600Sstevel@tonic-gate			com/sun/dhcpmgr/data/*.properties \
610Sstevel@tonic-gate			com/sun/dhcpmgr/common/*.properties
620Sstevel@tonic-gate
630Sstevel@tonic-gateSUNWFILES_JAR=		SUNWfiles.jar
640Sstevel@tonic-gateSUNWFILES_JARFILES=	com/sun/dhcpmgr/client/SUNWfiles/*.class \
650Sstevel@tonic-gate			com/sun/dhcpmgr/client/SUNWfiles/*.properties
660Sstevel@tonic-gateSUNWFILES_MANIFEST=	SUNWfiles.manifest
670Sstevel@tonic-gate
680Sstevel@tonic-gateSUNWBINFILES_JAR= 	SUNWbinfiles.jar
690Sstevel@tonic-gateSUNWBINFILES_JARFILES= 	com/sun/dhcpmgr/client/SUNWbinfiles/*.class \
700Sstevel@tonic-gate			com/sun/dhcpmgr/client/SUNWbinfiles/*.properties
710Sstevel@tonic-gateSUNWBINFILES_MANIFEST=	SUNWbinfiles.manifest
720Sstevel@tonic-gate
730Sstevel@tonic-gateCLI_JARS=${CLI_JAR} ${SERVER_JAR} ${COMMON_JAR}
74*11262SRajagopal.Andra@Sun.COMGUI_JARS=$(GUI_JAR) ${SUNWFILES_JAR} ${SUNWBINFILES_JAR}
750Sstevel@tonic-gateALL_JARS= ${GUI_JARS} ${CLI_JARS}
760Sstevel@tonic-gate
77*11262SRajagopal.Andra@Sun.COMMANIFEST_FILES= $(SUNWFILES_MANIFEST) $(SUNWBINFILES_MANIFEST)
780Sstevel@tonic-gate
790Sstevel@tonic-gateROOTGUIDIR = $(ROOT)/usr/sadm/admin/dhcpmgr
800Sstevel@tonic-gateROOTCLIDIR = $(ROOT)/usr/lib/inet/dhcp/svcadm
810Sstevel@tonic-gateROOTDIRS= $(ROOT)/usr/sadm/admin $(ROOTGUIDIR) $(ROOTCLIDIR)
820Sstevel@tonic-gate
830Sstevel@tonic-gateROOTCLIFILES = ${CLI_JARS}
840Sstevel@tonic-gateROOTGUIFILES = ${GUI_JARS}
850Sstevel@tonic-gateROOTCLIDIRJAR = $(ROOTCLIFILES:%=$(ROOTCLIDIR)/%)
860Sstevel@tonic-gateROOTGUIDIRJAR = $(ROOTGUIFILES:%=$(ROOTGUIDIR)/%)
870Sstevel@tonic-gate
880Sstevel@tonic-gateJAVADOC_PKGS=	com.sun.dhcpmgr.client \
890Sstevel@tonic-gate		com.sun.dhcpmgr.ui \
900Sstevel@tonic-gate		com.sun.dhcpmgr.data \
910Sstevel@tonic-gate		com.sun.dhcpmgr.data.qualifier \
920Sstevel@tonic-gate		com.sun.dhcpmgr.server \
930Sstevel@tonic-gate		com.sun.dhcpmgr.bridge \
940Sstevel@tonic-gate		com.sun.dhcpmgr.cli.common \
950Sstevel@tonic-gate		com.sun.dhcpmgr.cli.dhcpconfig \
960Sstevel@tonic-gate		com.sun.dhcpmgr.cli.dhtadm \
970Sstevel@tonic-gate		com.sun.dhcpmgr.cli.pntadm \
980Sstevel@tonic-gate		com.sun.dhcpmgr.common
990Sstevel@tonic-gate
1000Sstevel@tonic-gateFILEMODE =	0444
1010Sstevel@tonic-gateDIRMODE =	0755
1020Sstevel@tonic-gate
1030Sstevel@tonic-gate.KEEP_STATE:
1040Sstevel@tonic-gate
1050Sstevel@tonic-gateall: $(SUBDIRS) $(ALL_JARS)
1060Sstevel@tonic-gate
1070Sstevel@tonic-gateinstall: all $(ROOTDIRS) $(SUBDIRS) $(ROOTCLIDIRJAR) $(ROOTGUIDIRJAR)
1080Sstevel@tonic-gate
1090Sstevel@tonic-gateclean clobber: $(SUBDIRS)
1100Sstevel@tonic-gate	-$(RM) $(MANIFEST_FILES)
1110Sstevel@tonic-gate	-$(RM) $(ALL_JARS)
1120Sstevel@tonic-gate
1130Sstevel@tonic-gatelint:	lib
1140Sstevel@tonic-gate
1150Sstevel@tonic-gate_msg:	$(SUBDIRS)
1160Sstevel@tonic-gate
1170Sstevel@tonic-gatestrip:
1180Sstevel@tonic-gate
1190Sstevel@tonic-gate#
1200Sstevel@tonic-gate# The javadocs target is non-standard; used for creating API reference docs
1210Sstevel@tonic-gate# The javadocs will be placed in $(CODEMGR_WS}/javadocs
1220Sstevel@tonic-gate#
1230Sstevel@tonic-gatejavadocs:
1240Sstevel@tonic-gate	$(RM) -r $(CODEMGR_WS)/$@; mkdir $(CODEMGR_WS)/$@
1250Sstevel@tonic-gate	$(JAVADOC) -classpath $(CLASSPATH) -sourcepath . -d $(CODEMGR_WS)/$@ $(JAVADOC_PKGS) -windowtitle "DHCP Administration packages"
1260Sstevel@tonic-gate
1270Sstevel@tonic-gate$(GUI_JAR): FRC
1280Sstevel@tonic-gate	$(JAR) cf $@ $(GUI_JARFILES)
1290Sstevel@tonic-gate
1300Sstevel@tonic-gate$(SERVER_JAR): FRC
1310Sstevel@tonic-gate	$(JAR) cf $@ $(SERVER_JARFILES)
1320Sstevel@tonic-gate
1330Sstevel@tonic-gate$(CLI_JAR): FRC
1340Sstevel@tonic-gate	$(JAR) cf $@ $(CLI_JARFILES)
1350Sstevel@tonic-gate
1360Sstevel@tonic-gate$(COMMON_JAR): FRC
1370Sstevel@tonic-gate	$(JAR) cf $@ $(COMMON_JARFILES)
1380Sstevel@tonic-gate
1390Sstevel@tonic-gate$(SUNWFILES_JAR): $(SUNWFILES_MANIFEST) FRC
1400Sstevel@tonic-gate	$(JAR) cmf $(SUNWFILES_MANIFEST) $@ $(SUNWFILES_JARFILES)
1410Sstevel@tonic-gate
1420Sstevel@tonic-gate$(SUNWBINFILES_JAR): $(SUNWBINFILES_MANIFEST) FRC
1430Sstevel@tonic-gate	$(JAR) cmf $(SUNWBINFILES_MANIFEST) $@ $(SUNWBINFILES_JARFILES)
1440Sstevel@tonic-gate
1450Sstevel@tonic-gate$(SUNWFILES_MANIFEST):
1460Sstevel@tonic-gate	@$(ECHO) "Name: com/sun/dhcpmgr/client/SUNWfiles/SUNWfiles.class" > $@;
1470Sstevel@tonic-gate	@$(ECHO) "Java-Bean: True" >> $@;
1480Sstevel@tonic-gate
1490Sstevel@tonic-gate$(SUNWBINFILES_MANIFEST):
1500Sstevel@tonic-gate	@$(ECHO) "Name: com/sun/dhcpmgr/client/SUNWbinfiles/SUNWbinfiles.class" > $@;
1510Sstevel@tonic-gate	@$(ECHO) "Java-Bean: True" >> $@;
1520Sstevel@tonic-gate
1530Sstevel@tonic-gate$(ROOTCLIDIR)/%:	%
1540Sstevel@tonic-gate	$(INS.file)
1550Sstevel@tonic-gate
1560Sstevel@tonic-gate$(ROOTGUIDIR)/%: %
1570Sstevel@tonic-gate	$(INS.file)
1580Sstevel@tonic-gate
1590Sstevel@tonic-gate$(ROOTDIRS):
1600Sstevel@tonic-gate	$(INS.dir)
1610Sstevel@tonic-gate
1620Sstevel@tonic-gate$(SUBDIRS):	FRC
1630Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
1640Sstevel@tonic-gate
1650Sstevel@tonic-gateFRC:
166