diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-06-23 18:46:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-06-23 18:46:44 +0000 |
commit | 1d6e6684a878474c571fc7313a9648765932986e (patch) | |
tree | e83d0ca3c6118e9d6648ea41d15dbf67486dad3e /sys/arch/hppa/stand/Makefile.inc | |
parent | 8a9de76878466efb7a3e954b44108f4b0004fbff (diff) |
ok, it boots, include and libkern to come
Diffstat (limited to 'sys/arch/hppa/stand/Makefile.inc')
-rw-r--r-- | sys/arch/hppa/stand/Makefile.inc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sys/arch/hppa/stand/Makefile.inc b/sys/arch/hppa/stand/Makefile.inc new file mode 100644 index 00000000000..1da307b9927 --- /dev/null +++ b/sys/arch/hppa/stand/Makefile.inc @@ -0,0 +1,58 @@ +# $OpenBSD: Makefile.inc,v 1.1 1998/06/23 18:46:40 mickey Exp $ + +CFLAGS=${DEBUG} -O2 -Wall -Werror +CPPFLAGS+=-I${S} -I. -I${.CURDIR} +SACFLAGS=-nostdinc -fno-builtin +SACFLAGS+=-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0 +SACFLAGS+=-D_STANDALONE -I${SADIR}/libsa +DEBUGFLAGS=-DDEBUG +# DEBUGFLAGS+=-DEXEC_DEBUG +# DEBUGFLAGS+=-DALLOC_TRACE +# DEBUGFLAGS+=-DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG +# DEBUGFLAGS+=-DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG +LINKADDR=0x500000 +LOADADDR=0x500000 +HEAP_LIMIT=0x600000 +#ROM_SIZE=32768 +CLEANFILES+= machine + +.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(kernlibdir) && !make(obj) && !(defined(PROG) && ${PROG} == "mkboot") +.BEGIN: + @([ -h machine ] || ln -s $(S)/arch/hppa/include machine) +.endif + +.if $(CC) != $(HOSTCC) +.S.o .s.o: + @echo "${CPP} ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \ + ${AS} -o ${.TARGET}" + @${CPP} ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${AINC} ${.IMPSRC} | \ + ${AS} -o ${.TARGET}.o + @${LD} -x -r ${.TARGET}.o -o ${.TARGET} + @rm -f ${.TARGET}.o + +.c.o: + ${CC} -S ${CFLAGS} ${CPPFLAGS} ${CFLAGS:M-[ID]*} ${.IMPSRC} + ${AS} $*.s -o ${.TARGET}.o + @rm $*.s + @${LD} -x -r ${.TARGET}.o -o ${.TARGET} + @rm -f ${.TARGET}.o +.endif + +.if exists(${SADIR}/libsa/libsa.a) +LIBSA=${SADIR}/libsa/libsa.a +.else +LIBSA=${SADIR}/libsa/${__objdir}/libsa.a +.endif +.if exists(${SADIR}/libkern/libkern.a) +LIBKERN=${SADIR}/libkern/libkern.a +.else +LIBKERN=${SADIR}/libkern/${__objdir}/libkern.a +.endif +.if exists(${SADIR}/libz/libz.a) +LIBZ=${SADIR}/libz/libz.a +.else +LIBZ=${SADIR}/libz/${__objdir}/libz.a +.endif + +# NO_NET=no_net +BINDIR= /usr/mdec |