xref: /illumos-gate/usr/src/cmd/smbsrv/smbadm/Makefile (revision 821b358b)
1da6c28aaSamw#
2da6c28aaSamw# CDDL HEADER START
3da6c28aaSamw#
4da6c28aaSamw# The contents of this file are subject to the terms of the
5da6c28aaSamw# Common Development and Distribution License (the "License").
6da6c28aaSamw# You may not use this file except in compliance with the License.
7da6c28aaSamw#
8da6c28aaSamw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9da6c28aaSamw# or http://www.opensolaris.org/os/licensing.
10da6c28aaSamw# See the License for the specific language governing permissions
11da6c28aaSamw# and limitations under the License.
12da6c28aaSamw#
13da6c28aaSamw# When distributing Covered Code, include this CDDL HEADER in each
14da6c28aaSamw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15da6c28aaSamw# If applicable, add the following below this CDDL HEADER, with the
16da6c28aaSamw# fields enclosed by brackets "[]" replaced with your own identifying
17da6c28aaSamw# information: Portions Copyright [yyyy] [name of copyright owner]
18da6c28aaSamw#
19da6c28aaSamw# CDDL HEADER END
20da6c28aaSamw#
21da6c28aaSamw#
2296a62adaSjoyce mcintosh# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23da6c28aaSamw# Use is subject to license terms.
24da6c28aaSamw#
252c54ade0SYuri Pankov# Copyright 2019 Nexenta by DDN, Inc.  All rights reserved.
265661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
27b3700b07SGordon Ross#
28da6c28aaSamw
29da6c28aaSamwPROG=	smbadm
30da6c28aaSamwSRCS=	smbadm.c
31da6c28aaSamw
32da6c28aaSamwinclude ../../Makefile.cmd
336f1fa39eSGordon Rossinclude ../../Makefile.ctf
34da6c28aaSamwinclude ../Makefile.smbsrv.defs
35da6c28aaSamw
36*821b358bSJason KingOBJS=	smbadm.o smbinfo.o
37*821b358bSJason King
38*821b358bSJason KingLDLIBS += -L$(ROOT)/usr/lib/smbsrv -lsmb -lsmbns \
39*821b358bSJason King		 -lsecdb -lofmt -lcmdutils -lumem
4067e3a03eSrieLDFLAGS += -R/usr/lib/smbsrv
4155bf511dSas
427014882cSRichard Lowe.KEEP_STATE:
437014882cSRichard Lowe
445661bb76SJohn LevonSMOFF += free
455661bb76SJohn Levon
46da6c28aaSamwall:		$(PROG)
47da6c28aaSamw
48da6c28aaSamwclean:
49da6c28aaSamw	$(RM) $(OBJS)
50da6c28aaSamw
51da6c28aaSamwlint:		lint_SRCS
52da6c28aaSamw
53da6c28aaSamw$(PROG):	$(OBJS)
54da6c28aaSamw	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
55da6c28aaSamw	$(POST_PROCESS)
56da6c28aaSamw
57da6c28aaSamwinclude ../../Makefile.targ
58da6c28aaSamw
59da6c28aaSamwinstall: all .WAIT $(ROOTUSRSBINPROG)
60