1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../automake/multilib.am |
---|
8 | include $(top_srcdir)/../../../automake/compile.am |
---|
9 | include $(top_srcdir)/../../../automake/lib.am |
---|
10 | |
---|
11 | $(PROJECT_INCLUDE)/%.h: %.h |
---|
12 | $(INSTALL_DATA) $< $@ |
---|
13 | |
---|
14 | $(PROJECT_INCLUDE): |
---|
15 | $(mkinstalldirs) $@ |
---|
16 | |
---|
17 | $(PROJECT_INCLUDE)/rtems: |
---|
18 | $(mkinstalldirs) $@ |
---|
19 | |
---|
20 | $(PROJECT_INCLUDE)/rtems/score: |
---|
21 | $(mkinstalldirs) $@ |
---|
22 | |
---|
23 | include_HEADERS = asm.h |
---|
24 | PREINSTALL_FILES = $(PROJECT_INCLUDE) \ |
---|
25 | $(include_HEADERS:%=$(PROJECT_INCLUDE)/%) |
---|
26 | |
---|
27 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
28 | include_rtems_score_HEADERS = \ |
---|
29 | rtems/score/ppc.h \ |
---|
30 | rtems/score/types.h |
---|
31 | include_rtems_score_HEADERS += rtems/score/cpu.h |
---|
32 | |
---|
33 | $(PROJECT_INCLUDE)/rtems/old-exceptions: |
---|
34 | $(mkinstalldirs) $@ |
---|
35 | |
---|
36 | include_rtems_old_exceptionsdir = $(includedir)/rtems/old-exceptions |
---|
37 | include_rtems_old_exceptions_HEADERS = rtems/old-exceptions/cpu.h |
---|
38 | |
---|
39 | $(PROJECT_INCLUDE)/rtems/new-exceptions: |
---|
40 | $(mkinstalldirs) $@ |
---|
41 | |
---|
42 | include_rtems_new_exceptionsdir = $(includedir)/rtems/new-exceptions |
---|
43 | include_rtems_new_exceptions_HEADERS = rtems/new-exceptions/cpu.h |
---|
44 | |
---|
45 | $(PROJECT_INCLUDE)/rtems/powerpc: |
---|
46 | $(mkinstalldirs) $@ |
---|
47 | |
---|
48 | include_rtems_powerpcdir = $(includedir)/rtems/powerpc |
---|
49 | include_rtems_powerpc_HEADERS = rtems/powerpc/registers.h |
---|
50 | |
---|
51 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score \ |
---|
52 | $(include_rtems_score_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) |
---|
53 | |
---|
54 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/old-exceptions \ |
---|
55 | $(include_rtems_old_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) |
---|
56 | |
---|
57 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/new-exceptions \ |
---|
58 | $(include_rtems_new_exceptions_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) |
---|
59 | |
---|
60 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/powerpc \ |
---|
61 | $(include_rtems_powerpc_HEADERS:%.h=$(PROJECT_INCLUDE)/%.h) |
---|
62 | |
---|
63 | C_FILES = # cpu.c |
---|
64 | C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.$(OBJEXT)) |
---|
65 | |
---|
66 | S_FILES = # cpu_asm.S |
---|
67 | S_O_FILES = $(S_FILES:%.S=$(ARCH)/%.$(OBJEXT)) |
---|
68 | |
---|
69 | libscorecpu_a_OBJECTS = $(C_O_FILES) $(S_O_FILES) |
---|
70 | |
---|
71 | $(LIB): $(libscorecpu_a_OBJECTS) |
---|
72 | $(make-library) |
---|
73 | |
---|
74 | all-local: $(ARCH) $(PREINSTALL_FILES) $(LIB) \ |
---|
75 | $(TMPINSTALL_FILES) |
---|
76 | |
---|
77 | include $(top_srcdir)/../../../automake/local.am |
---|