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.
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 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24
25 $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN)
26
27 ITM = geniconvtbl.so
28 PROG = geniconvtbl
29
30 SRCSH1 = iconv_tm.h hash.h
31 SRCCH1 = itmcomp.h itm_util.h maptype.h
32 SRCSC1 = itmcomp.c assemble.c disassemble.c itm_util.c
33 SRCY1 = itm_comp.y
34 SRCL1 = itm_comp.l
35 SRCI1 = geniconvtbl.c
36
37
38 YTABC = y.tab.c
39 YTABH = y.tab.h
40 LEXYY = lex.yy.c
41 YOUT = y.output
42 MAPFILE = ../mapfile
43
75
76 #
77 # definition for some useful target like clean,
78 OBJS = $(SRCSC1:%.c=%.o) $(YTABC:.c=.o) $(LEXYY:.c=.o)
79
80 CHECKHDRS = $(HDRS%.h=%.check)
81
82 CLOBBERFILES= $(ITM) $(SRCYC)
83 CLEANFILES = $(OBJS) $(YTABC) $(YTABH) $(LEXYY) $(YOUT) \
84 $(POFILES) $(POFILE)
85
86 CPPFLAGS += -I. -I..
87 CERRWARN += -_gcc=-Wno-uninitialized
88 CERRWARN += -_gcc=-Wno-unused-label
89 CERRWARN += -_gcc=-Wno-switch
90 CERRWARN += -_gcc=-Wno-unused-variable
91 CERRWARN += -_gcc=-Wno-implicit-function-declaration
92 YFLAGS += -d -v
93 CFLAGS += -D_FILE_OFFSET_BITS=64
94
95 $(ITM) := CFLAGS += $(GSHARED) $(C_PICFLAGS) $(ZTEXT) -h $@
96 $(ITM) := CPPFLAGS += -D_REENTRANT
97 $(ITM) := sparc_CFLAGS += -xregs=no%appl
98 $(ITM) := sparcv9_CFLAGS += -xregs=no%appl
99
100 LDLIBS += -lgen
101
102 MY_NATIVE_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -I. -I..
103 MY_NATIVE_LDFLAGS = $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
104 MY_NATIVE_LDLIBS = -lgen
105
106 #
107 # Message catalog
108 #
109 POFILES= $(SRCSC1:%.c=%.po) $(SRCI1:%.c=%.po) \
110 $(SRCY1:%.y=%.po) $(SRCL1:%.l=%.po)
111
112 POFILE= geniconvtbl_.po
113
114
115
|
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.
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 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24 # Copyright (c) 2018, Joyent, Inc.
25 #
26
27 $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN)
28
29 ITM = geniconvtbl.so
30 PROG = geniconvtbl
31
32 SRCSH1 = iconv_tm.h hash.h
33 SRCCH1 = itmcomp.h itm_util.h maptype.h
34 SRCSC1 = itmcomp.c assemble.c disassemble.c itm_util.c
35 SRCY1 = itm_comp.y
36 SRCL1 = itm_comp.l
37 SRCI1 = geniconvtbl.c
38
39
40 YTABC = y.tab.c
41 YTABH = y.tab.h
42 LEXYY = lex.yy.c
43 YOUT = y.output
44 MAPFILE = ../mapfile
45
77
78 #
79 # definition for some useful target like clean,
80 OBJS = $(SRCSC1:%.c=%.o) $(YTABC:.c=.o) $(LEXYY:.c=.o)
81
82 CHECKHDRS = $(HDRS%.h=%.check)
83
84 CLOBBERFILES= $(ITM) $(SRCYC)
85 CLEANFILES = $(OBJS) $(YTABC) $(YTABH) $(LEXYY) $(YOUT) \
86 $(POFILES) $(POFILE)
87
88 CPPFLAGS += -I. -I..
89 CERRWARN += -_gcc=-Wno-uninitialized
90 CERRWARN += -_gcc=-Wno-unused-label
91 CERRWARN += -_gcc=-Wno-switch
92 CERRWARN += -_gcc=-Wno-unused-variable
93 CERRWARN += -_gcc=-Wno-implicit-function-declaration
94 YFLAGS += -d -v
95 CFLAGS += -D_FILE_OFFSET_BITS=64
96
97 # dump_expr() is too hairy
98 SMATCH=off
99
100 $(ITM) := CFLAGS += $(GSHARED) $(C_PICFLAGS) $(ZTEXT) -h$@
101 $(ITM) := CPPFLAGS += -D_REENTRANT
102 $(ITM) := sparc_CFLAGS += -xregs=no%appl
103 $(ITM) := sparcv9_CFLAGS += -xregs=no%appl
104
105 LDLIBS += -lgen
106
107 MY_NATIVE_CPPFLAGS = -D_FILE_OFFSET_BITS=64 -I. -I..
108 MY_NATIVE_LDFLAGS = $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
109 MY_NATIVE_LDLIBS = -lgen
110
111 #
112 # Message catalog
113 #
114 POFILES= $(SRCSC1:%.c=%.po) $(SRCI1:%.c=%.po) \
115 $(SRCY1:%.y=%.po) $(SRCL1:%.l=%.po)
116
117 POFILE= geniconvtbl_.po
118
119
120
|