xref: /titanic_41/usr/src/cmd/mdb/sparc/v9/libfksmbsrv/Makefile (revision 5e2c3ae0c70f6eb4a42ae670882aabac983cb5f1)
1*5e2c3ae0SGary Mills#
2*5e2c3ae0SGary Mills# CDDL HEADER START
3*5e2c3ae0SGary Mills#
4*5e2c3ae0SGary Mills# The contents of this file are subject to the terms of the
5*5e2c3ae0SGary Mills# Common Development and Distribution License, Version 1.0 only
6*5e2c3ae0SGary Mills# (the "License").  You may not use this file except in compliance
7*5e2c3ae0SGary Mills# with the License.
8*5e2c3ae0SGary Mills#
9*5e2c3ae0SGary Mills# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*5e2c3ae0SGary Mills# or http://www.opensolaris.org/os/licensing.
11*5e2c3ae0SGary Mills# See the License for the specific language governing permissions
12*5e2c3ae0SGary Mills# and limitations under the License.
13*5e2c3ae0SGary Mills#
14*5e2c3ae0SGary Mills# When distributing Covered Code, include this CDDL HEADER in each
15*5e2c3ae0SGary Mills# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*5e2c3ae0SGary Mills# If applicable, add the following below this CDDL HEADER, with the
17*5e2c3ae0SGary Mills# fields enclosed by brackets "[]" replaced with your own identifying
18*5e2c3ae0SGary Mills# information: Portions Copyright [yyyy] [name of copyright owner]
19*5e2c3ae0SGary Mills#
20*5e2c3ae0SGary Mills# CDDL HEADER END
21*5e2c3ae0SGary Mills#
22*5e2c3ae0SGary Mills#
23*5e2c3ae0SGary Mills# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*5e2c3ae0SGary Mills# Use is subject to license terms.
25*5e2c3ae0SGary Mills#
26*5e2c3ae0SGary Mills# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
27*5e2c3ae0SGary Mills# Copyright 2015 Gary Mills
28*5e2c3ae0SGary Mills#
29*5e2c3ae0SGary Mills
30*5e2c3ae0SGary MillsMODULE = libfksmbsrv.so
31*5e2c3ae0SGary MillsMDBTGT = proc
32*5e2c3ae0SGary Mills
33*5e2c3ae0SGary MillsMODSRCS = smbsrv.c list.c
34*5e2c3ae0SGary Mills
35*5e2c3ae0SGary Millsinclude ../../../../Makefile.cmd
36*5e2c3ae0SGary Millsinclude ../../../../Makefile.cmd.64
37*5e2c3ae0SGary Millsinclude ../../Makefile.sparcv9
38*5e2c3ae0SGary Millsinclude ../../../Makefile.module
39*5e2c3ae0SGary Mills
40*5e2c3ae0SGary MillsMODSRCS_DIR = ../../../common/modules/smbsrv
41*5e2c3ae0SGary MillsGENUNIX_DIR = ../../../common/modules/genunix
42*5e2c3ae0SGary Mills
43*5e2c3ae0SGary Mills# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
44*5e2c3ae0SGary MillsCPPFLAGS.first += -I../../../../../lib/smbsrv/libfksmbsrv/common
45*5e2c3ae0SGary MillsCPPFLAGS.first += -I../../../../../lib/libfakekernel/common
46*5e2c3ae0SGary Mills
47*5e2c3ae0SGary MillsCPPFLAGS += -I../../../../../uts/common
48*5e2c3ae0SGary Mills
49*5e2c3ae0SGary MillsC99MODE=	-xc99=%all
50*5e2c3ae0SGary MillsC99LMODE=	-Xc99=%all
51*5e2c3ae0SGary Mills
52*5e2c3ae0SGary Millsdmod/%.o: $(GENUNIX_DIR)/%.c
53*5e2c3ae0SGary Mills	$(COMPILE.c) -o $@ $<
54*5e2c3ae0SGary Mills	$(CTFCONVERT_O)
55*5e2c3ae0SGary Mills
56*5e2c3ae0SGary Millsdmod/%.ln: $(GENUNIX_DIR)/%.c
57*5e2c3ae0SGary Mills	$(LINT.c) -c $<
58