blob: 1bc5f644ac6e14aed9cc6623c137a39262d534f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
##
## $Id$
##
AUTOMAKE_OPTIONS = foreign 1.4
## C source names
C_FILES = cpuIdent.c
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)
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../../../automake/lib.am
LIB = ${ARCH}/libcpuspec.a
#
# (OPTIONAL) Add local stuff here using +=
#
$(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)
EXTRA_DIST = $(C_FILES) $(S_FILES)
include $(top_srcdir)/../../../../../automake/local.am
|