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.
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.
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]
22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2012 Milan Jurik. All rights reserved.
24 # Copyright 2016 Toomas Soome <tsoome@me.com>
53 SRCS
= $(OBJS
:%.o
=%.c
) \
55 ..
/common
/manifest_hash.c
57 POFILES
= $(OBJS
:%.o
=%.po
) \
59 ..
/common
/manifest_hash.po
61 include ..
/..
/Makefile.cmd
62 include ..
/..
/Makefile.ctf
64 ROOTCMDDIR
= $(ROOT
)/lib
/svc
/bin
66 $(NOT_RELEASE_BUILD
)CPPFLAGS
+= -DDEBUG
67 CFLAGS
+= $(CCVERBOSE
)
68 CPPFLAGS
+= -I.
-I..
/common
70 CERRWARN
+= -_gcc
=-Wno-parentheses
71 CERRWARN
+= -_gcc
=-Wno-unused-label
72 CERRWARN
+= -_gcc
=-Wno-switch
73 CERRWARN
+= -_gcc
=-Wno-uninitialized
75 $(OBJS
) := CPPFLAGS
+= -D_FILE_OFFSET_BITS
=64 -D_REENTRANT
77 proc.o
:= CPPFLAGS
+= -D_REENTRANT
80 $(COMPILE.c
) $(OUTPUT_OPTION
) $<
84 $(LINT.c
) $(OUTPUT_OPTION
) -c
$<
98 LDLIBS
+= $(LDLIBS_
$(MACH
)) -L
$(ROOT
)/lib
/fm
-lfmevent
103 # lint doesn't like the unused _umem_*_init()
104 # And lint thinks uadmin() is undefined.
105 lint_SRCS
:= LINTFLAGS
+= -U_FILE_OFFSET_BITS
-xerroff
=E_NAME_DEF_NOT_USED2
-u
106 lint_SRCS
:= CPPFLAGS
+= \
107 -I.
-I..
/common
-D_REENTRANT
-D_FILE_OFFSET_BITS
=64
111 .PARALLEL
: $(ALLOBJS
)
116 $(LINK.c
) -o
$@
$(ALLOBJS
) $(LDLIBS
) $(LDFLAGS
) $(CTFMERGE_HOOK
)
119 $(POFILE
): $(POFILES
)
120 cat
$(POFILES
) > $(POFILE
)
122 install: all $(ROOTCMD
)
129 include ..
/..
/Makefile.targ