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 "%Z%%M% %I% %E% SMI" 24 # 25 # Copyright 2005 Sun Microsystems, Inc. All rights reserved. 26 # Use is subject to license terms. 27 # 28 # cmd/cmd-inet/usr.sadm/dhcpmgr/com/sun/dhcpmgr/bridge/Makefile 29 # 30 31 JNIHDR_FILES = com_sun_dhcpmgr_bridge_Bridge.h 32 33 CLASSFILES = Bridge.class \ 34 BridgeException.class \ 35 HostExistsException.class \ 36 NoHostsEntryException.class \ 37 NoEntryException.class \ 38 ExistsException.class \ 39 NoTableException.class \ 40 TableExistsException.class \ 41 NoDefaultsException.class \ 42 NotRunningException.class \ 43 InvalidRsrcException.class \ 44 InvalidPathException.class \ 45 DsymException.class \ 46 WordexpException.class \ 47 ResourceStrings.class 48 49 JNICLASSFILES = Bridge.class 50 51 include $(SRC)/lib/Makefile.lib 52 53 CLASSPATH= $(SRC)/cmd/cmd-inet/usr.sadm/dhcpmgr 54 55 JAVAFILES = $(CLASSFILES:.class=.java) 56 57 MSGDIR = $(ROOT)/usr/share/lib/locale/com/sun/dhcpmgr/bridge 58 MSGDIRS = $(ROOT)/usr/share/lib/locale \ 59 $(ROOT)/usr/share/lib/locale/com \ 60 $(ROOT)/usr/share/lib/locale/com/sun \ 61 $(ROOT)/usr/share/lib/locale/com/sun/dhcpmgr \ 62 $(MSGDIR) 63 64 MSGFILES = ResourceBundle.properties 65 MSGS = $(MSGFILES:%=$(MSGDIR)/%) 66 67 CLEANFILES= *.class $(JNIHDR_FILES) 68 CLOBBERFILES= 69 70 .KEEP_STATE: 71 72 all: $(CLASSFILES) $(JNIHDR_FILES) 73 74 install: all 75 76 # 77 # Build jni header file 78 # Use $@ instead of the "unreliable" $* 79 # 80 $(JNIHDR_FILES): $(JNICLASSFILES) 81 $(JAVAH) -jni -classpath $(CLASSPATH) \ 82 `$(ECHO) $@ | sed 's/.h$$//' | tr _ .` 83 84 _msg: $(MSGDIRS) $(MSGS) 85 86 $(MSGDIR)/%: % 87 $(INS.file) 88 89 $(MSGDIRS): 90 $(INS.dir) 91 92 include $(SRC)/lib/Makefile.targ