Some bits and pieces to make a profiled kernel (for the moment).
This commit is contained in:
parent
bf860bb2b2
commit
6cce9fd564
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile.sparc 8.1 (Berkeley) 7/19/93
|
||||
# $Id: Makefile.sparc,v 1.6 1994/02/04 17:27:28 deraadt Exp $
|
||||
# $Id: Makefile.sparc,v 1.7 1994/03/17 09:24:05 pk Exp $
|
||||
# Makefile for 4.4 BSD
|
||||
#
|
||||
# This makefile is constructed from a machine description:
|
||||
|
@ -80,6 +80,9 @@ LDX=-X
|
|||
LDX=-x
|
||||
.endif
|
||||
SYSTEM_OBJ= locore.o ${OBJS} param.o ioconf.o ${LIBKERN}
|
||||
.ifdef PROF
|
||||
SYSTEM_OBJ+= subr_mcount.o
|
||||
.endif
|
||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
|
||||
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
|
||||
SYSTEM_LD= @${LD} ${LDX} -p -N -e start -T f8004000 -o $@ \
|
||||
|
@ -114,7 +117,7 @@ genassym: genassym.o
|
|||
${CC} -o $@ genassym.o
|
||||
|
||||
genassym.o: ${SPARC}/sparc/genassym.c
|
||||
${CC} -c ${CFLAGS} -I/tmp/usr/include -I/usr/include ${PARAM} $<
|
||||
${CC} -c ${CFLAGS} -I/usr/include ${PARAM} $<
|
||||
|
||||
SRCS= ${CFILES} ioconf.c param.c
|
||||
depend: .depend
|
||||
|
@ -145,6 +148,11 @@ param.c: $S/conf/param.c
|
|||
param.o: param.c Makefile
|
||||
${CC} -c ${CFLAGS} ${PARAM} param.c
|
||||
|
||||
.ifdef PROF
|
||||
subr_mcount.o: $S/kern/subr_mcount.c
|
||||
${CC} -c ${CFLAGS} $S/kern/subr_mcount.c
|
||||
.endif
|
||||
|
||||
%RULES
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend uses it
|
||||
|
|
Loading…
Reference in New Issue