16185db85Sdougm# 26185db85Sdougm# CDDL HEADER START 36185db85Sdougm# 46185db85Sdougm# The contents of this file are subject to the terms of the 56185db85Sdougm# Common Development and Distribution License (the "License"). 66185db85Sdougm# You may not use this file except in compliance with the License. 76185db85Sdougm# 86185db85Sdougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 96185db85Sdougm# or http://www.opensolaris.org/os/licensing. 106185db85Sdougm# See the License for the specific language governing permissions 116185db85Sdougm# and limitations under the License. 126185db85Sdougm# 136185db85Sdougm# When distributing Covered Code, include this CDDL HEADER in each 146185db85Sdougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 156185db85Sdougm# If applicable, add the following below this CDDL HEADER, with the 166185db85Sdougm# fields enclosed by brackets "[]" replaced with your own identifying 176185db85Sdougm# information: Portions Copyright [yyyy] [name of copyright owner] 186185db85Sdougm# 196185db85Sdougm# CDDL HEADER END 206185db85Sdougm# 216185db85Sdougm# 22*888cdcceSToomas Soome# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 236185db85Sdougm# Use is subject to license terms. 246185db85Sdougm# 256185db85Sdougm 266185db85Sdougminclude ../../Makefile.cmd 27*888cdcceSToomas Soomeinclude ../../Makefile.ctf 286185db85Sdougm 29*888cdcceSToomas SoomePROG= sharectl 306185db85Sdougm 31*888cdcceSToomas SoomeCPPFLAGS += -I../sharemgr 32*888cdcceSToomas SoomeLDLIBS += -lshare -lumem 33*888cdcceSToomas Soome 34*888cdcceSToomas SoomeOBJS = $(PROG:%=%.o) shareutil.o 35*888cdcceSToomas Soome 36*888cdcceSToomas SoomeCLOBBERFILES = $(POFILE) $(POFILES) 37*888cdcceSToomas Soome 38*888cdcceSToomas SoomePOFILES = $(OBJS:.o=.po) 39*888cdcceSToomas SoomePOFILE = sharectl_cmd.po 406185db85Sdougm 416185db85Sdougm.KEEP_STATE: 426185db85Sdougm 43*888cdcceSToomas Soomeall: $(PROG) 44b6805bf7SGordon Ross 45*888cdcceSToomas Soome_msg: $(POFILE) 466185db85Sdougm 47*888cdcceSToomas Soome$(PROG): $(OBJS) 48*888cdcceSToomas Soome $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) 49*888cdcceSToomas Soome $(POST_PROCESS) 506185db85Sdougm 51*888cdcceSToomas Soomeinstall: all $(ROOTUSRSBINPROG) 526185db85Sdougm 53*888cdcceSToomas Soomeclean: 54*888cdcceSToomas Soome $(RM) $(OBJS) 55*888cdcceSToomas Soome 56*888cdcceSToomas Soomeinclude ../../Makefile.targ 57*888cdcceSToomas Soome 58*888cdcceSToomas Soome$(POFILE): $(POFILES) 59*888cdcceSToomas Soome $(RM) $@; cat $(POFILES) > $@ 60*888cdcceSToomas Soome 61*888cdcceSToomas Soome%.o: ../sharemgr/%.c 62*888cdcceSToomas Soome $(COMPILE.c) $< 63*888cdcceSToomas Soome $(POST_PROCESS_O) 64*888cdcceSToomas Soome 65*888cdcceSToomas Soome%.po: ../sharemgr/%.c 66*888cdcceSToomas Soome $(COMPILE.cpp) $< > $<.i 67*888cdcceSToomas Soome $(BUILD.po) 68