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 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
26 #
27
28 .KEEP_STATE:
29 .SUFFIXES:
30
31 PROG = kmdbmod
32
33 include ../Makefile.kmdb
34 include ../../Makefile.kmdb
35 include ../../../Makefile.versions
36 include ../../../Makefile.tools
37 include ../../../Makefile.kmdb.files
38
39 OBJS += mdb_lex.o mdb_grammar.o
40
41 .NO_PARALLEL:
42 .PARALLEL: kmdb_modlinktest.o kmdb_terminfo.c $(ALLOBJS) $(ALLOBJS:%.o=%.ln)
43
44 SRCINCDIRS += . .. ../.. ../../../common ../../../common/libstand
45 OSINCDIRS += $(SRC)/uts/$(MMU) $(SRC)/uts/$(ISADIR)
100
101 CERRWARN += -_gcc=-Wno-uninitialized
102 CERRWARN += -_gcc=-Wno-unused-label
103 CERRWARN += -_gcc=-Wno-char-subscripts
104 CERRWARN += -_gcc=-Wno-clobbered
105 CERRWARN += -_gcc=-Wno-unused-variable
106 CERRWARN += -_gcc=-Wno-parentheses
107
108 MAPFILE = mapfile
109 MAPFILE_INTERMEDIATE = $(MAPFILE).i
110 MAPFILE_TEMPLATE = ../../../common/kmdb/mapfile_skel
111 MAPFILE_SOURCES_COMMON = \
112 ../../../common/kmdb/kmdb_dpi.h \
113 ../../../common/kmdb/kmdb_kctl.h \
114 ../../../common/kmdb/kmdb_kdi.h \
115 ../../../common/kmdb/kmdb_wr.h \
116 ../../../common/mdb/mdb_ctf.h \
117 ../../../common/mdb/mdb_ks.h \
118 ../../../common/mdb/mdb_modapi.h \
119 ../../../common/mdb/mdb_param.h \
120 ../../../common/mdb/mdb_whatis.h
121
122 mdb_lex.o mdb_grammar.o := CCVERBOSE =
123
124 kmdb_ctf_open.o kmdb_ctf_open.ln := CPPFLAGS += -I$(SRC)/common/ctf
125
126 PROMTGTS = $(PROMOBJS) $(PROMOBJS:%.o=%.ln)
127 VERSTGTS = $(VERSOBJS) $(VERSOBJS:%.o=%.ln)
128 KCTLTGTS = $(KCTLOBJS) $(KCTLOBJS:%.o=%.ln)
129
130 $(PROMTGTS) := CPPFLAGS += -D_BOOT -D_KERNEL -D_MACHDEP $(PROMINCDIRS:%=-I%) \
131 -Dassfail=kmdb_prom_assfail
132
133 $(VERSTGTS) := CPPFLAGS += -DKMDB_VERSION='$(KMDB_VERSION)'
134
135 $(KCTLTGTS) := CPPFLAGS += -D_KERNEL
136 $(KCTLTGTS) := ASFLAGS += -D_KERNEL
137
138 ffs.o ffs.ln := CPPFLAGS += -Dffs=mdb_ffs
139
140 $(ROOTMISC) $(ROOTMISC64) := FILEMODE = 0755
|
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 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright 2011, 2015 Nexenta Systems, Inc. All rights reserved.
26 #
27
28 .KEEP_STATE:
29 .SUFFIXES:
30
31 PROG = kmdbmod
32
33 include ../Makefile.kmdb
34 include ../../Makefile.kmdb
35 include ../../../Makefile.versions
36 include ../../../Makefile.tools
37 include ../../../Makefile.kmdb.files
38
39 OBJS += mdb_lex.o mdb_grammar.o
40
41 .NO_PARALLEL:
42 .PARALLEL: kmdb_modlinktest.o kmdb_terminfo.c $(ALLOBJS) $(ALLOBJS:%.o=%.ln)
43
44 SRCINCDIRS += . .. ../.. ../../../common ../../../common/libstand
45 OSINCDIRS += $(SRC)/uts/$(MMU) $(SRC)/uts/$(ISADIR)
100
101 CERRWARN += -_gcc=-Wno-uninitialized
102 CERRWARN += -_gcc=-Wno-unused-label
103 CERRWARN += -_gcc=-Wno-char-subscripts
104 CERRWARN += -_gcc=-Wno-clobbered
105 CERRWARN += -_gcc=-Wno-unused-variable
106 CERRWARN += -_gcc=-Wno-parentheses
107
108 MAPFILE = mapfile
109 MAPFILE_INTERMEDIATE = $(MAPFILE).i
110 MAPFILE_TEMPLATE = ../../../common/kmdb/mapfile_skel
111 MAPFILE_SOURCES_COMMON = \
112 ../../../common/kmdb/kmdb_dpi.h \
113 ../../../common/kmdb/kmdb_kctl.h \
114 ../../../common/kmdb/kmdb_kdi.h \
115 ../../../common/kmdb/kmdb_wr.h \
116 ../../../common/mdb/mdb_ctf.h \
117 ../../../common/mdb/mdb_ks.h \
118 ../../../common/mdb/mdb_modapi.h \
119 ../../../common/mdb/mdb_param.h \
120 ../../../common/mdb/mdb_whatis.h \
121 $(SRC)/uts/common/sys/list.h
122
123 mdb_lex.o mdb_grammar.o := CCVERBOSE =
124
125 kmdb_ctf_open.o kmdb_ctf_open.ln := CPPFLAGS += -I$(SRC)/common/ctf
126
127 PROMTGTS = $(PROMOBJS) $(PROMOBJS:%.o=%.ln)
128 VERSTGTS = $(VERSOBJS) $(VERSOBJS:%.o=%.ln)
129 KCTLTGTS = $(KCTLOBJS) $(KCTLOBJS:%.o=%.ln)
130
131 $(PROMTGTS) := CPPFLAGS += -D_BOOT -D_KERNEL -D_MACHDEP $(PROMINCDIRS:%=-I%) \
132 -Dassfail=kmdb_prom_assfail
133
134 $(VERSTGTS) := CPPFLAGS += -DKMDB_VERSION='$(KMDB_VERSION)'
135
136 $(KCTLTGTS) := CPPFLAGS += -D_KERNEL
137 $(KCTLTGTS) := ASFLAGS += -D_KERNEL
138
139 ffs.o ffs.ln := CPPFLAGS += -Dffs=mdb_ffs
140
141 $(ROOTMISC) $(ROOTMISC64) := FILEMODE = 0755
|