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