Use makeobjops.awk rather than makeobjops.pl.

(with big thanks to Oliver Fromme <olli@fromme.com>)
This commit is contained in:
David E. O'Brien 2002-05-01 03:28:14 +00:00
parent dfbf15ee80
commit 9fa411ae4a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95844
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
# Part of unified Makefile for building kenrels. This includes all
# the definitions that need to be included after all the % directives,
# except %RULES and things that act like they are part of %RULES
@ -43,7 +42,7 @@ ${SYSTEM_OBJS}: vnode_if.h ${BEFORE_DEPEND:M*.h} ${MFILES:T:S/.m$/.h/}
.for mfile in ${MFILES}
${mfile:T:S/.m$/.h/}: ${mfile}
perl5 $S/kern/makeobjops.pl -h ${mfile}
${AWK} -f $S/tools/makeobjops.awk ${mfile} -h
.endfor
kernel-clean:

View File

@ -73,7 +73,7 @@ NORMAL_S= ${CC} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}
PROFILE_C= ${CC} -c ${CFLAGS} ${WERROR} ${.IMPSRC}
NORMAL_C_NOWERROR= ${CC} -c ${CFLAGS} ${PROF} ${.IMPSRC}
NORMAL_M= perl5 $S/kern/makeobjops.pl -c $<; \
NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk $< -c ; \
${CC} -c ${CFLAGS} ${PROF} ${.PREFIX}.c
GEN_CFILES= $S/$M/$M/genassym.c

View File

@ -312,9 +312,9 @@ CLEANFILES+= ${_src}
${_src}: @
.endif
.if exists(@)
${_src}: @/kern/makeobjops.pl @/${_srcsrc}
${_src}: @/tools/makeobjops.awk @/${_srcsrc}
.endif
perl @/kern/makeobjops.pl -${_ext} @/${_srcsrc}
${AWK} -f @/tools/makeobjops.awk @/${_srcsrc} -${_ext}
.endif
.endfor # _src
.endfor # _ext