2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Nexenta Systems, Inc. All rights reserved.
16 LIBRARY = libfakekernel.a
40 include ../../Makefile.lib
44 LIBS = $(DYNLIB) $(LINTLIB)
45 SRCS= $(COBJS:%.o=$(SRCDIR)/%.c)
47 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
52 # Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
53 CPPFLAGS.first += -I../common
55 CFLAGS += $(CCVERBOSE)
56 CPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
57 CPPFLAGS += -D_FILE_OFFSET_BITS=64
59 # Could make this $(NOT_RELEASE_BUILD) but as the main purpose of
60 # this library is for debugging, let's always define DEBUG here.
63 LINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
64 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
65 LINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
67 LDLIBS += -lumem -lcryptoutil -lsocket -lc
75 include ../../Makefile.targ