Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/pmax/stand/lib Makefile* of pmax specific SA librar...



details:   https://anonhg.NetBSD.org/src/rev/5012aaa4a7e9
branches:  trunk
changeset: 467482:5012aaa4a7e9
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Mar 25 04:16:15 1999 +0000

description:
Makefile* of pmax specific SA library - based on i386/stand/lib Makefile.

diffstat:

 sys/arch/pmax/stand/lib/Makefile     |  19 +++++++++++++
 sys/arch/pmax/stand/lib/Makefile.inc |  52 ++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 0 deletions(-)

diffs (79 lines):

diff -r d8c1954ae3c2 -r 5012aaa4a7e9 sys/arch/pmax/stand/lib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/pmax/stand/lib/Makefile  Thu Mar 25 04:16:15 1999 +0000
@@ -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 -r d8c1954ae3c2 -r 5012aaa4a7e9 sys/arch/pmax/stand/lib/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/pmax/stand/lib/Makefile.inc      Thu Mar 25 04:16:15 1999 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index