diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 1998-12-15 06:02:56 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 1998-12-15 06:02:56 +0000 |
commit | a3ede25132630f472db68bca912ef60793ae9073 (patch) | |
tree | 0772295b89f8d7716eb716230a560b1edece288e /sys/arch/mvme88k/conf/Makefile.mvme88k | |
parent | be8c8622ef57b334e07dd5c0f36cdacbd0ba355a (diff) |
Commint for the first real mvme88k OpendBSD
Diffstat (limited to 'sys/arch/mvme88k/conf/Makefile.mvme88k')
-rw-r--r-- | sys/arch/mvme88k/conf/Makefile.mvme88k | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k index e104e579ab9..c59eed7ca8d 100644 --- a/sys/arch/mvme88k/conf/Makefile.mvme88k +++ b/sys/arch/mvme88k/conf/Makefile.mvme88k @@ -1,7 +1,7 @@ # @(#)Makefile.hp300 7.10 (Berkeley) 6/27/91 -# $Id: Makefile.mvme88k,v 1.4 1998/09/15 04:01:22 smurph Exp $ +# $Id: Makefile.mvme88k,v 1.5 1998/12/15 06:02:55 smurph Exp $ # -# Makefile for NetBSD +# Makefile for OpenBSD # # This makefile is constructed from a machine description: # config machineid @@ -22,14 +22,15 @@ # 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). -DESTDIR=/usr/cross/mvme88k -DESTBIN=${DESTDIR}/usr/m88k-unknown-openbsd2.2/bin -AS= ${DESTBIN}/as ${DEBUG} -AWK= awk -CC= ${DESTBIN}/gcc ${DEBUG} -CPP= cpp -LD= ${DESTBIN}/ld -TOUCH= touch -f -c + +AS?= as ${DEBUG} +AWK?= awk +CC?= cc ${DEBUG} +CPP?= cpp +LD?= ld +TOUCH?= touch -f -c +SIZE?= size +STRIP?= strip .ifndef HOSTCC HOSTCC=cc @@ -99,14 +100,14 @@ SYSTEM_LD= -@if [ X${DEBUG} = X-g ]; \ then strip=-X; \ else strip=-x; \ fi; \ - echo ${LD} $$strip -Ttext 0x10000 -o $@ ${SYSTEM_OBJ} libgcc.a vers.o; \ - ${LD} $$strip -Ttext 0x10000 -e start -o $@ ${SYSTEM_OBJ} \ - libgcc.a vers.o + echo ${LD} $$strip -Ttext 0x10000 -o $@ ${SYSTEM_OBJ} vers.o; \ + ${LD} $$strip -Ttext 0x10000 -e start ${LINKFLAGS} -o $@ \ + ${SYSTEM_OBJ} vers.o -lgcc -lgcc -SYSTEM_LD_TAIL= @size $@; chmod 755 $@; \ +SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@; \ [ X${DEBUG} = X-g ] && { \ echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \ - echo strip -d $@; strip -d $@; } || true + echo ${STRIP} -d $@; ${STRIP} -d $@; } || true %LOAD @@ -117,6 +118,11 @@ genassym: ${HOSTCC} -static ${INCLUDES} ${IDENT} ${PARAM} -Dmvme88k -Dm88k \ -o genassym ${MVME88K}/mvme88k/genassym.c +assym.h: $S/kern/genassym.sh ${MVME68K}/mvme68k/genassym.cf + sh $S/kern/genassym.sh ${HOSTCC} ${CFLAGS} ${CPPFLAGS} \ + ${PARAM} < ${MVME88K}/mvme88k/genassym.cf > assym.h.tmp && \ + mv -f assym.h.tmp assym.h + vers.o: newvers newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP} @@ -152,7 +158,7 @@ genassym.o machdep.o: Makefile locore.o machdep.o: Makefile depend:: .depend -.depend: assym.s param.c vnode_if.h +.depend: assym.s param.c mkdep ${CFLAGS} ${CPPFLAGS} ${CFILES} ioconf.c param.c mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ${MVME88K}/mvme88k/genassym.c |