1 | ## |
---|
2 | ## Makefile.am,v 1.4 2002/03/28 00:48:14 joel Exp |
---|
3 | ## |
---|
4 | |
---|
5 | CLEANFILES = |
---|
6 | EXTRA_DIST = |
---|
7 | noinst_PROGRAMS = |
---|
8 | |
---|
9 | include $(top_srcdir)/../../../automake/compile.am |
---|
10 | |
---|
11 | if mpc5xx |
---|
12 | include_mpc5xxdir = $(includedir)/mpc5xx |
---|
13 | include_libcpudir = $(includedir)/libcpu |
---|
14 | |
---|
15 | include_HEADERS = include/mpc5xx.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_mpc5xx_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 | ## exceptions |
---|
32 | include_libcpu_HEADERS = exceptions/raw_exception.h |
---|
33 | |
---|
34 | noinst_PROGRAMS += exceptions.rel |
---|
35 | exceptions_rel_SOURCES = exceptions/raw_exception.c |
---|
36 | exceptions_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
37 | exceptions_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
38 | |
---|
39 | ## irq |
---|
40 | include_libcpu_HEADERS += irq/irq.h |
---|
41 | |
---|
42 | noinst_PROGRAMS += irq.rel |
---|
43 | irq_rel_SOURCES = irq/irq.c irq/irq_init.c irq/irq_asm.S |
---|
44 | irq_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
45 | irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
46 | |
---|
47 | ## timer |
---|
48 | noinst_PROGRAMS += timer.rel |
---|
49 | timer_rel_SOURCES = timer/timer.c |
---|
50 | timer_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
51 | timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS) |
---|
52 | |
---|
53 | ## vectors |
---|
54 | include_libcpu_HEADERS += vectors/vectors.h |
---|
55 | |
---|
56 | noinst_PROGRAMS += vectors.rel |
---|
57 | vectors_rel_SOURCES = vectors/vectors_init.c vectors/vectors.S |
---|
58 | vectors_rel_CPPFLAGS = $(AM_CPPFLAGS) |
---|
59 | vectors_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 mpc5xx |
---|
74 | $(PROJECT_INCLUDE)/mpc5xx/$(dirstamp): |
---|
75 | @$(mkdir_p) $(PROJECT_INCLUDE)/mpc5xx |
---|
76 | @: > $(PROJECT_INCLUDE)/mpc5xx/$(dirstamp) |
---|
77 | PREINSTALL_DIRS += $(PROJECT_INCLUDE)/mpc5xx/$(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)/mpc5xx.h: include/mpc5xx.h $(PROJECT_INCLUDE)/$(dirstamp) |
---|
85 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc5xx.h |
---|
86 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc5xx.h |
---|
87 | |
---|
88 | $(PROJECT_INCLUDE)/mpc5xx/console.h: include/console.h $(PROJECT_INCLUDE)/mpc5xx/$(dirstamp) |
---|
89 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/mpc5xx/console.h |
---|
90 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/mpc5xx/console.h |
---|
91 | |
---|
92 | $(PROJECT_INCLUDE)/libcpu/raw_exception.h: exceptions/raw_exception.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
93 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
94 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/raw_exception.h |
---|
95 | |
---|
96 | $(PROJECT_INCLUDE)/libcpu/irq.h: irq/irq.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
97 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/irq.h |
---|
98 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/irq.h |
---|
99 | |
---|
100 | $(PROJECT_INCLUDE)/libcpu/vectors.h: vectors/vectors.h $(PROJECT_INCLUDE)/libcpu/$(dirstamp) |
---|
101 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/libcpu/vectors.h |
---|
102 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/libcpu/vectors.h |
---|
103 | endif |
---|
104 | |
---|
105 | CLEANFILES += $(PREINSTALL_FILES) |
---|
106 | DISTCLEANFILES = $(PREINSTALL_DIRS) |
---|
107 | |
---|
108 | include $(top_srcdir)/../../../automake/local.am |
---|