Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3 clean up Makefiles



details:   https://anonhg.NetBSD.org/src/rev/464d25040e2d
branches:  trunk
changeset: 522710:464d25040e2d
user:      uch <uch%NetBSD.org@localhost>
date:      Sun Feb 24 20:10:53 2002 +0000

description:
clean up Makefiles

diffstat:

 sys/arch/sh3/Makefile             |  34 +-------------
 sys/arch/sh3/conf/Makefile.sh3.be |  96 ---------------------------------------
 sys/arch/sh3/conf/build-sh3.eb    |  33 -------------
 sys/arch/sh3/conf/build-sh3.el    |  33 -------------
 4 files changed, 2 insertions(+), 194 deletions(-)

diffs (215 lines):

diff -r ae30432aab48 -r 464d25040e2d sys/arch/sh3/Makefile
--- a/sys/arch/sh3/Makefile     Sun Feb 24 19:50:14 2002 +0000
+++ b/sys/arch/sh3/Makefile     Sun Feb 24 20:10:53 2002 +0000
@@ -1,35 +1,5 @@
-#      $NetBSD: Makefile,v 1.1 1999/09/13 10:31:06 itojun Exp $
-
-# Makefile for sh3 tags file and boot blocks
-
-TSH3=  ../sh3/tags
-SSH3=  ../sh3/sh3/*.[ch] ../sh3/include/*.h \
-       ../sh3/eisa/*.[ch] ../sh3/isa/*.[ch] ../sh3/pci/*.[ch]
-ASH3=  ../sh3/sh3/*.s
-
-# Directories in which to place tags links
-DSH3=  include sh3
-
-.include "../../kern/Make.tags.inc"
-
-tags:
-       -ctags -wdtf ${TSH3} ${SSH3} ${COMM}
-       egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
-           sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
-               >> ${TSH3}
-       sort -o ${TSH3} ${TSH3}
-
-links:
-       -for i in ${DSH3}; do \
-           cd $$i && rm -f tags; ln -s ../tags tags; done
-
-etags:
-       emacs-etags ${SSH3} ${COMM}
-
-elinks:
-       for i in ${DSH3}; do \
-           cd $$i && rm -f TAGS; ln -s ../TAGS TAGS; cd ..; done
+#      $NetBSD: Makefile,v 1.2 2002/02/24 20:10:53 uch Exp $
 
 SUBDIR= include
 
-.include <bsd.subdir.mk>
+.include <bsd.kinc.mk>
diff -r ae30432aab48 -r 464d25040e2d sys/arch/sh3/conf/Makefile.sh3.be
--- a/sys/arch/sh3/conf/Makefile.sh3.be Sun Feb 24 19:50:14 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-#      $NetBSD: Makefile.sh3.be,v 1.10 2001/12/09 05:00:50 atatat Exp $
-
-# Makefile for NetBSD
-#
-# This makefile is constructed from a machine description:
-#      config machineid
-# Most changes should be made in the machine description
-#      /sys/arch/sh3/conf/``machineid''
-# after which you should do
-#      config machineid
-# Machine generic makefile changes should be made in
-#      /sys/arch/sh3/conf/Makefile.sh3
-# after which config should be rerun for all machines of that type.
-#
-# To specify debugging, add the config line: makeoptions DEBUG="-g"
-# A better way is to specify -g only for a few files.
-#
-#      makeoptions DEBUGLIST="uvm* trap if_*"
-
-MACHINE=       sh3
-MACHINE_ARCH=  sh3
-USETOOLS?=     no
-NEED_OWN_INSTALL_TARGET?=no
-.include <bsd.own.mk>
-
-##
-## (1) port identification
-##
-SH3=           $S/arch/sh3
-GENASSYM=      ${SH3}/sh3/genassym.cf
-
-##
-## (2) compile settings
-##
-CPPFLAGS+=     -Dsh3
-AFLAGS+=       -x assembler-with-cpp -traditional-cpp
-
-##
-## (3) libkern and compat
-##
-
-##
-## (4) local objects, compile rules, and dependencies
-##
-MD_OBJS=       locore.o
-MD_CFILES=
-MD_SFILES=     ${THISSH3}/sh3/locore.s
-
-locore.o: ${SH3}/sh3/locore.s assym.h
-       ${NORMAL_S}
-
-##
-## (5) link settings
-##
-TEXTADDR=      ???
-LINKFORMAT=    -Map netbsd.map -T ../../conf/sh.x
-SYSTEM_LD=     @echo ${LD} ${LINKFLAGS} -o $@.out '$${SYSTEM_OBJ}' vers.o; \
-               ${LD} ${LINKFLAGS} -o $@.out ${SYSTEM_OBJ} vers.o
-SYSTEM_LD_TAIL=
-LINKFLAGS_NORMAL=
-SYSTEM_LD_TAIL_DEBUG=; \
-               echo mv -f $@.out $@.gdb; \
-               mv -f $@.out $@.gdb; \
-               echo ${STRIP} ${STRIPFLAGS} -o $@.out $@.gdb; \
-               ${STRIP} ${STRIPFLAGS} -o $@.out $@.gdb
-
-##
-## (6) port specific target dependencies
-##
-
-# depend on CPU configuration
-locore.o machdep.o: Makefile
-
-##
-## (7) misc settings
-##
-
-##
-## (8) config(8) generated machinery
-##
-%INCLUDES
-
-%OBJS
-
-%CFILES
-
-%SFILES
-
-%LOAD
-
-%RULES
-
-##
-## (9) port independent kernel machinery
-##
-.include "$S/conf/Makefile.kern.inc"
diff -r ae30432aab48 -r 464d25040e2d sys/arch/sh3/conf/build-sh3.eb
--- a/sys/arch/sh3/conf/build-sh3.eb    Sun Feb 24 19:50:14 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-#! /bin/sh
-
-# just helping for cross compilation.
-
-MACHINE=evbsh3
-MACHINE_ARCH=sh3eb
-MACHINE_CPU=sh3
-# just in case you forgot to specify this when you built gcc...
-CFLAGS="-D__NetBSD__"
-export MACHINE MACHINE_ARCH CFLAGS
-# modify following TARGET name to meet your environment
-TARGET=sh-unknown-netbsdcoff
-
-# XXX following definition is absolutely incorrect.
-# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
-# True solution is:
-#      1) copy /usr/bin/cpp into /usr/local/bin/sh-*-*-cpp
-#      2) Edit CPP in sh-*-*-cpp correctly
-#              (e.g. "CPP=`$CC -print-prog-name=cpp`").
-#      3) Edit STDINCDIR in sh-*-*-cpp correctly
-#              (e.g. STDINCDIR=/usr/local/sh-unknown-netbsdcoff/include)
-
-# BROKEN
-CPP=`$TARGET-gcc -print-prog-name=cpp`
-
-# EXAMPLE
-#CPP=/usr/local/bin/sh-unknown-netbsdcoff-cpp
-#CPP=/usr/local/bin/sh-unknown-netbsdelf-cpp
-
-make AR=$TARGET-ar AS=$TARGET-as CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
-       RANLIB=$TARGET-ranlib SIZE=$TARGET-size \
-       STRIP=$TARGET-strip OBJCOPY=$TARGET-objcopy \
-       CXX=$TARGET-c++ CPP=$CPP $*
diff -r ae30432aab48 -r 464d25040e2d sys/arch/sh3/conf/build-sh3.el
--- a/sys/arch/sh3/conf/build-sh3.el    Sun Feb 24 19:50:14 2002 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-#! /bin/sh
-
-# just helping for cross compilation.
-
-MACHINE=evbsh3
-MACHINE_ARCH=sh3el
-MACHINE_CPU=sh3
-# just in case you forgot to specify this when you built gcc...
-CFLAGS="-D__NetBSD__"
-export MACHINE MACHINE_ARCH CFLAGS
-# modify following TARGET name to meet your environment
-TARGET=shel-unknown-netbsdcoff
-
-# XXX following definition is absolutely incorrect.
-# Our cpp is not /usr/libexec/cpp but /usr/bin/cpp.
-# True solution is:
-#      1) copy /usr/bin/cpp into /usr/local/bin/shel-*-*-cpp
-#      2) Edit CPP in shel-*-*-cpp correctly
-#              (e.g. "CPP=`$CC -print-prog-name=cpp`").
-#      3) Edit STDINCDIR in shel-*-*-cpp correctly
-#              (e.g. STDINCDIR=/usr/local/shel-unknown-netbsdcoff/include)
-
-# BROKEN
-CPP=`$TARGET-gcc -print-prog-name=cpp`
-
-# EXAMPLE
-#CPP=/usr/local/bin/shel-unknown-netbsdcoff-cpp
-#CPP=/usr/local/bin/shel-unknown-netbsdelf-cpp
-
-make AR=$TARGET-ar AS="$TARGET-as -little" CC=$TARGET-gcc LD=$TARGET-ld NM=$TARGET-nm \
-       RANLIB=$TARGET-ranlib SIZE=$TARGET-size \
-       STRIP=$TARGET-strip OBJCOPY=$TARGET-objcopy \
-       CXX=$TARGET-c++ CPP=$CPP $*



Home | Main Index | Thread Index | Old Index