xref: /illumos-gate/usr/src/test/smbclient-tests/cmd/Makefile.cmd (revision 1e56f352c1c208679012bca47d552e127f5b1072)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
14# Copyright (c) 2018, Joyent, Inc.
15#
16
17include		$(SRC)/test/Makefile.com
18
19OBJS=		$(PROG:%=%.o)
20
21ROOTPROG=	$(PROG:%=$(ROOTBINDIR)/%)
22$(ROOTPROG) :=	FILEMODE = 0555
23
24CPPFLAGS +=	-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
25
26# needs work
27SMOFF += all_func_returns,leaks
28
29all:		$(PROG)
30
31$(PROG):	$(OBJS)
32		$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
33		$(POST_PROCESS)
34
35%.o:		%.c
36		$(COMPILE.c) $<
37		$(POST_PROCESS_O)
38
39install:	all $(ROOTPROG)
40
41clobber:	clean
42		-$(RM) $(PROG)
43
44clean:
45		-$(RM) $(OBJS)
46
47$(ROOTPROG):	$(ROOTBINDIR) $(PROG)
48
49$(ROOTBINDIR):
50		$(INS.dir)
51
52$(ROOTBINDIR)/%: %
53		$(INS.file)
54