1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | CLEANFILES = |
---|
6 | EXTRA_DIST = |
---|
7 | noinst_PROGRAMS = |
---|
8 | |
---|
9 | include $(top_srcdir)/../../../automake/compile.am |
---|
10 | |
---|
11 | if mpc8xx |
---|
12 | include_mpc8xxdir = $(includedir)/mpc8xx |
---|
13 | include_libcpudir = $(includedir)/libcpu |
---|
14 | |
---|
15 | include_HEADERS = include/mpc8xx.h |
---|
16 | |
---|
17 | ## clock |
---|
18 | noinst_PROGRAMS += clock.rel |
---|
19 | clock_rel_SOURCES = clock/clock.c |
---|
20 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
21 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
22 | |
---|
23 | ## console-generic |
---|
24 | include_mpc8xx_HEADERS = include/console.h |
---|
25 | |
---|
26 | noinst_PROGRAMS += console-generic.rel |
---|
27 | console_generic_rel_SOURCES = console-generic/console-generic.c |
---|
28 | console_generic_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
29 | console_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
30 | |
---|
31 | ## cpm |
---|
32 | include_mpc8xx_HEADERS += include/cpm.h |
---|
33 | |
---|
34 | noinst_PROGRAMS += cpm.rel |
---|
35 | cpm_rel_SOURCES = cpm/cp.c cpm/dpram.c |
---|
36 | cpm_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
37 | cpm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
38 | |
---|
39 | ## exceptions |
---|
40 | include_libcpu_HEADERS = exceptions/raw_exception.h |
---|
41 | |
---|
42 | noinst_PROGRAMS += exceptions.rel |
---|
43 | exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S |
---|
44 | exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
45 | exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
46 | |
---|
47 | ## mmu |
---|
48 | include_mpc8xx_HEADERS += include/mmu.h |
---|
49 | |
---|
50 | noinst_PROGRAMS += mmu.rel |
---|
51 | mmu_rel_SOURCES = mmu/mmu.c |
---|
52 | mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
53 | mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
54 | |
---|
55 | ## timer |
---|
56 | noinst_PROGRAMS += timer.rel |
---|
57 | timer_rel_SOURCES = timer/timer.c |
---|
58 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
59 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
60 | endif |
---|
61 | |
---|
62 | ## -- |
---|
63 | all-local: $(PREINSTALL_FILES) |
---|
64 | |
---|
65 | PREINSTALL_DIRS = |
---|
66 | PREINSTALL_FILES = |
---|
67 | |
---|
68 | $(PROJECT_INCLUDE)/$(dirstamp): |
---|
69 | @$(mkdir_p) $(PROJECT_INCLUDE) |
---|
70 | @: > $(PROJECT_INCLUDE)/$(dirstamp) |
---|
71 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp) |
---|
72 | |
---|
73 | if mpc8xx |
---|
74 | $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp): |
---|
75 | @$(mkdir_p) $(PROJECT_INCLUDE)/mpc8xx |
---|
76 | @: > $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp) |
---|
77 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp) |
---|
78 | |
---|
79 | $(PROJECT_INCLUDE)/libcpu/$(dirstamp): |
---|
80 | @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu |
---|
81 | @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
82 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
83 | |
---|
84 | $(PROJECT_INCLUDE)/mpc8xx.h: include/mpc8xx.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
85 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx.h |
---|
86 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx.h |
---|
87 | |
---|
88 | $(PROJECT_INCLUDE)/mpc8xx/console.h: include/console.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp) |
---|
89 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/console.h |
---|
90 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/console.h |
---|
91 | |
---|
92 | $(PROJECT_INCLUDE)/mpc8xx/cpm.h: include/cpm.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp) |
---|
93 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/cpm.h |
---|
94 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/cpm.h |
---|
95 | |
---|
96 | $(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
97 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
98 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
99 | |
---|
100 | $(PROJECT_INCLUDE)/mpc8xx/mmu.h: include/mmu.h $(PROJECT_INCLUDE)/mpc8xx/$(dirstamp) |
---|
101 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc8xx/mmu.h |
---|
102 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc8xx/mmu.h |
---|
103 | endif |
---|
104 | |
---|
105 | CLEANFILES += $(PREINSTALL_FILES) |
---|
106 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
107 | |
---|
108 | include $(top_srcdir)/../../../automake/local.am |
---|