1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# Copyright 2017 Nexenta Systems, Inc. All rights reserved. 26# 27 28LIBRARY = libfknsmb.a 29VERS = .1 30 31OBJS_LOCAL = \ 32 fksmb_sign_pkcs.o \ 33 fake_ddi.o \ 34 fake_fio.o \ 35 fake_kmem.o \ 36 fake_ktli.o \ 37 fake_pkey.o \ 38 fake_policy.o \ 39 fake_sdt.o \ 40 fake_softc.o \ 41 fake_stream.o \ 42 fake_strsubr.o 43 44# See also: $SRC/uts/common/Makefile.files 45# NB: Intentionally ommitted, compared w/ the above: 46# smb_dev.o smb_pass.o smb_sign_kcf.o 47# 48OBJS_NSMB = \ 49 smb_dev.o \ 50 smb_conn.o \ 51 smb_iod.o \ 52 smb_rq.o \ 53 smb_sign.o \ 54 smb_smb.o \ 55 smb_subrs.o \ 56 smb_time.o \ 57 smb_tran.o \ 58 smb_trantcp.o \ 59 smb_usr.o \ 60 subr_mchain.o 61 62OBJECTS = \ 63 $(OBJS_LOCAL) \ 64 $(OBJS_NSMB) 65 66include ../../../Makefile.lib 67include ../../Makefile.lib 68 69# Force SOURCEDEBUG 70CSOURCEDEBUGFLAGS = -g 71CCSOURCEDEBUGFLAGS = -g 72STRIP_STABS = : 73 74# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc. 75# Also, like Makefile.uts, reset CPPFLAGS 76CPPFLAGS.first += -I../../../libfakekernel/common 77CPPFLAGS.first += -I../common 78CPPFLAGS= $(CPPFLAGS.first) 79 80INCS += -I$(SRC)/uts/common/fs/smbclnt 81INCS += -I$(SRC)/uts/common 82 83CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL 84CPPFLAGS += -D_FILE_OFFSET_BITS=64 85# Always want DEBUG here 86CPPFLAGS += -DDEBUG 87 88CERRWARN += -_gcc=-Wno-switch 89 90LDLIBS += $(MACH_LDLIBS) 91LDLIBS += -lfakekernel -lpkcs11 -lnsl -lc 92 93NSMB_DIR=$(SRC)/uts/common/fs/smbclnt/netsmb 94SRCS= $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \ 95 $(OBJS_NSMB:%.o=$(NSMB_DIR)/%.c) 96 97all: 98 99pics/%.o: $(NSMB_DIR)/%.c 100 $(COMPILE.c) -o $@ $< 101 $(POST_PROCESS_O) 102 103.KEEP_STATE: 104 105include ../../Makefile.targ 106include ../../../Makefile.targ 107