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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2011, 2016 by Delphix. All rights reserved.
24 #
25
26 LIBRARY = libdtrace.a
27 VERS = .1
28
29 LIBSRCS = \
30 dt_aggregate.c \
31 dt_as.c \
32 dt_buf.c \
33 dt_cc.c \
34 dt_cg.c \
35 dt_consume.c \
36 dt_decl.c \
37 dt_dis.c \
38 dt_dof.c \
39 dt_error.c \
40 dt_errtags.c \
41 dt_sugar.c \
42 dt_handle.c \
43 dt_ident.c \
44 dt_inttab.c \
115 CLEANFILES += ../common/net.sed ../common/net.d
116 CLEANFILES += ../common/errno.d ../common/signal.d
117 CLEANFILES += ../common/dt_errtags.c ../common/dt_names.c
118 CLEANFILES += ../common/sysevent.sed ../common/sysevent.d
119 CLEANFILES += ../common/tcp.sed ../common/tcp.d
120 CLEANFILES += ../common/udp.sed ../common/udp.d
121 CLEANFILES += $(LIBDAUDITOBJS) $(DRTIOBJS)
122
123 CLOBBERFILES += $(LIBDAUDIT) drti.o
124
125 CPPFLAGS += -I../common -I.
126 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
127 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
128
129 CERRWARN += -_gcc=-Wno-unused-label
130 CERRWARN += -_gcc=-Wno-unused-variable
131 CERRWARN += -_gcc=-Wno-parentheses
132 CERRWARN += -_gcc=-Wno-uninitialized
133 CERRWARN += -_gcc=-Wno-switch
134
135 YYCFLAGS =
136 LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
137 DRTILDLIBS = $(LDLIBS.lib) -lc
138 LIBDAUDITLIBS = $(LDLIBS.lib) -lmapmalloc -lc -lproc
139
140 yydebug := YYCFLAGS += -DYYDEBUG
141
142 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
143
144 LFLAGS = -t -v
145 YFLAGS = -d -v
146
147 ROOTDLIBDIR = $(ROOT)/usr/lib/dtrace
148 ROOTDLIBDIR64 = $(ROOT)/usr/lib/dtrace/64
149
150 ROOTDLIBS = $(DLIBSRCS:%=$(ROOTDLIBDIR)/%)
151 ROOTDOBJS = $(ROOTDLIBDIR)/$(DRTIOBJ) $(ROOTDLIBDIR)/$(LIBDAUDIT)
152 ROOTDOBJS64 = $(ROOTDLIBDIR64)/$(DRTIOBJ) $(ROOTDLIBDIR64)/$(LIBDAUDIT)
153
154 $(ROOTDLIBDIR)/%.d := FILEMODE=444
|
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 (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright (c) 2011, 2016 by Delphix. All rights reserved.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26
27 LIBRARY = libdtrace.a
28 VERS = .1
29
30 LIBSRCS = \
31 dt_aggregate.c \
32 dt_as.c \
33 dt_buf.c \
34 dt_cc.c \
35 dt_cg.c \
36 dt_consume.c \
37 dt_decl.c \
38 dt_dis.c \
39 dt_dof.c \
40 dt_error.c \
41 dt_errtags.c \
42 dt_sugar.c \
43 dt_handle.c \
44 dt_ident.c \
45 dt_inttab.c \
116 CLEANFILES += ../common/net.sed ../common/net.d
117 CLEANFILES += ../common/errno.d ../common/signal.d
118 CLEANFILES += ../common/dt_errtags.c ../common/dt_names.c
119 CLEANFILES += ../common/sysevent.sed ../common/sysevent.d
120 CLEANFILES += ../common/tcp.sed ../common/tcp.d
121 CLEANFILES += ../common/udp.sed ../common/udp.d
122 CLEANFILES += $(LIBDAUDITOBJS) $(DRTIOBJS)
123
124 CLOBBERFILES += $(LIBDAUDIT) drti.o
125
126 CPPFLAGS += -I../common -I.
127 CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
128 CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
129
130 CERRWARN += -_gcc=-Wno-unused-label
131 CERRWARN += -_gcc=-Wno-unused-variable
132 CERRWARN += -_gcc=-Wno-parentheses
133 CERRWARN += -_gcc=-Wno-uninitialized
134 CERRWARN += -_gcc=-Wno-switch
135
136 # not linted
137 SMATCH=off
138
139 YYCFLAGS =
140 LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
141 DRTILDLIBS = $(LDLIBS.lib) -lc
142 LIBDAUDITLIBS = $(LDLIBS.lib) -lmapmalloc -lc -lproc
143
144 yydebug := YYCFLAGS += -DYYDEBUG
145
146 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
147
148 LFLAGS = -t -v
149 YFLAGS = -d -v
150
151 ROOTDLIBDIR = $(ROOT)/usr/lib/dtrace
152 ROOTDLIBDIR64 = $(ROOT)/usr/lib/dtrace/64
153
154 ROOTDLIBS = $(DLIBSRCS:%=$(ROOTDLIBDIR)/%)
155 ROOTDOBJS = $(ROOTDLIBDIR)/$(DRTIOBJ) $(ROOTDLIBDIR)/$(LIBDAUDIT)
156 ROOTDOBJS64 = $(ROOTDLIBDIR64)/$(DRTIOBJ) $(ROOTDLIBDIR64)/$(LIBDAUDIT)
157
158 $(ROOTDLIBDIR)/%.d := FILEMODE=444
|