forked from Imagelibrary/rtems
Patches rtems-rc-20000118-3.diff and rtems-rc-20000118-4.diff from
Ralf Corsepius <corsepiu@faw.uni-ulm.de> that contain: * Modifications, (minor) corrections, cleanups to most existing Makefile.ams * Adds automake support to all remaining BSPs which have not yet been converted to automake. * Makefile.am for all remaining wrapup/Makefile.ams
This commit is contained in:
@@ -4,43 +4,38 @@
|
||||
|
||||
AUTOMAKE_OPTIONS = foreign 1.4
|
||||
|
||||
## C source names
|
||||
C_FILES = cpuIdent.c
|
||||
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
|
||||
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
|
||||
|
||||
H_FILES = cpu.h spr.h io.h mmu.h page.h byteorder.h pgtable.h
|
||||
noinst_HEADERS = $(H_FILES)
|
||||
|
||||
## Assembly source names
|
||||
S_FILES =
|
||||
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)
|
||||
|
||||
OBJS = $(C_O_FILES) $(S_O_FILES)
|
||||
OBJS = $(C_O_FILES)
|
||||
|
||||
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
||||
include $(top_srcdir)/../../../../../automake/lib.am
|
||||
|
||||
LIB = ${ARCH}/libcpuspec.a
|
||||
LIB = $(ARCH)/libcpuspec.a
|
||||
|
||||
#
|
||||
# (OPTIONAL) Add local stuff here using +=
|
||||
#
|
||||
|
||||
$(LIB): ${OBJS}
|
||||
$(LIB): $(OBJS)
|
||||
$(make-library)
|
||||
|
||||
PREINSTALL_FILES += \
|
||||
$(PROJECT_INCLUDE)/libcpu \
|
||||
$(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
|
||||
|
||||
$(PROJECT_INCLUDE)/libcpu:
|
||||
$(mkinstalldirs) $@
|
||||
|
||||
$(PROJECT_INCLUDE)/libcpu/%.h: %.h
|
||||
$(INSTALL_DATA) $< $@
|
||||
|
||||
all-local: ${ARCH} $(PREINSTALL_FILES) $(LIB)
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu \
|
||||
$(H_FILES:%=$(PROJECT_INCLUDE)/libcpu/%)
|
||||
|
||||
EXTRA_DIST = $(C_FILES) $(S_FILES)
|
||||
all-local: $(ARCH) $(PREINSTALL_FILES) $(OBJS) $(LIB)
|
||||
|
||||
.PRECIOUS: $(LIB)
|
||||
|
||||
EXTRA_DIST = byteorder.h cpu.h cpuIdent.c io.h mmu.h page.h pgtable.h spr.h
|
||||
|
||||
include $(top_srcdir)/../../../../../automake/local.am
|
||||
|
||||
Reference in New Issue
Block a user