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 2018 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 smb2_rq.o \ 61 smb2_sign.o \ 62 smb2_smb.o \ 63 subr_mchain.o 64 65OBJECTS = \ 66 $(OBJS_LOCAL) \ 67 $(OBJS_NSMB) 68 69include ../../../Makefile.lib 70include ../../Makefile.lib 71 72# Force SOURCEDEBUG 73CSOURCEDEBUGFLAGS = -g 74CCSOURCEDEBUGFLAGS = -g 75STRIP_STABS = : 76 77# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc. 78# Also, like Makefile.uts, reset CPPFLAGS 79CPPFLAGS.first += -I../../../libfakekernel/common 80CPPFLAGS.first += -I../common 81CPPFLAGS= $(CPPFLAGS.first) 82 83INCS += -I$(SRC)/uts/common/fs/smbclnt 84INCS += -I$(SRC)/uts/common 85 86CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL 87CPPFLAGS += -D_FILE_OFFSET_BITS=64 88# Always want DEBUG here 89CPPFLAGS += -DDEBUG 90 91CERRWARN += -_gcc=-Wno-switch 92 93LDLIBS += $(MACH_LDLIBS) 94LDLIBS += -lfakekernel -lpkcs11 -lnsl -lc 95 96NSMB_DIR=$(SRC)/uts/common/fs/smbclnt/netsmb 97SRCS= $(OBJS_LOCAL:%.o=$(SRCDIR)/%.c) \ 98 $(OBJS_NSMB:%.o=$(NSMB_DIR)/%.c) 99 100all: 101 102pics/%.o: $(NSMB_DIR)/%.c 103 $(COMPILE.c) -o $@ $< 104 $(POST_PROCESS_O) 105 106.KEEP_STATE: 107 108include ../../Makefile.targ 109include ../../../Makefile.targ 110