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