Makefile.kern.inc revision 1.3.2.8 1 1.3.2.8 nathanw # $NetBSD: Makefile.kern.inc,v 1.3.2.8 2002/09/17 21:19:09 nathanw Exp $
2 1.3.2.2 nathanw #
3 1.3.2.2 nathanw # This file contains common `MI' targets and definitions and it is included
4 1.3.2.2 nathanw # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. There are
5 1.3.2.2 nathanw # many `MI' definitions that should end up in here, but they are not yet.
6 1.3.2.2 nathanw #
7 1.3.2.2 nathanw # Each target in this file should be protected with `if !target(target)'
8 1.3.2.2 nathanw # or `if !commands(target)' and each variable should only be conditionally
9 1.3.2.2 nathanw # assigned `VAR ?= VALUE', so that everything can be overriden.
10 1.3.2.2 nathanw #
11 1.3.2.2 nathanw # DEBUG is set to -g if debugging.
12 1.3.2.2 nathanw # PROF is set to -pg if profiling.
13 1.3.2.2 nathanw #
14 1.3.2.2 nathanw # To specify debugging, add the config line: makeoptions DEBUG="-g"
15 1.3.2.2 nathanw # A better way is to specify -g only for a few files.
16 1.3.2.2 nathanw #
17 1.3.2.2 nathanw # makeoptions DEBUGLIST="uvm* trap if_*"
18 1.3.2.2 nathanw #
19 1.3.2.2 nathanw # all ports are expected to include bsd.own.mk for toolchain settings
20 1.3.2.2 nathanw
21 1.3.2.2 nathanw ##
22 1.3.2.2 nathanw ## (0) toolchain settings for things that aren't part of the standard
23 1.3.2.2 nathanw ## toolchain
24 1.3.2.2 nathanw ##
25 1.3.2.5 nathanw DBSYM?= dbsym
26 1.3.2.2 nathanw MKDEP?= mkdep
27 1.3.2.2 nathanw STRIP?= strip
28 1.3.2.2 nathanw OBJCOPY?= objcopy
29 1.3.2.2 nathanw OBJDUMP?= objdump
30 1.3.2.5 nathanw CSCOPE?= cscope
31 1.3.2.5 nathanw MKID?= mkid
32 1.3.2.4 nathanw .MAKEOVERRIDES+=USETOOLS # make sure proper value is propagated
33 1.3.2.2 nathanw
34 1.3.2.2 nathanw ##
35 1.3.2.2 nathanw ## (1) port independent source tree identification
36 1.3.2.2 nathanw ##
37 1.3.2.2 nathanw # source tree is located via $S relative to the compilation directory
38 1.3.2.2 nathanw .ifndef S
39 1.3.2.2 nathanw S!= cd ../../../..; pwd
40 1.3.2.2 nathanw .endif
41 1.3.2.2 nathanw
42 1.3.2.2 nathanw ##
43 1.3.2.2 nathanw ## (2) compile settings
44 1.3.2.2 nathanw ##
45 1.3.2.2 nathanw ## CPPFLAGS, CFLAGS, and AFLAGS must be set in the port's Makefile
46 1.3.2.2 nathanw ##
47 1.3.2.2 nathanw INCLUDES?= -I. ${EXTRA_INCLUDES} -I$S/arch -I$S -nostdinc
48 1.3.2.2 nathanw CPPFLAGS+= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT
49 1.3.2.2 nathanw DEFCOPTS?= -O2
50 1.3.2.2 nathanw COPTS?= ${DEFCOPTS}
51 1.3.2.2 nathanw DBG= # might contain unwanted -Ofoo
52 1.3.2.2 nathanw DEFWARNINGS?= yes
53 1.3.2.2 nathanw .if (${DEFWARNINGS} == "yes")
54 1.3.2.5 nathanw CWARNFLAGS+= -Werror -Wall -Wno-main -Wno-format-zero-length
55 1.3.2.2 nathanw WEAK_POINTERS?= no
56 1.3.2.2 nathanw .if !(${WEAK_POINTERS} == "yes")
57 1.3.2.2 nathanw CWARNFLAGS+= -Wpointer-arith
58 1.3.2.2 nathanw .endif
59 1.3.2.2 nathanw LOOSE_PROTOTYPES?= no
60 1.3.2.2 nathanw .if !(${LOOSE_PROTOTYPES} == "yes")
61 1.3.2.2 nathanw CWARNFLAGS+= -Wmissing-prototypes -Wstrict-prototypes
62 1.3.2.2 nathanw .endif
63 1.3.2.2 nathanw # XXX Delete -Wuninitialized for now, since the compiler doesn't
64 1.3.2.2 nathanw # XXX always get it right. --thorpej
65 1.3.2.2 nathanw CWARNFLAGS+= -Wno-uninitialized
66 1.3.2.2 nathanw .endif
67 1.3.2.2 nathanw CFLAGS+= -ffreestanding ${DEBUG} ${COPTS} ${CWARNFLAGS}
68 1.3.2.2 nathanw AFLAGS+= -D_LOCORE
69 1.3.2.2 nathanw
70 1.3.2.2 nathanw # Define a set of xxx_G variables that will add -g to just those
71 1.3.2.2 nathanw # files that match the shell patterns given in ${DEBUGLIST}
72 1.3.2.2 nathanw #
73 1.3.2.2 nathanw .for i in ${DEBUGLIST}
74 1.3.2.2 nathanw .for j in ${CFILES:T:M$i.c}
75 1.3.2.2 nathanw ${j:R}_G?= -g
76 1.3.2.2 nathanw .endfor
77 1.3.2.2 nathanw .endfor
78 1.3.2.2 nathanw
79 1.3.2.2 nathanw # compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
80 1.3.2.2 nathanw # NOPROF and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
81 1.3.2.2 nathanw NORMAL_C?= ${CC} ${CFLAGS} ${CPPFLAGS} ${${<:T:R}_G} ${PROF} -c $<
82 1.3.2.2 nathanw NOPROF_C?= ${CC} ${CFLAGS} ${CPPFLAGS} ${${<:T:R}_G} -c $<
83 1.3.2.2 nathanw NORMAL_S?= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
84 1.3.2.2 nathanw
85 1.3.2.2 nathanw ##
86 1.3.2.2 nathanw ## (3) libkern and compat
87 1.3.2.2 nathanw ##
88 1.3.2.2 nathanw ## Set KERN_AS in the port Makefile to "obj" or "library". The
89 1.3.2.2 nathanw ## default is "library", as documented in $S/lib/libkern/Makefile.inc.
90 1.3.2.2 nathanw ##
91 1.3.2.2 nathanw
92 1.3.2.2 nathanw ### find out what to use for libkern
93 1.3.2.2 nathanw .include "$S/lib/libkern/Makefile.inc"
94 1.3.2.2 nathanw .ifndef PROF
95 1.3.2.2 nathanw LIBKERN?= ${KERNLIB}
96 1.3.2.2 nathanw .else
97 1.3.2.2 nathanw LIBKERN?= ${KERNLIB_PROF}
98 1.3.2.2 nathanw .endif
99 1.3.2.2 nathanw
100 1.3.2.2 nathanw ### find out what to use for libcompat
101 1.3.2.2 nathanw .include "$S/compat/common/Makefile.inc"
102 1.3.2.2 nathanw .ifndef PROF
103 1.3.2.2 nathanw LIBCOMPAT?= ${COMPATLIB}
104 1.3.2.2 nathanw .else
105 1.3.2.2 nathanw LIBCOMPAT?= ${COMPATLIB_PROF}
106 1.3.2.2 nathanw .endif
107 1.3.2.2 nathanw
108 1.3.2.2 nathanw ##
109 1.3.2.2 nathanw ## (4) local objects, compile rules, and dependencies
110 1.3.2.2 nathanw ##
111 1.3.2.2 nathanw ## Each port should have a corresponding section with settings for
112 1.3.2.2 nathanw ## MD_CFILES, MD_SFILES, and MD_OBJS, along with build rules for same.
113 1.3.2.2 nathanw ##
114 1.3.2.8 nathanw MI_CFILES=devsw.c ioconf.c param.c
115 1.3.2.2 nathanw # the need for a MI_SFILES variable is dubitable at best
116 1.3.2.2 nathanw MI_OBJS=${MI_CFILES:S/.c/.o/}
117 1.3.2.2 nathanw
118 1.3.2.2 nathanw param.c: $S/conf/param.c
119 1.3.2.2 nathanw rm -f param.c
120 1.3.2.2 nathanw cp $S/conf/param.c .
121 1.3.2.2 nathanw
122 1.3.2.2 nathanw param.o: Makefile
123 1.3.2.2 nathanw
124 1.3.2.2 nathanw .for _cfile in ${MI_CFILES}
125 1.3.2.2 nathanw ${_cfile:T:R}.o: ${_cfile}
126 1.3.2.2 nathanw ${NORMAL_C}
127 1.3.2.2 nathanw .endfor
128 1.3.2.2 nathanw
129 1.3.2.2 nathanw ##
130 1.3.2.2 nathanw ## (5) link settings
131 1.3.2.2 nathanw ##
132 1.3.2.2 nathanw ## TEXTADDR (or LOADADDRESS), LINKFORMAT, and any EXTRA_LINKFLAGS must
133 1.3.2.2 nathanw ## be set in the port's Makefile. The port specific definitions for
134 1.3.2.2 nathanw ## LINKFLAGS_NORMAL and LINKFLAGS_DEBUG will added to the LINKFLAGS
135 1.3.2.2 nathanw ## depending on the value of DEBUG.
136 1.3.2.2 nathanw ##
137 1.3.2.2 nathanw # load lines for config "xxx" will be emitted as:
138 1.3.2.2 nathanw # xxx: ${SYSTEM_DEP} swapxxx.o
139 1.3.2.2 nathanw # ${SYSTEM_LD_HEAD}
140 1.3.2.2 nathanw # ${SYSTEM_LD} swapxxx.o
141 1.3.2.2 nathanw # ${SYSTEM_LD_TAIL}
142 1.3.2.2 nathanw SYSTEM_OBJ?= ${MD_OBJS} ${MI_OBJS} ${OBJS} ${LIBCOMPAT} ${LIBKERN}
143 1.3.2.8 nathanw SYSTEM_DEP?= Makefile ${SYSTEM_OBJ} .gdbinit
144 1.3.2.2 nathanw SYSTEM_LD_HEAD?= @rm -f $@
145 1.3.2.2 nathanw SYSTEM_LD?= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
146 1.3.2.2 nathanw ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
147 1.3.2.2 nathanw SYSTEM_LD_TAIL?= @${SIZE} $@; chmod 755 $@
148 1.3.2.2 nathanw
149 1.3.2.2 nathanw TEXTADDR?= ${LOADADDRESS} # backwards compatibility
150 1.3.2.2 nathanw LINKTEXT?= ${TEXTADDR:C/.+/-Ttext &/}
151 1.3.2.2 nathanw LINKDATA?= ${DATAADDR:C/.+/-Tdata &/}
152 1.3.2.2 nathanw ENTRYPOINT?= start
153 1.3.2.2 nathanw LINKENTRY?= ${ENTRYPOINT:C/.+/-e &/}
154 1.3.2.2 nathanw LINKFLAGS?= ${LINKFORMAT} ${LINKTEXT} ${LINKDATA} ${LINKENTRY} \
155 1.3.2.2 nathanw ${EXTRA_LINKFLAGS}
156 1.3.2.2 nathanw
157 1.3.2.2 nathanw LINKFLAGS_DEBUG?= -X
158 1.3.2.2 nathanw SYSTEM_LD_TAIL_DEBUG?=; \
159 1.3.2.2 nathanw echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
160 1.3.2.2 nathanw echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
161 1.3.2.2 nathanw ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
162 1.3.2.2 nathanw LINKFLAGS_NORMAL?= -S
163 1.3.2.2 nathanw STRIPFLAGS?= -g
164 1.3.2.2 nathanw
165 1.3.2.2 nathanw DEBUG?=
166 1.3.2.2 nathanw .if ${DEBUG} == "-g"
167 1.3.2.2 nathanw SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_DEBUG}
168 1.3.2.2 nathanw LINKFLAGS+= ${LINKFLAGS_DEBUG}
169 1.3.2.2 nathanw EXTRA_KERNELS+= ${KERNELS:@.KERNEL.@${.KERNEL.}.gdb@}
170 1.3.2.2 nathanw .elifndef PROF
171 1.3.2.2 nathanw LINKFLAGS+= ${LINKFLAGS_NORMAL}
172 1.3.2.2 nathanw .endif
173 1.3.2.2 nathanw
174 1.3.2.2 nathanw SYSTEM_LD_TAIL+=${SYSTEM_LD_TAIL_EXTRA}
175 1.3.2.2 nathanw
176 1.3.2.2 nathanw ##
177 1.3.2.2 nathanw ## (6) port independent targets and dependencies: assym.h, vers.o
178 1.3.2.2 nathanw ##
179 1.3.2.2 nathanw .if !target(assym.h)
180 1.3.2.2 nathanw assym.h: $S/kern/genassym.sh ${GENASSYM} ${GENASSYM_EXTRAS}
181 1.3.2.2 nathanw cat ${GENASSYM} ${GENASSYM_EXTRAS} | \
182 1.3.2.2 nathanw sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
183 1.3.2.2 nathanw > assym.h.tmp && \
184 1.3.2.2 nathanw mv -f assym.h.tmp assym.h
185 1.3.2.3 nathanw ${MD_SFILES:C/\.[Ss]/.o/} ${SFILES:C/\.[Ss]/.o/}: assym.h
186 1.3.2.2 nathanw .endif
187 1.3.2.2 nathanw
188 1.3.2.2 nathanw .if !target(vers.o)
189 1.3.2.2 nathanw newvers: vers.o
190 1.3.2.7 nathanw vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} $S/conf/newvers.sh $S/conf/osrelease.sh
191 1.3.2.2 nathanw sh $S/conf/newvers.sh
192 1.3.2.2 nathanw ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
193 1.3.2.2 nathanw .endif
194 1.3.2.2 nathanw
195 1.3.2.2 nathanw # depend on root or device configuration
196 1.3.2.2 nathanw autoconf.o conf.o: Makefile
197 1.3.2.2 nathanw
198 1.3.2.2 nathanw # depend on network or filesystem configuration
199 1.3.2.2 nathanw uipc_proto.o vfs_conf.o: Makefile
200 1.3.2.2 nathanw
201 1.3.2.2 nathanw # depend on maxusers and CPU configuration
202 1.3.2.2 nathanw assym.h machdep.o: Makefile
203 1.3.2.2 nathanw
204 1.3.2.2 nathanw ##
205 1.3.2.5 nathanw ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,
206 1.3.2.5 nathanw ## cscope, mkid
207 1.3.2.2 nathanw ##
208 1.3.2.2 nathanw ## Any ports that have other stuff to be cleaned up should fill in
209 1.3.2.2 nathanw ## EXTRA_CLEAN. Some ports may want different settings for
210 1.3.2.2 nathanw ## KERNLINTFLAGS, MKDEP_CFLAGS, or MKDEP_AFLAGS.
211 1.3.2.2 nathanw ##
212 1.3.2.2 nathanw .if !target(__CLEANKERNEL)
213 1.3.2.2 nathanw __CLEANKERNEL: .USE
214 1.3.2.2 nathanw @echo "${.TARGET}ing the kernel objects"
215 1.3.2.2 nathanw rm -f ${KERNELS} eddep tags *.[io] [a-z]*.s vers.c \
216 1.3.2.2 nathanw [Ee]rrs linterrs makelinks assym.h.tmp assym.h \
217 1.3.2.2 nathanw ${EXTRA_KERNELS} ${EXTRA_CLEAN}
218 1.3.2.2 nathanw .endif
219 1.3.2.2 nathanw
220 1.3.2.2 nathanw .if !target(kernelnames)
221 1.3.2.2 nathanw kernelnames:
222 1.3.2.2 nathanw @echo "${KERNELS} ${EXTRA_KERNELS}"
223 1.3.2.2 nathanw .endif
224 1.3.2.2 nathanw
225 1.3.2.2 nathanw .if !target(__CLEANDEPEND)
226 1.3.2.2 nathanw __CLEANDEPEND: .USE
227 1.3.2.2 nathanw rm -f .depend
228 1.3.2.2 nathanw .endif
229 1.3.2.2 nathanw
230 1.3.2.2 nathanw # do not !target these, the kern and compat Makefiles augment them
231 1.3.2.2 nathanw cleandir distclean: __CLEANKERNEL __CLEANDEPEND
232 1.3.2.2 nathanw clean: __CLEANKERNEL
233 1.3.2.2 nathanw depend: .depend
234 1.3.2.2 nathanw
235 1.3.2.2 nathanw .if !target(.depend)
236 1.3.2.2 nathanw SRCS?= ${MD_SFILES} ${MD_CFILES} ${MI_CFILES} ${CFILES} ${SFILES}
237 1.3.2.2 nathanw MKDEP_AFLAGS?= ${AFLAGS}
238 1.3.2.2 nathanw MKDEP_CFLAGS?= ${CFLAGS}
239 1.3.2.2 nathanw .depend: ${SRCS} assym.h
240 1.3.2.2 nathanw ${MKDEP} ${MKDEP_AFLAGS} ${CPPFLAGS} ${MD_SFILES} ${SFILES}
241 1.3.2.2 nathanw ${MKDEP} -a ${MKDEP_CFLAGS} ${CPPFLAGS} ${MD_CFILES} ${MI_CFILES} \
242 1.3.2.2 nathanw ${CFILES}
243 1.3.2.2 nathanw cat ${GENASSYM} ${GENASSYM_EXTRAS} | \
244 1.3.2.2 nathanw sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} ${CPPFLAGS}
245 1.3.2.2 nathanw @sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
246 1.3.2.2 nathanw @rm -f assym.dep
247 1.3.2.2 nathanw .endif
248 1.3.2.2 nathanw
249 1.3.2.2 nathanw .if !target(dependall)
250 1.3.2.2 nathanw dependall: depend all
251 1.3.2.2 nathanw .endif
252 1.3.2.2 nathanw
253 1.3.2.2 nathanw .if !target(lint)
254 1.3.2.2 nathanw ALLSFILES?= ${MD_SFILES} ${SFILES}
255 1.3.2.2 nathanw LINTSTUBS?= ${ALLSFILES:T:R:C/^.*$/LintStub_&.c/g}
256 1.3.2.2 nathanw KERNLINTFLAGS?= -hbxncez -Dvolatile=
257 1.3.2.2 nathanw .for _sfile in ${ALLSFILES}
258 1.3.2.2 nathanw LintStub_${_sfile:T:R}.c: ${_sfile} assym.h
259 1.3.2.2 nathanw ${CC} -E -C ${AFLAGS} ${CPPFLAGS} ${_sfile} | \
260 1.3.2.2 nathanw awk -f $S/kern/genlintstub.awk >${.TARGET}
261 1.3.2.2 nathanw .endfor
262 1.3.2.5 nathanw lint: ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES}
263 1.3.2.2 nathanw @${LINT} ${KERNLINTFLAGS} ${CPPFLAGS} -UKGDB \
264 1.3.2.2 nathanw ${CFILES} ${LINTSTUBS} ${MI_CFILES} ${MD_CFILES} | \
265 1.3.2.2 nathanw grep -v 'static function .* unused'
266 1.3.2.2 nathanw .endif
267 1.3.2.2 nathanw
268 1.3.2.2 nathanw .if !target(install)
269 1.3.2.2 nathanw # The install target can be redefined by putting a
270 1.3.2.2 nathanw # install-kernel-${MACHINE_NAME} target into /etc/mk.conf
271 1.3.2.2 nathanw MACHINE_NAME!= uname -n
272 1.3.2.2 nathanw install: install-kernel-${MACHINE_NAME}
273 1.3.2.2 nathanw .if !target(install-kernel-${MACHINE_NAME}})
274 1.3.2.2 nathanw install-kernel-${MACHINE_NAME}:
275 1.3.2.2 nathanw rm -f ${DESTDIR}/onetbsd
276 1.3.2.2 nathanw ln ${DESTDIR}/netbsd ${DESTDIR}/onetbsd
277 1.3.2.2 nathanw cp netbsd ${DESTDIR}/nnetbsd
278 1.3.2.2 nathanw mv ${DESTDIR}/nnetbsd ${DESTDIR}/netbsd
279 1.3.2.2 nathanw .endif
280 1.3.2.2 nathanw .endif
281 1.3.2.2 nathanw
282 1.3.2.2 nathanw .if !target(tags)
283 1.3.2.2 nathanw tags:
284 1.3.2.2 nathanw @echo "see $S/kern/Makefile for tags"
285 1.3.2.2 nathanw .endif
286 1.3.2.2 nathanw
287 1.3.2.5 nathanw EXTRA_CLEAN+= cscope.out
288 1.3.2.5 nathanw .if !target(cscope.out)
289 1.3.2.6 nathanw cscope.out: Makefile depend
290 1.3.2.5 nathanw @echo Building cscope.out source database
291 1.3.2.6 nathanw @echo ${SRCS} `sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' \
292 1.3.2.6 nathanw lib/kern/.depend lib/compat/.depend | tr ' ' '\n' | \
293 1.3.2.6 nathanw sed "s|^../../||" | sort -u` \
294 1.3.2.6 nathanw | ${CSCOPE} -k -i - -b `echo ${INCLUDES} | sed s/-nostdinc//`
295 1.3.2.5 nathanw # cscope doesn't write cscope.out if it's uptodate, so ensure
296 1.3.2.5 nathanw # make doesn't keep calling cscope when not needed.
297 1.3.2.5 nathanw @touch cscope.out
298 1.3.2.5 nathanw .endif
299 1.3.2.5 nathanw
300 1.3.2.5 nathanw .if !target(cscope)
301 1.3.2.5 nathanw cscope: cscope.out
302 1.3.2.5 nathanw @${CSCOPE} -d
303 1.3.2.5 nathanw .endif
304 1.3.2.5 nathanw
305 1.3.2.5 nathanw EXTRA_CLEAN+= ID
306 1.3.2.5 nathanw .if !target(mkid)
307 1.3.2.5 nathanw .PHONY: mkid
308 1.3.2.5 nathanw mkid: ID
309 1.3.2.5 nathanw
310 1.3.2.6 nathanw ID: Makefile depend
311 1.3.2.5 nathanw @echo Building mkid database
312 1.3.2.6 nathanw @${MKID} `sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' lib/kern/.depend \
313 1.3.2.6 nathanw lib/compat/.depend | tr ' ' '\n' | sed "s|^../../||" | sort -u` \
314 1.3.2.6 nathanw `sed 's/[^:]*://;s/^ *//;s/ *\\\\ *$$//;' .depend | tr ' ' '\n' \
315 1.3.2.6 nathanw | sort -u`
316 1.3.2.6 nathanw
317 1.3.2.5 nathanw .endif
318 1.3.2.5 nathanw
319 1.3.2.8 nathanw .include "${S}/gdbscripts/Makefile.inc"
320 1.3.2.8 nathanw
321 1.3.2.8 nathanw EXTRA_CLEAN+= .gdbinit
322 1.3.2.8 nathanw .gdbinit: Makefile ${S}/gdbscripts/Makefile.inc
323 1.3.2.8 nathanw @echo building GDB initialization file
324 1.3.2.8 nathanw rm -f .gdbinit
325 1.3.2.8 nathanw .for __gdbinit in ${SYS_GDBINIT}
326 1.3.2.8 nathanw echo "source ${S}/gdbscripts/${__gdbinit}" >> .gdbinit
327 1.3.2.8 nathanw .endfor
328 1.3.2.8 nathanw .if defined(GDBINIT) && !empty(GDBINIT)
329 1.3.2.8 nathanw .for __gdbinit in ${GDBINIT}
330 1.3.2.8 nathanw echo "source ${__gdbinit}" >> .gdbinit
331 1.3.2.8 nathanw .endfor
332 1.3.2.8 nathanw .endif
333 1.3.2.8 nathanw
334 1.3.2.2 nathanw ##
335 1.3.2.2 nathanw ## the end
336 1.3.2.2 nathanw ##
337