summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/support/old_exception_processing/Makefile.am
blob: afd66502ebe7239d11782febc63f398102f91782 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
##
## $Id$
##

AUTOMAKE_OPTIONS = foreign 1.4

# C source names
C_FILES = cpu.c ppccache.c
C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)

ROOT_H_FILES =
RTEMS_SCORE_H_FILES = cpu.h c_isr.inl
noinst_HEADERS = $(ROOT_H_FILES) $(RTEMS_SCORE_H_FILES)

# Assembly source names
S_FILES = cpu_asm.S
S_O_FILES = $(S_FILES:%.S=${ARCH}/%.o)

include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../../../../automake/lib.am

PREINSTALL_FILES = \
$(PROJECT_INCLUDE) \
$(PROJECT_INCLUDE)/rtems/score \
$(ROOT_H_FILES:%=$(PROJECT_INCLUDE)/%) \
$(RTEMS_SCORE_H_FILES:%=$(PROJECT_INCLUDE)/rtems/score/%)

TMPINSTALL_FILES += \
$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o

$(PROJECT_RELEASE)/lib/rtems$(LIB_VARIANT).o: $(ARCH)/rtems.o
	$(INSTALL_DATA) $< $@

$(PROJECT_INCLUDE):
	$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/rtems/score:
	$(mkinstalldirs) $@

$(PROJECT_INCLUDE)/rtems/score/%: %
	$(INSTALL_DATA) $< $@

$(PROJECT_INCLUDE)/%: %
	$(INSTALL_DATA) $< $@

REL = ../$(ARCH)/rtems-cpu.rel

$(REL): $(C_O_FILES) $(S_O_FILES)
	test -d ../$(ARCH) || mkdir ../$(ARCH)
	$(make-rel)

all-local: $(ARCH) $(PREINSTALL_FILES) $(REL)
all-local: $(ARCH)/rtems.o
all-local: $(TMPINSTALL_FILES)

clean-local:
	$(RM) -r ../o-optimize ../o-debug ../o-profile

UNUSED_FILES = irq_stub.S

EXTRA_DIST = \
TODO \
rtems.S \
$(C_FILES) $(S_FILES) $(UNUSED_FILES)

include $(top_srcdir)/../../../../../../automake/local.am