From e9b6f41b20080314762f254e0a637730f84f2e67 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 22 Dec 2003 16:09:45 +0000 Subject: 2003-12-22 Ralf Corsepius * clock/Makefile.am: Eliminate VPATH. * console/Makefile.am: Eliminate VPATH. * irq/Makefile.am: Eliminate VPATH. * network/Makefile.am: Eliminate VPATH. * startup/Makefile.am: Eliminate VPATH. --- .../libbsp/powerpc/mpc8260ads/startup/Makefile.am | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads/startup') diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/Makefile.am b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/Makefile.am index 67650db071..24bd125edd 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/Makefile.am +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/Makefile.am @@ -2,22 +2,26 @@ ## $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 gnatinstallhandler.c cpuinit.c -C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) - -OBJS = $(C_O_FILES) +C_FILES = bspstart.c cpuinit.c +OBJS = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) include $(top_srcdir)/../../../../automake/compile.am include $(top_srcdir)/../../../../automake/lib.am -# -# (OPTIONAL) Add local stuff here using += -# +shared_C_FILES = $(top_srcdir)/../../shared/bootcard.c +shared_C_FILES += $(top_srcdir)/../../shared/bspclean.c +shared_C_FILES += $(top_srcdir)/../../shared/bsplibc.c +shared_C_FILES += $(top_srcdir)/../../shared/bsppost.c +shared_C_FILES += $(top_srcdir)/../../shared/main.c +shared_C_FILES += $(top_srcdir)/../../shared/sbrk.c +shared_C_FILES += $(top_srcdir)/../../shared/gnatinstallhandler.c +OBJS += \ + $(shared_C_FILES:$(top_srcdir)/../../shared/%.c=$(ARCH)/%.$(OBJEXT)) + +$(ARCH)/%.$(OBJEXT): $(top_srcdir)/../../shared/%.c $(ARCH)/$(dirstamp) + ${COMPILE} -o $@ -c $< $(PGM): $(OBJS) $(make-rel) @@ -28,7 +32,7 @@ project_lib_DATA = linkcmds all-local: $(PGM) $(TMPINSTALL_FILES) -EXTRA_DIST = bspstart.c linkcmds setvec.c +EXTRA_DIST = linkcmds $(C_FILES) $(PROJECT_LIB)/$(dirstamp): @$(mkdir_p) $(PROJECT_LIB) -- cgit v1.2.3