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