xref: /illumos-gate/usr/src/cmd/mdb/intel/ia32/libfksmbfs/Makefile (revision fd23e79e54fa036de2121522ebfe7f566a9ad56a)
18329232eSGordon Ross#
28329232eSGordon Ross# CDDL HEADER START
38329232eSGordon Ross#
48329232eSGordon Ross# The contents of this file are subject to the terms of the
58329232eSGordon Ross# Common Development and Distribution License, Version 1.0 only
68329232eSGordon Ross# (the "License").  You may not use this file except in compliance
78329232eSGordon Ross# with the License.
88329232eSGordon Ross#
98329232eSGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
108329232eSGordon Ross# or http://www.opensolaris.org/os/licensing.
118329232eSGordon Ross# See the License for the specific language governing permissions
128329232eSGordon Ross# and limitations under the License.
138329232eSGordon Ross#
148329232eSGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
158329232eSGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
168329232eSGordon Ross# If applicable, add the following below this CDDL HEADER, with the
178329232eSGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
188329232eSGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
198329232eSGordon Ross#
208329232eSGordon Ross# CDDL HEADER END
218329232eSGordon Ross#
228329232eSGordon Ross#
238329232eSGordon Ross# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
248329232eSGordon Ross# Use is subject to license terms.
258329232eSGordon Ross#
268329232eSGordon Ross# Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
27*fd23e79eSGordon Ross# Copyright 2024 RackTop Systems, Inc.
288329232eSGordon Ross#
298329232eSGordon Ross
308329232eSGordon RossMODULE = libfksmbfs.so
318329232eSGordon RossMDBTGT = proc
328329232eSGordon Ross
338329232eSGordon RossMODSRCS = smbfs.c avl.c
348329232eSGordon Ross
358329232eSGordon Rossinclude ../../../../Makefile.cmd
368329232eSGordon Rossinclude ../../Makefile.ia32
378329232eSGordon Rossinclude ../../../Makefile.module
388329232eSGordon Ross
398329232eSGordon RossMODSRCS_DIR = ../../../common/modules/smbfs
408329232eSGordon RossGENUNIX_DIR = ../../../common/modules/genunix
418329232eSGordon Ross
428329232eSGordon Ross# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
43*fd23e79eSGordon RossCPPFLAGS.first += -I$(SRC)/lib/smbclnt/libfksmbfs/common
44*fd23e79eSGordon RossCPPFLAGS.first += -I$(SRC)/lib/smbclnt/libfknsmb/common
458329232eSGordon RossCPPFLAGS.first += -I$(SRC)/lib/libfakekernel/common
468329232eSGordon Ross
478329232eSGordon RossCPPFLAGS += -I$(SRC)/uts/common/fs/smbclnt/
488329232eSGordon RossCPPFLAGS += -I$(SRC)/uts/common
49*fd23e79eSGordon Ross# Note: -D_FAKE_KERNEL is in mdb:smbfs.c
508329232eSGordon Ross
518329232eSGordon RossCSTD=		$(CSTD_GNU99)
528329232eSGordon Ross
538329232eSGordon Rossdmod/%.o: $(GENUNIX_DIR)/%.c
548329232eSGordon Ross	$(COMPILE.c) -o $@ $<
558329232eSGordon Ross	$(CTFCONVERT_O)
568329232eSGordon Ross
578329232eSGordon Rossdmod/%.ln: $(GENUNIX_DIR)/%.c
588329232eSGordon Ross	$(LINT.c) -c $<
59