56 SRCS = $(SRCSC) $(YTABC) $(LEXYY)
57 HDRS = $(SRCCH1) $(ERNOSTRH)
58
59
60
61 SED = sed
62 LEXSED = ../lex.sed
63 YACCSED = ../yacc.sed
64
65
66
67 # include ../../../lib/Makefile.lib
68 include ../../Makefile.cmd
69
70
71 ROOTDIRS32= $(ROOTLIB)/iconv
72 ROOTDIRS64= $(ROOTLIB)/iconv/$(MACH64)
73 ROOTITM32 = $(ROOTDIRS32)/$(ITM)
74 ROOTITM64 = $(ROOTDIRS64)/$(ITM)
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
150
151 lint : lint_SRCS1 lint_SRCS2
152
153
154 lint_SRCS1: $(SRCS)
155 $(LINT.c) $(SRCS) $(LDLIBS)
156
157 lint_SRCS2: $(SRCI)
158 $(LINT.c) $(SRCI) $(LDLIBS)
159
160
161
162 hdrchk: $(HDRCHECKS)
163
164 cstyle: $(SRCS)
165 $(DOT_C_CHECK)
166
167 clean:
168 $(RM) $(CLEANFILES)
169
170 debug:
171 $(MAKE) all COPTFLAG='' COPTFLAG64='' CFLAGS='-g -DDEBUG'
172
173
174 %.o: %.c
175 $(COMPILE.c) $<
176
177 %.o: ../%.c
178 $(COMPILE.c) $<
179
180
181
182 # install rule
183 #
184 $(ROOTDIRS32)/%: $(ROOTDIRS32) %
185 -$(INS.file)
186
187 $(ROOTDIRS64)/%: $(ROOTDIRS64) %
188 -$(INS.file)
189
190 $(ROOTDIRS32): $(ROOTLIB)
191 -$(INS.dir)
192
193 $(ROOTDIRS64): $(ROOTDIRS32)
194 -$(INS.dir)
195
196 $(ROOTLIB) $(ROOTBIN):
197 -$(INS.dir)
198
199 include ../../Makefile.targ
200
|
56 SRCS = $(SRCSC) $(YTABC) $(LEXYY)
57 HDRS = $(SRCCH1) $(ERNOSTRH)
58
59
60
61 SED = sed
62 LEXSED = ../lex.sed
63 YACCSED = ../yacc.sed
64
65
66
67 # include ../../../lib/Makefile.lib
68 include ../../Makefile.cmd
69
70
71 ROOTDIRS32= $(ROOTLIB)/iconv
72 ROOTDIRS64= $(ROOTLIB)/iconv/$(MACH64)
73 ROOTITM32 = $(ROOTDIRS32)/$(ITM)
74 ROOTITM64 = $(ROOTDIRS64)/$(ITM)
75
76 # defined for some useful targets like clean,
77 OBJS = $(SRCSC1:%.c=%.o) $(YTABC:.c=.o) $(LEXYY:.c=.o)
78
79 CHECKHDRS = $(HDRS%.h=%.check)
80
81 CLOBBERFILES= $(ITM) $(SRCYC)
82 CLEANFILES = $(OBJS) $(YTABC) $(YTABH) $(LEXYY) $(YOUT) \
83 $(POFILES) $(POFILE)
84
85 CPPFLAGS += -I. -I..
86 CERRWARN += -_gcc=-Wno-uninitialized
87 CERRWARN += -_gcc=-Wno-unused-label
88 CERRWARN += -_gcc=-Wno-switch
89 CERRWARN += -_gcc=-Wno-unused-variable
90 CERRWARN += -_gcc=-Wno-implicit-function-declaration
91 YFLAGS += -d -v
92 CFLAGS += -D_FILE_OFFSET_BITS=64
93
94 $(ITM) := CFLAGS += $(GSHARED) $(C_PICFLAGS) $(ZTEXT) -h $@
95 $(ITM) := CPPFLAGS += -D_REENTRANT
96 $(ITM) := sparc_CFLAGS += -xregs=no%appl
149
150 lint : lint_SRCS1 lint_SRCS2
151
152
153 lint_SRCS1: $(SRCS)
154 $(LINT.c) $(SRCS) $(LDLIBS)
155
156 lint_SRCS2: $(SRCI)
157 $(LINT.c) $(SRCI) $(LDLIBS)
158
159
160
161 hdrchk: $(HDRCHECKS)
162
163 cstyle: $(SRCS)
164 $(DOT_C_CHECK)
165
166 clean:
167 $(RM) $(CLEANFILES)
168
169 %.o: %.c
170 $(COMPILE.c) $<
171
172 %.o: ../%.c
173 $(COMPILE.c) $<
174
175
176
177 # install rule
178 $(ROOTDIRS32)/%: $(ROOTDIRS32) %
179 -$(INS.file)
180
181 $(ROOTDIRS64)/%: $(ROOTDIRS64) %
182 -$(INS.file)
183
184 $(ROOTDIRS32): $(ROOTLIB)
185 -$(INS.dir)
186
187 $(ROOTDIRS64): $(ROOTDIRS32)
188 -$(INS.dir)
189
190 $(ROOTLIB) $(ROOTBIN):
191 -$(INS.dir)
192
193 include ../../Makefile.targ
194
|