xref: /illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/Makefile (revision a5f20e891eb1b5d2af2255e766a1dc3b35ac9936)
14bff34e3Sthurlow#
24bff34e3Sthurlow# CDDL HEADER START
34bff34e3Sthurlow#
44bff34e3Sthurlow# The contents of this file are subject to the terms of the
54bff34e3Sthurlow# Common Development and Distribution License (the "License").
64bff34e3Sthurlow# You may not use this file except in compliance with the License.
74bff34e3Sthurlow#
84bff34e3Sthurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94bff34e3Sthurlow# or http://www.opensolaris.org/os/licensing.
104bff34e3Sthurlow# See the License for the specific language governing permissions
114bff34e3Sthurlow# and limitations under the License.
124bff34e3Sthurlow#
134bff34e3Sthurlow# When distributing Covered Code, include this CDDL HEADER in each
144bff34e3Sthurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154bff34e3Sthurlow# If applicable, add the following below this CDDL HEADER, with the
164bff34e3Sthurlow# fields enclosed by brackets "[]" replaced with your own identifying
174bff34e3Sthurlow# information: Portions Copyright [yyyy] [name of copyright owner]
184bff34e3Sthurlow#
194bff34e3Sthurlow# CDDL HEADER END
204bff34e3Sthurlow#
214bff34e3Sthurlow#
2242d15982SGordon Ross# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
234bff34e3Sthurlow# Use is subject to license terms.
244bff34e3Sthurlow#
250463c800SGordon Ross# Copyright 2019 Nexenta by DDN, Inc. All rights reserved.
260463c800SGordon Ross#
2742d15982SGordon Ross
284bff34e3Sthurlow#
294bff34e3Sthurlow# cmd/fs.d/smbclnt/umount/Makefile
304bff34e3Sthurlow#
314bff34e3Sthurlow
324bff34e3SthurlowFSTYPE=		smbfs
334bff34e3SthurlowLIBPROG=	umount
344bff34e3SthurlowROOTFS_PROG=	$(LIBPROG)
354bff34e3Sthurlow
364bff34e3Sthurlowinclude		../../Makefile.fstype
374bff34e3Sthurlow
384bff34e3SthurlowCOMMON=		$(FSLIB)
394bff34e3SthurlowOBJS=		$(LIBPROG).o $(COMMON)
404bff34e3SthurlowSRCS=		$(LIBPROG).c $(FSLIBSRC)
4142d15982SGordon Ross
420463c800SGordon Ross$(ROOTLIBFSTYPE)/umount := FILEMODE= 0555
434bff34e3Sthurlow
444bff34e3SthurlowCPPFLAGS += -I../.. -I../lib
454bff34e3SthurlowCFLAGS += $(CCVERBOSE)
464bff34e3Sthurlow
474bff34e3Sthurlow#
484bff34e3Sthurlow# Message catalog
494bff34e3Sthurlow#
50b6805bf7SGordon RossPOFILE=	$(LIBPROG).po
514bff34e3Sthurlowcatalog: $(POFILE)
524bff34e3Sthurlow
53b6805bf7SGordon Ross$(POFILE):      $(SRCS)
54b6805bf7SGordon Ross	$(RM) $@
55b6805bf7SGordon Ross	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
56b6805bf7SGordon Ross	$(XGETTEXT) $(XGETFLAGS)        $(POFILE).i
57b6805bf7SGordon Ross	sed "/^domain/d"        messages.po     > $@
58b6805bf7SGordon Ross	$(RM) messages.po $(POFILE).i
59b6805bf7SGordon Ross
60b6805bf7SGordon Ross$(LIBPROG):	$(OBJS)
61b6805bf7SGordon Ross		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
62b6805bf7SGordon Ross		$(POST_PROCESS)
634bff34e3Sthurlow
644bff34e3Sthurlowclean:
65*bf03c6b6SToomas Soome	$(RM) $(OBJS)
66