1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | include $(top_srcdir)/../../../automake/compile.am |
---|
6 | |
---|
7 | EXTRA_DIST = |
---|
8 | noinst_PROGRAMS = |
---|
9 | CLEANFILES = |
---|
10 | |
---|
11 | if mpc6xx |
---|
12 | include_libcpudir = $(includedir)/libcpu |
---|
13 | include_libcpu_HEADERS = exceptions/raw_exception.h |
---|
14 | |
---|
15 | # exceptions |
---|
16 | noinst_PROGRAMS += exceptions.rel |
---|
17 | exceptions_rel_SOURCES = exceptions/raw_exception.c exceptions/asm_utils.S |
---|
18 | exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
19 | exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
20 | |
---|
21 | # mmu |
---|
22 | include_libcpu_HEADERS += mmu/bat.h mmu/pte121.h |
---|
23 | |
---|
24 | noinst_PROGRAMS += mmu.rel |
---|
25 | mmu_rel_SOURCES = mmu/bat.c mmu/bat.h mmu/pte121.c mmu/pte121.h \ |
---|
26 | mmu/mmuAsm.S |
---|
27 | mmu_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
28 | mmu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
29 | |
---|
30 | # clock |
---|
31 | include_libcpu_HEADERS += clock/c_clock.h |
---|
32 | |
---|
33 | noinst_PROGRAMS += clock.rel |
---|
34 | clock_rel_SOURCES = clock/c_clock.c clock/c_clock.h |
---|
35 | clock_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
36 | clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
37 | |
---|
38 | # timer |
---|
39 | noinst_PROGRAMS += timer.rel |
---|
40 | timer_rel_SOURCES = timer/timer.c |
---|
41 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
42 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
43 | endif |
---|
44 | |
---|
45 | ## ---- |
---|
46 | all-local: $(PREINSTALL_FILES) |
---|
47 | |
---|
48 | PREINSTALL_DIRS = |
---|
49 | PREINSTALL_FILES = |
---|
50 | |
---|
51 | if mpc6xx |
---|
52 | $(PROJECT_INCLUDE)/libcpu/$(dirstamp): |
---|
53 | @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu |
---|
54 | @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
55 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
56 | |
---|
57 | $(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
58 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
59 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
60 | |
---|
61 | $(PROJECT_INCLUDE)/libcpu/bat.h: mmu/bat.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
62 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/bat.h |
---|
63 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/bat.h |
---|
64 | |
---|
65 | $(PROJECT_INCLUDE)/libcpu/pte121.h: mmu/pte121.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
66 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/pte121.h |
---|
67 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/pte121.h |
---|
68 | |
---|
69 | $(PROJECT_INCLUDE)/libcpu/c_clock.h: clock/c_clock.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
70 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/c_clock.h |
---|
71 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/c_clock.h |
---|
72 | endif |
---|
73 | |
---|
74 | CLEANFILES += $(PREINSTALL_FILES) |
---|
75 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
76 | |
---|
77 | include $(top_srcdir)/../../../automake/local.am |
---|