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>
25 # Copyright (c) 2018, Joyent, Inc.
54 SRCS
= $(OBJS
:%.o
=%.c
) \
56 ..
/common
/manifest_hash.c
58 POFILES
= $(OBJS
:%.o
=%.po
) \
60 ..
/common
/manifest_hash.po
62 include ..
/..
/Makefile.cmd
63 include ..
/..
/Makefile.ctf
65 ROOTCMDDIR
= $(ROOT
)/lib
/svc
/bin
67 $(NOT_RELEASE_BUILD
)CPPFLAGS
+= -DDEBUG
68 CPPFLAGS
+= -I.
-I..
/common
70 CERRWARN
+= -Wno-parentheses
71 CERRWARN
+= -Wno-unused-label
72 CERRWARN
+= -Wno-switch
73 CERRWARN
+= -Wno-uninitialized
75 # these look like real bugs here, but ...
76 SMOFF
+= impossible_mask
,signed_integer_overflow_check
79 $(COMPILE.c
) $(OUTPUT_OPTION
) $<
94 # we don't directly depend on anything in /usr/lib/fm, but libfmevent does
95 # (libtopo is there), so we must specify it here or we will link against
96 # libtopo on the running system
97 LDLIBS
+= $(LDLIBS_
$(MACH
)) -L
$(ROOT
)/lib
/fm
/$(MACH32
) -L
$(ROOT
)/usr
/lib
/fm
/$(MACH32
) -lfmevent
98 LDFLAGS
+= -R
/lib
/fm
/$(MACH32
)
104 .PARALLEL
: $(ALLOBJS
)
109 $(LINK.c
) -o
$@
$(ALLOBJS
) $(LDLIBS
) $(LDFLAGS
) $(CTFMERGE_HOOK
)
112 $(POFILE
): $(POFILES
)
113 cat
$(POFILES
) > $(POFILE
)
115 install: all $(ROOTCMD
)
121 include ..
/..
/Makefile.targ