From c6070c42052cc11989d5133cdd29f0c42fabfd59 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 2 Feb 2004 03:55:55 +0000 Subject: 2004-02-02 Ralf Corsepius * Makefile.am: Merge-in console/Makefile.am, liblnk/Makefile.am, start/Makefile.am, startup/Makefile.am, wrapup/Makefile.am. Use automake compilation rules. * console/Makefile.am, liblnk/Makefile.am, start/Makefile.am, startup/Makefile.am, wrapup/Makefile.am: Remove. * configure.ac: Reflect changes above. --- c/src/lib/libbsp/mips/p4000/ChangeLog | 9 +++ c/src/lib/libbsp/mips/p4000/Makefile.am | 97 +++++++++++++++++++++++-- c/src/lib/libbsp/mips/p4000/configure.ac | 7 +- c/src/lib/libbsp/mips/p4000/console/.cvsignore | 2 - c/src/lib/libbsp/mips/p4000/console/Makefile.am | 33 --------- c/src/lib/libbsp/mips/p4000/liblnk/.cvsignore | 2 - c/src/lib/libbsp/mips/p4000/liblnk/Makefile.am | 30 -------- c/src/lib/libbsp/mips/p4000/start/.cvsignore | 2 - c/src/lib/libbsp/mips/p4000/start/Makefile.am | 37 ---------- c/src/lib/libbsp/mips/p4000/startup/.cvsignore | 2 - c/src/lib/libbsp/mips/p4000/startup/Makefile.am | 54 -------------- c/src/lib/libbsp/mips/p4000/wrapup/.cvsignore | 2 - c/src/lib/libbsp/mips/p4000/wrapup/Makefile.am | 23 ------ 13 files changed, 99 insertions(+), 201 deletions(-) delete mode 100644 c/src/lib/libbsp/mips/p4000/console/.cvsignore delete mode 100644 c/src/lib/libbsp/mips/p4000/console/Makefile.am delete mode 100644 c/src/lib/libbsp/mips/p4000/liblnk/.cvsignore delete mode 100644 c/src/lib/libbsp/mips/p4000/liblnk/Makefile.am delete mode 100644 c/src/lib/libbsp/mips/p4000/start/.cvsignore delete mode 100644 c/src/lib/libbsp/mips/p4000/start/Makefile.am delete mode 100644 c/src/lib/libbsp/mips/p4000/startup/.cvsignore delete mode 100644 c/src/lib/libbsp/mips/p4000/startup/Makefile.am delete mode 100644 c/src/lib/libbsp/mips/p4000/wrapup/.cvsignore delete mode 100644 c/src/lib/libbsp/mips/p4000/wrapup/Makefile.am (limited to 'c/src/lib/libbsp') diff --git a/c/src/lib/libbsp/mips/p4000/ChangeLog b/c/src/lib/libbsp/mips/p4000/ChangeLog index 6fe539af06..2f662b0c3f 100644 --- a/c/src/lib/libbsp/mips/p4000/ChangeLog +++ b/c/src/lib/libbsp/mips/p4000/ChangeLog @@ -1,3 +1,12 @@ +2004-02-02 Ralf Corsepius + + * Makefile.am: Merge-in console/Makefile.am, liblnk/Makefile.am, + start/Makefile.am, startup/Makefile.am, wrapup/Makefile.am. Use automake + compilation rules. + * console/Makefile.am, liblnk/Makefile.am, start/Makefile.am, + startup/Makefile.am, wrapup/Makefile.am: Remove. + * configure.ac: Reflect changes above. + 2004-01-28 Ralf Corsepius * configure.ac: Add nostdinc to AUTOMAKE_OPTIONS. diff --git a/c/src/lib/libbsp/mips/p4000/Makefile.am b/c/src/lib/libbsp/mips/p4000/Makefile.am index 9c42fe3c70..5cb8101495 100644 --- a/c/src/lib/libbsp/mips/p4000/Makefile.am +++ b/c/src/lib/libbsp/mips/p4000/Makefile.am @@ -4,26 +4,107 @@ ACLOCAL_AMFLAGS = -I ../../../../aclocal -# wrapup is the one that actually builds and installs the library -# from the individual .rel files built in other directories -SUBDIRS = . start startup console liblnk wrapup - +include $(top_srcdir)/../../../../automake/compile.am include $(top_srcdir)/../../bsp.am +EXTRA_PROGRAMS = +CLEANFILES = +noinst_DATA = + include_HEADERS += include/coverhd.h -all-local: $(PREINSTALL_FILES) +EXTRA_DIST = start/start.S +start$(LIB_VARIANT).$(OBJEXT): start/start.S + ${CCASCOMPILE} -DASM -o $@ -c $< +project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT) + +dist_project_lib_DATA += startup/linkcmds + +EXTRA_PROGRAMS += startup.rel +CLEANFILES += startup.rel +startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \ + ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \ + ../../shared/main.c ../../shared/sbrk.c startup/setvec.c \ + startup/inittlb.c ../../shared/gnatinstallhandler.c startup/idtmem.S \ + startup/idttlb.S +startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) +startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +EXTRA_PROGRAMS += startup_g.rel +CLEANFILES += startup_g.rel +startup_g_rel_SOURCES = $(startup_rel_SOURCES) +startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) +startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +noinst_DATA += startup$(LIB_VARIANT).rel + +EXTRA_PROGRAMS += console.rel +CLEANFILES += console.rel +console_rel_SOURCES = console/console.c console/led.S +console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) +console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +EXTRA_PROGRAMS += console_g.rel +CLEANFILES += console_g.rel +console_g_rel_SOURCES = $(console_rel_SOURCES) +console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) +console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +noinst_DATA += console$(LIB_VARIANT).rel -EXTRA_DIST = times +EXTRA_PROGRAMS += liblnk.rel +CLEANFILES += liblnk.rel +liblnk_rel_SOURCES = liblnk/liblnk.S +liblnk_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) +liblnk_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +EXTRA_PROGRAMS += liblnk_g.rel +CLEANFILES += liblnk_g.rel +liblnk_g_rel_SOURCES = $(liblnk_rel_SOURCES) +liblnk_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) +liblnk_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) + +noinst_DATA += liblnk$(LIB_VARIANT).rel + +EXTRA_LIBRARIES = libbsp.a +CLEANFILES += libbsp.a +libbsp_a_SOURCES = +libbsp_a_LIBADD = startup$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \ + liblnk$(LIB_VARIANT).rel +libbsp_a_LIBADD += ../../../libcpu/mips/shared/cache$(LIB_VARIANT).rel \ + ../../../libcpu/mips/shared/interrupts$(LIB_VARIANT).rel \ + ../../../libcpu/mips/r46xx/clock$(LIB_VARIANT).rel \ + ../../../libcpu/mips/r46xx/timer$(LIB_VARIANT).rel \ + ../../../libcpu/mips/r46xx/vectorisrs$(LIB_VARIANT).rel + +EXTRA_LIBRARIES += libbsp_g.a +CLEANFILES += libbsp_g.a +libbsp_g_a_SOURCES = $(libbsp_a_SOURCES) +libbsp_g_a_LIBADD = $(libbsp_a_LIBADD) + +noinst_DATA += libbsp$(LIB_VARIANT).a + +all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES) + +EXTRA_DIST += times PREINSTALL_DIRS = +TMPINSTALL_FILES = $(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp) $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h -CLEANFILES = $(PREINSTALL_FILES) +$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) +TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) + +$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp) + $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds +TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds + +CLEANFILES += $(PREINSTALL_FILES) DISTCLEANFILES = $(PREINSTALL_DIRS) +CLEANFILES += $(TMPINSTALL_FILES) -include $(top_srcdir)/../../../../automake/subdirs.am include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/mips/p4000/configure.ac b/c/src/lib/libbsp/mips/p4000/configure.ac index 2d8ea40a8e..ed3aa88bbd 100644 --- a/c/src/lib/libbsp/mips/p4000/configure.ac +++ b/c/src/lib/libbsp/mips/p4000/configure.ac @@ -16,10 +16,5 @@ RTEMS_CANONICALIZE_TOOLS RTEMS_PROG_CCAS # Explicitly list all Makefiles here -AC_CONFIG_FILES([Makefile -console/Makefile -liblnk/Makefile -start/Makefile -startup/Makefile -wrapup/Makefile]) +AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/c/src/lib/libbsp/mips/p4000/console/.cvsignore b/c/src/lib/libbsp/mips/p4000/console/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libbsp/mips/p4000/console/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libbsp/mips/p4000/console/Makefile.am b/c/src/lib/libbsp/mips/p4000/console/Makefile.am deleted file mode 100644 index 51d5c1ef1f..0000000000 --- a/c/src/lib/libbsp/mips/p4000/console/Makefile.am +++ /dev/null @@ -1,33 +0,0 @@ -## -## $Id$ -## - -PGM = $(ARCH)/console.rel - -C_FILES = console.c -C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) - -S_FILES = led.S -S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) - -OBJS = $(C_O_FILES) $(S_O_FILES) - -include $(top_srcdir)/../../../../automake/compile.am -include $(top_srcdir)/../../../../automake/lib.am - -# -# (OPTIONAL) Add local stuff here using += -# - -$(PGM): $(OBJS) - $(make-rel) - -# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile - -all-local: $(OBJS) $(PGM) - -.PRECIOUS: $(PGM) - -EXTRA_DIST = console.c led.S - -include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/mips/p4000/liblnk/.cvsignore b/c/src/lib/libbsp/mips/p4000/liblnk/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libbsp/mips/p4000/liblnk/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libbsp/mips/p4000/liblnk/Makefile.am b/c/src/lib/libbsp/mips/p4000/liblnk/Makefile.am deleted file mode 100644 index 169f72a647..0000000000 --- a/c/src/lib/libbsp/mips/p4000/liblnk/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -## -## $Id$ -## - -PGM = $(ARCH)/liblnk.rel - -S_FILES = lnklib.S -S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) - -OBJS = $(S_O_FILES) - -include $(top_srcdir)/../../../../automake/compile.am -include $(top_srcdir)/../../../../automake/lib.am - -# -# (OPTIONAL) Add local stuff here using += -# - -$(PGM): $(OBJS) - $(make-rel) - -# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile - -all-local: $(OBJS) $(PGM) - -.PRECIOUS: $(PGM) - -EXTRA_DIST = lnklib.S - -include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/mips/p4000/start/.cvsignore b/c/src/lib/libbsp/mips/p4000/start/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libbsp/mips/p4000/start/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libbsp/mips/p4000/start/Makefile.am b/c/src/lib/libbsp/mips/p4000/start/Makefile.am deleted file mode 100644 index 8e096cebcd..0000000000 --- a/c/src/lib/libbsp/mips/p4000/start/Makefile.am +++ /dev/null @@ -1,37 +0,0 @@ -## -## $Id$ -## - -S_FILES = start.S -S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) - -OBJS = $(S_O_FILES) - -include $(top_srcdir)/../../../../automake/compile.am -include $(top_srcdir)/../../../../automake/lib.am -include $(top_srcdir)/../../bspstart.am - -# -# (OPTIONAL) Add local stuff here using += -# - -project_lib_DATA = $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) - -all-local: $(TMPINSTALL_FILES) - -EXTRA_DIST = start.S - -TMPINSTALL_FILES = - -$(PROJECT_LIB)/$(dirstamp): - @$(mkdir_p) $(PROJECT_LIB) - @: > $(PROJECT_LIB)/$(dirstamp) -TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) - -$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): $(ARCH)/start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) -TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT) - -CLEANFILES = $(TMPINSTALL_FILES) - -include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/mips/p4000/startup/.cvsignore b/c/src/lib/libbsp/mips/p4000/startup/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libbsp/mips/p4000/startup/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libbsp/mips/p4000/startup/Makefile.am b/c/src/lib/libbsp/mips/p4000/startup/Makefile.am deleted file mode 100644 index 1179dbe3f2..0000000000 --- a/c/src/lib/libbsp/mips/p4000/startup/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -## -## $Id$ -## - -VPATH = @srcdir@:@srcdir@/../../../shared - -PGM = $(ARCH)/startup.rel - -C_FILES = bspclean.c bsplibc.c bsppost.c bspstart.c bootcard.c main.c sbrk.c \ - setvec.c inittlb.c gnatinstallhandler.c -C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) - -S_FILES = idtmem.S idttlb.S -S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) - -OBJS = $(C_O_FILES) $(S_O_FILES) - -include $(top_srcdir)/../../../../automake/compile.am -include $(top_srcdir)/../../../../automake/lib.am - -# -# (OPTIONAL) Add local stuff here using += -# - -$(PGM): $(OBJS) - $(make-rel) - -project_lib_DATA = linkcmds ghlinkcmds - -# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile - -all-local: $(PGM) $(TMPINSTALL_FILES) - -EXTRA_DIST = bspclean.c bspstart.c ghlinkcmds idtmem.S idttlb.S inittlb.c \ - linkcmds setvec.c - -TMPINSTALL_FILES = - -$(PROJECT_LIB)/$(dirstamp): - @$(mkdir_p) $(PROJECT_LIB) - @: > $(PROJECT_LIB)/$(dirstamp) -TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp) - -$(PROJECT_LIB)/linkcmds: linkcmds $(PROJECT_LIB)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds -TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds - -$(PROJECT_LIB)/ghlinkcmds: ghlinkcmds $(PROJECT_LIB)/$(dirstamp) - $(INSTALL_DATA) $< $(PROJECT_LIB)/ghlinkcmds -TMPINSTALL_FILES += $(PROJECT_LIB)/ghlinkcmds - -CLEANFILES = $(TMPINSTALL_FILES) - -include $(top_srcdir)/../../../../automake/local.am diff --git a/c/src/lib/libbsp/mips/p4000/wrapup/.cvsignore b/c/src/lib/libbsp/mips/p4000/wrapup/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libbsp/mips/p4000/wrapup/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libbsp/mips/p4000/wrapup/Makefile.am b/c/src/lib/libbsp/mips/p4000/wrapup/Makefile.am deleted file mode 100644 index ec5124e9c0..0000000000 --- a/c/src/lib/libbsp/mips/p4000/wrapup/Makefile.am +++ /dev/null @@ -1,23 +0,0 @@ -## -## $Id$ -## - -BSP_FILES = startup console liblnk - -include $(top_srcdir)/../../../../automake/compile.am -include $(top_srcdir)/../../../../automake/lib.am - -# bummer; have to use $foreach since % pattern subst rules only replace 1x -OBJS = $(foreach piece, $(BSP_FILES), ../$(piece)/$(ARCH)/*.$(OBJEXT)) \ - ../../../../libcpu/mips/shared/cache$(LIB_VARIANT).rel \ - ../../../../libcpu/mips/shared/interrupts$(LIB_VARIANT).rel \ - ../../../../libcpu/mips/r46xx/clock$(LIB_VARIANT).rel \ - ../../../../libcpu/mips/r46xx/timer$(LIB_VARIANT).rel \ - ../../../../libcpu/mips/r46xx/vectorisrs$(LIB_VARIANT).rel - -$(ARCH)/libbsp.a: $(OBJS) - $(make-library) - -noinst_DATA = $(ARCH)/libbsp.a - -include $(top_srcdir)/../../../../automake/local.am -- cgit v1.2.3