xref: /titanic_50/usr/src/cmd/fs.d/smbclnt/test/Makefile (revision 85e6b6747d07050e01ec91acef2453655821f9ab)
1430b4c46SGordon Ross#
2430b4c46SGordon Ross# CDDL HEADER START
3430b4c46SGordon Ross#
4430b4c46SGordon Ross# The contents of this file are subject to the terms of the
5430b4c46SGordon Ross# Common Development and Distribution License (the "License").
6430b4c46SGordon Ross# You may not use this file except in compliance with the License.
7430b4c46SGordon Ross#
8430b4c46SGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9430b4c46SGordon Ross# or http://www.opensolaris.org/os/licensing.
10430b4c46SGordon Ross# See the License for the specific language governing permissions
11430b4c46SGordon Ross# and limitations under the License.
12430b4c46SGordon Ross#
13430b4c46SGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
14430b4c46SGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15430b4c46SGordon Ross# If applicable, add the following below this CDDL HEADER, with the
16430b4c46SGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
17430b4c46SGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
18430b4c46SGordon Ross#
19430b4c46SGordon Ross# CDDL HEADER END
20430b4c46SGordon Ross#
21430b4c46SGordon Ross#
22430b4c46SGordon Ross# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23430b4c46SGordon Ross# Use is subject to license terms.
24*85e6b674SGordon Ross# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
25430b4c46SGordon Ross#
26430b4c46SGordon Ross
27*85e6b674SGordon Rossinclude $(SRC)/cmd/Makefile.cmd
28430b4c46SGordon Ross
29*85e6b674SGordon RossPROG=	srvenum srvinfo tconn
30*85e6b674SGordon RossOBJS = $(PROG:%=%.o)
31*85e6b674SGordon RossSRCS = $(OBJS:%.o=%.c)
32430b4c46SGordon Ross
33*85e6b674SGordon Ross# ROOTFS_PROG=	$(LIBPROG)
34*85e6b674SGordon Ross# include		../../Makefile.fstype
35430b4c46SGordon Ross
36*85e6b674SGordon RossROOTOPTPKG = $(ROOT)/opt/smbcl-tests
37*85e6b674SGordon RossTESTDIR = $(ROOTOPTPKG)/tests
38*85e6b674SGordon RossINST_CMDS = $(PROG:%=$(TESTDIR)/%)
39*85e6b674SGordon Ross
40*85e6b674SGordon Ross# OBJS=	$(LIBPROG).o
41*85e6b674SGordon Ross# SRCS=	$(LIBPROG).c $(FSLIBSRC)
42*85e6b674SGordon Ross
43*85e6b674SGordon RossCPPFLAGS += -I../../../../uts/common
44*85e6b674SGordon RossCPPFLAGS += -I../../../../lib/libsmbfs
45*85e6b674SGordon Ross
46*85e6b674SGordon RossLDLIBS += -R '$$ORIGIN/../../../usr/lib'
47430b4c46SGordon RossLDLIBS += -lsmbfs
48*85e6b674SGordon RossLINTLIBS= -L$(ROOTLIB) -lsmbfs
49430b4c46SGordon Ross
50430b4c46SGordon RossCFLAGS += $(CCVERBOSE)
517014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
52430b4c46SGordon RossC99MODE= $(C99_ENABLE)
53430b4c46SGordon Ross
54*85e6b674SGordon RossLINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
55430b4c46SGordon Ross
56*85e6b674SGordon Ross# CLOBBERFILES	+= $(LIBPROG)
57430b4c46SGordon Ross
58*85e6b674SGordon Rossall:	$(PROG)
59430b4c46SGordon Ross
60*85e6b674SGordon Rossinstall: all $(ROOTOPTPKG) $(TESTDIR) $(INST_CMDS)
61430b4c46SGordon Ross
62*85e6b674SGordon Rosslint:
63*85e6b674SGordon Ross	for f in $(SRCS); do ;\
64*85e6b674SGordon Ross	$(LINT.c) $$f $(LINTLIBS) ; done
65*85e6b674SGordon Ross
66*85e6b674SGordon Rossclobber: clean
67*85e6b674SGordon Ross	-$(RM) $(PROG)
68430b4c46SGordon Ross
69430b4c46SGordon Rossclean:
70*85e6b674SGordon Ross	-$(RM) $(OBJS)
71*85e6b674SGordon Ross
72*85e6b674SGordon Ross$(ROOTOPTPKG):
73*85e6b674SGordon Ross	$(INS.dir)
74*85e6b674SGordon Ross
75*85e6b674SGordon Ross$(TESTDIR):
76*85e6b674SGordon Ross	$(INS.dir)
77*85e6b674SGordon Ross
78*85e6b674SGordon Ross$(TESTDIR)/%: %
79*85e6b674SGordon Ross	$(INS.file)
80430b4c46SGordon Ross
81430b4c46SGordon Ross.KEEP_STATE:
82