cleanup
This commit is contained in:
parent
bdad42bda1
commit
e04b358332
|
@ -1,4 +1,4 @@
|
|||
# $Id: Makefile.pmax,v 1.1.1.1 1993/10/12 03:22:20 deraadt Exp $
|
||||
# $Id: Makefile.pmax,v 1.2 1994/01/16 00:34:10 deraadt Exp $
|
||||
# from: @(#)Makefile.pmax 7.7 (Berkeley) 2/20/93
|
||||
#
|
||||
# Makefile for 4.4 BSD
|
||||
|
@ -23,17 +23,19 @@
|
|||
# DEBUG is set to -g by config if debugging is requested (config -g).
|
||||
# PROF is set to -pg by config if profiling is requested (config -p).
|
||||
AS= as ${DEBUG}
|
||||
CC= cc ${DEBUG}
|
||||
CPP= cpp
|
||||
#CC= cc ${DEBUG}
|
||||
CC= gcc -nostdinc ${DEBUG} # TEMP
|
||||
#CPP= cpp ${DEBUG}
|
||||
CPP= /lib/cpp # TEMP
|
||||
LD= ld
|
||||
TOUCH= touch -f -c
|
||||
|
||||
# source tree is located via $S relative to the compilation directory
|
||||
S= ../..
|
||||
PMAX= $S/pmax
|
||||
S= ../../../..
|
||||
PMAX= ../..
|
||||
|
||||
INCLUDES= -I. -I$S
|
||||
COPTS= ${INCLUDES} ${IDENT} -DKERNEL
|
||||
INCLUDES= -I. -I${S}/arch -I${S} -I${S}/sys
|
||||
COPTS= ${INCLUDES} ${IDENT} -DKERNEL -DNETBSD
|
||||
CFLAGS= -O ${COPTS}
|
||||
|
||||
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
|
||||
|
@ -49,8 +51,9 @@ DRIVER_C_C= ${CC} -c ${CFLAGS} ${PROF} ${PARAM} $<
|
|||
|
||||
PROFILE_C= ${CC} -p -c ${COPTS} $<
|
||||
|
||||
NORMAL_S= ${CPP} ${COPTS} $< | ${AS} -o $@
|
||||
NORMAL_S_C= ${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@
|
||||
# TEMP commented out
|
||||
#NORMAL_S= ${CPP} ${COPTS} $< | ${AS} -o $@
|
||||
#NORMAL_S_C= ${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@
|
||||
|
||||
%OBJS
|
||||
|
||||
|
@ -61,8 +64,7 @@ NORMAL_S_C= ${CPP} ${COPTS} ${PARAM} $< | ${AS} -o $@
|
|||
# ${SYSTEM_LD_HEAD}
|
||||
# ${SYSTEM_LD} swapxxx.o
|
||||
# ${SYSTEM_LD_TAIL}
|
||||
SYSTEM_OBJ= locore.o ${OBJS} param.o ioconf.o vnode_if.o
|
||||
#SYSTEM_DEP= Makefile symbols.sort ${SYSTEM_OBJ} libkern.a
|
||||
SYSTEM_OBJ= locore.o ${OBJS} param.o ioconf.o
|
||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJ} libkern.a
|
||||
SYSTEM_LD_HEAD= rm -f $@
|
||||
SYSTEM_LD= -@if [ X${DEBUG} = X-g ]; \
|
||||
|
@ -95,7 +97,7 @@ newvers:
|
|||
${CC} $(CFLAGS) -c vers.c
|
||||
|
||||
clean:
|
||||
rm -f eddep *vmunix vmunix.gdb tags *.o locore.i [a-z]*.s \
|
||||
rm -f eddep *netbsd netbsd.gdb tags *.o locore.i [a-z]*.s \
|
||||
Errs errs linterrs makelinks
|
||||
|
||||
lint: /tmp param.c
|
||||
|
@ -110,7 +112,12 @@ symbols.sort: ${PMAX}/pmax/symbols.raw
|
|||
locore.o: ${PMAX}/pmax/locore.s ${PMAX}/include/machAsmDefs.h \
|
||||
${PMAX}/include/machConst.h ${PMAX}/include/reg.h assym.h
|
||||
${CPP} ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/locore.s | \
|
||||
${AS} -o locore.o
|
||||
${AS} -o locore.o
|
||||
|
||||
fp.o: ${PMAX}/pmax/fp.s ${PMAX}/include/machAsmDefs.h \
|
||||
${PMAX}/include/machConst.h ${PMAX}/include/regdef.h assym.h
|
||||
${CPP} ${COPTS} ${PARAM} -DLOCORE ${PMAX}/pmax/fp.s | \
|
||||
${AS} -o fp.o
|
||||
|
||||
# the following is necessary because autoconf.o depends on #if GENERIC
|
||||
autoconf.o: Makefile
|
||||
|
@ -128,7 +135,7 @@ assym.h: genassym
|
|||
genassym: ${PMAX}/pmax/genassym.c
|
||||
${CC} ${INCLUDES} ${IDENT} ${PARAM} -o genassym ${PMAX}/pmax/genassym.c
|
||||
|
||||
depend: assym.h param.c vnode_if.h
|
||||
depend: assym.h param.c
|
||||
mkdep ${COPTS} ${CFILES} ioconf.c param.c
|
||||
mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${PMAX}/pmax/genassym.c
|
||||
|
||||
|
@ -153,9 +160,4 @@ param.c: $S/conf/param.c
|
|||
param.o: param.c Makefile
|
||||
${CC} -c ${CFLAGS} ${PARAM} param.c
|
||||
|
||||
vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
sh $S/kern/vnode_if.sh $S/kern/vnode_if.src
|
||||
|
||||
%RULES
|
||||
|
|
Loading…
Reference in New Issue