xref: /titanic_52/usr/src/lib/libfakekernel/Makefile.com (revision b819cea2f73f98c5662230cc9affc8cc84f77fcf)
1*b819cea2SGordon Ross#
2*b819cea2SGordon Ross# This file and its contents are supplied under the terms of the
3*b819cea2SGordon Ross# Common Development and Distribution License ("CDDL"), version 1.0.
4*b819cea2SGordon Ross# You may only use this file in accordance with the terms of version
5*b819cea2SGordon Ross# 1.0 of the CDDL.
6*b819cea2SGordon Ross#
7*b819cea2SGordon Ross# A full copy of the text of the CDDL should have accompanied this
8*b819cea2SGordon Ross# source.  A copy of the CDDL is also available via the Internet at
9*b819cea2SGordon Ross# http://www.illumos.org/license/CDDL.
10*b819cea2SGordon Ross#
11*b819cea2SGordon Ross
12*b819cea2SGordon Ross#
13*b819cea2SGordon Ross# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
14*b819cea2SGordon Ross#
15*b819cea2SGordon Ross
16*b819cea2SGordon RossLIBRARY =	libfakekernel.a
17*b819cea2SGordon RossVERS =		.1
18*b819cea2SGordon Ross
19*b819cea2SGordon RossCOBJS = \
20*b819cea2SGordon Ross	cred.o \
21*b819cea2SGordon Ross	clock.o \
22*b819cea2SGordon Ross	cond.o \
23*b819cea2SGordon Ross	copy.o \
24*b819cea2SGordon Ross	kiconv.o \
25*b819cea2SGordon Ross	kmem.o \
26*b819cea2SGordon Ross	kmisc.o \
27*b819cea2SGordon Ross	ksocket.o \
28*b819cea2SGordon Ross	kstat.o \
29*b819cea2SGordon Ross	mutex.o \
30*b819cea2SGordon Ross	printf.o \
31*b819cea2SGordon Ross	random.o \
32*b819cea2SGordon Ross	rwlock.o \
33*b819cea2SGordon Ross	sema.o \
34*b819cea2SGordon Ross	taskq.o \
35*b819cea2SGordon Ross	thread.o \
36*b819cea2SGordon Ross	uio.o
37*b819cea2SGordon Ross
38*b819cea2SGordon RossOBJECTS=	$(COBJS)
39*b819cea2SGordon Ross
40*b819cea2SGordon Rossinclude ../../Makefile.lib
41*b819cea2SGordon Ross
42*b819cea2SGordon RossSRCDIR=		../common
43*b819cea2SGordon Ross
44*b819cea2SGordon RossLIBS =		$(DYNLIB) $(LINTLIB)
45*b819cea2SGordon RossSRCS=   $(COBJS:%.o=$(SRCDIR)/%.c)
46*b819cea2SGordon Ross
47*b819cea2SGordon Ross$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
48*b819cea2SGordon Ross
49*b819cea2SGordon RossC99MODE =       -xc99=%all
50*b819cea2SGordon RossC99LMODE =      -Xc99=%all
51*b819cea2SGordon Ross
52*b819cea2SGordon Ross# Note: need our sys includes _before_ ENVCPPFLAGS, proto etc.
53*b819cea2SGordon RossCPPFLAGS.first += -I../common
54*b819cea2SGordon Ross
55*b819cea2SGordon RossCFLAGS +=	$(CCVERBOSE)
56*b819cea2SGordon RossCPPFLAGS += $(INCS) -D_REENTRANT -D_FAKE_KERNEL
57*b819cea2SGordon RossCPPFLAGS += -D_FILE_OFFSET_BITS=64
58*b819cea2SGordon Ross
59*b819cea2SGordon Ross# Could make this $(NOT_RELEASE_BUILD) but as the main purpose of
60*b819cea2SGordon Ross# this library is for debugging, let's always define DEBUG here.
61*b819cea2SGordon RossCPPFLAGS += -DDEBUG
62*b819cea2SGordon Ross
63*b819cea2SGordon RossLINTCHECKFLAGS += -erroff=E_INCONS_ARG_DECL2
64*b819cea2SGordon RossLINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
65*b819cea2SGordon RossLINTCHECKFLAGS += -erroff=E_INCONS_VAL_TYPE_USED2
66*b819cea2SGordon Ross
67*b819cea2SGordon RossLDLIBS += -lumem -lcryptoutil -lsocket -lc
68*b819cea2SGordon Ross
69*b819cea2SGordon Ross.KEEP_STATE:
70*b819cea2SGordon Ross
71*b819cea2SGordon Rossall: $(LIBS)
72*b819cea2SGordon Ross
73*b819cea2SGordon Rosslint: lintcheck
74*b819cea2SGordon Ross
75*b819cea2SGordon Rossinclude ../../Makefile.targ
76