diff options
| author | simonb <simonb@NetBSD.org> | 1999-03-25 04:16:15 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 1999-03-25 04:16:15 +0000 |
| commit | e6469a71aae901ffb272a0db7c59df05473e8043 (patch) | |
| tree | c3e7973fb89adc7f108c6b2c22be537d952e29f6 /sys | |
| parent | 88eed19213b3e6ee41ca31b9f15dfbbafebbb4ca (diff) | |
Makefile* of pmax specific SA library - based on i386/stand/lib Makefile.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/pmax/stand/lib/Makefile | 19 | ||||
| -rw-r--r-- | sys/arch/pmax/stand/lib/Makefile.inc | 52 |
2 files changed, 71 insertions, 0 deletions
diff --git a/sys/arch/pmax/stand/lib/Makefile b/sys/arch/pmax/stand/lib/Makefile new file mode 100644 index 00000000000..cc4fe0a9c7d --- /dev/null +++ b/sys/arch/pmax/stand/lib/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 1999/03/25 04:16:15 simonb Exp $ + +S?= ${.CURDIR}/../../../../ + +LIB= pmax +MKPIC= no +MKPROFILE=no + +CPPFLAGS= -I$S/lib/libsa ${PMAXCPPFLAGS} ${PMAXMISCCPPFLAGS} + +SRCS= bootinfo.c callvec.c conf.c devopen.c loadfile.c putchar.c rz.c +SRCS+= bootinit.S bootread.S startprog.S + +.include <bsd.lib.mk> + +lib${LIB}.o:: ${OBJS} + @echo building standard ${LIB} library + @rm -f lib${LIB}.o + @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` diff --git a/sys/arch/pmax/stand/lib/Makefile.inc b/sys/arch/pmax/stand/lib/Makefile.inc new file mode 100644 index 00000000000..6305c985a11 --- /dev/null +++ b/sys/arch/pmax/stand/lib/Makefile.inc @@ -0,0 +1,52 @@ +# $NetBSD: Makefile.inc,v 1.1 1999/03/25 04:16:15 simonb Exp $ +# +# Configuration variables (default values are below): +# +# S must be set to the top of the 'sys' tree. +# PMAXDST may be set to the location of the directory where library +# objects are to be built. Defaults to ${.OBJDIR}/lib/pmax. +# PMAXMISCCPPFLAGS +# Miscellaneous cpp flags to be passed to the library's Makefile +# when building. +# PMAXMISCMAKEFLAGS +# Miscellaneous flags to be passed to the library's Makefile when +# building. See library's Makefile for more details about +# supported flags and their default values. + +# Default values: +PMAXDST?= ${.OBJDIR}/lib/pmax + +#PMAXDIR= $S/arch/pmax/stand/lib +PMAXLIB= ${PMAXDST}/libpmax.a + +PMAXMAKE= \ + cd ${PMAXDIR} && MAKEOBJDIR=${PMAXDST} ${MAKE} \ + CC=${CC:Q} CFLAGS=${CFLAGS:Q} \ + AS=${AS:Q} AFLAGS=${AFLAGS:Q} \ + LD=${LD:Q} STRIP=${STRIP:Q} \ + MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \ + PMAXCPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \ + PMAXMISCCPPFLAGS=${PMAXMISCCPPFLAGS:Q} S=${S:Q} \ + ${PMAXMISCMAKEFLAGS} + +${PMAXLIB}: .NOTMAIN __always_make_pmaxlib + @echo making sure the pmax library is up to date... + @${PMAXMAKE} libpmax.a + +clean: .NOTMAIN cleanpmaxlib +cleanpmaxlib: .NOTMAIN __always_make_pmaxlib + @echo cleaning the pmax library objects + @${PMAXMAKE} clean + +cleandir distclean: .NOTMAIN cleandirpmaxlib +cleandirpmaxlib: .NOTMAIN __always_make_pmaxlib + @echo cleandiring the pmax library objects + @${PMAXMAKE} cleandir + +depend: .NOTMAIN dependpmaxlib +dependpmaxlib: .NOTMAIN __always_make_pmaxlib + @echo depending the pmax library objects + @${PMAXMAKE} depend + +__always_make_pmaxlib: .NOTMAIN + @mkdir -p ${PMAXDST} |
