1 | ## |
---|
2 | ## $Id$ |
---|
3 | ## |
---|
4 | |
---|
5 | ACLOCAL_AMFLAGS = -I ../../../../aclocal |
---|
6 | |
---|
7 | include $(top_srcdir)/../../../../automake/compile.am |
---|
8 | include $(top_srcdir)/../../../../automake/lib.am |
---|
9 | |
---|
10 | # NOTE: Unlike other CPUS, we install into a subdirectory to avoid |
---|
11 | # file name conflicts |
---|
12 | include_shdir = $(includedir)/sh |
---|
13 | include_rtems_scoredir = $(includedir)/rtems/score |
---|
14 | |
---|
15 | include_sh_HEADERS = include/sci.h include/sh7_pfc.h include/sh7_sci.h |
---|
16 | include_rtems_score_HEADERS = include/ispsh7032.h include/iosh7032.h |
---|
17 | |
---|
18 | # clock |
---|
19 | |
---|
20 | PGMS = $(ARCH)/clock.rel |
---|
21 | |
---|
22 | clock_C_FILES = clock/ckinit.c |
---|
23 | clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
24 | EXTRA_DIST = $(clock_C_FILES) |
---|
25 | |
---|
26 | ${ARCH}/%.$(OBJEXT): clock/%.c $(ARCH)/$(dirstamp) |
---|
27 | ${COMPILE} -o $@ -c $< |
---|
28 | ${ARCH}/clock.rel: $(clock_rel_OBJECTS) |
---|
29 | ${make-rel} |
---|
30 | |
---|
31 | # delay |
---|
32 | |
---|
33 | PGMS += $(ARCH)/delay.rel |
---|
34 | |
---|
35 | delay_C_FILES = delay/delay.c |
---|
36 | delay_rel_OBJECTS = $(delay_C_FILES:delay/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
37 | EXTRA_DIST += $(delay_C_FILES) |
---|
38 | |
---|
39 | ${ARCH}/%.$(OBJEXT): delay/%.c $(ARCH)/$(dirstamp) |
---|
40 | ${COMPILE} -o $@ -c $< |
---|
41 | ${ARCH}/delay.rel: $(delay_rel_OBJECTS) |
---|
42 | ${make-rel} |
---|
43 | |
---|
44 | # sci |
---|
45 | |
---|
46 | PGMS += $(ARCH)/sci.rel |
---|
47 | |
---|
48 | sci_C_FILES = sci/sci.c |
---|
49 | sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
50 | EXTRA_DIST += $(sci_C_FILES) |
---|
51 | |
---|
52 | ${ARCH}/%.$(OBJEXT): sci/%.c $(ARCH)/$(dirstamp) |
---|
53 | ${COMPILE} -o $@ -c $< |
---|
54 | ${ARCH}/sci.rel: $(sci_rel_OBJECTS) |
---|
55 | ${make-rel} |
---|
56 | |
---|
57 | # score |
---|
58 | |
---|
59 | PGMS += $(ARCH)/score.rel |
---|
60 | |
---|
61 | score_C_FILES = score/cpu_asm.c score/ispsh7032.c |
---|
62 | score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
63 | EXTRA_DIST += $(score_C_FILES) |
---|
64 | |
---|
65 | ${ARCH}/%.$(OBJEXT): score/%.c $(ARCH)/$(dirstamp) |
---|
66 | ${COMPILE} -o $@ -c $< |
---|
67 | ${ARCH}/score.rel: $(score_rel_OBJECTS) |
---|
68 | ${make-rel} |
---|
69 | |
---|
70 | ## timer |
---|
71 | |
---|
72 | PGMS += $(ARCH)/timer.rel |
---|
73 | |
---|
74 | timer_C_FILES = timer/timer.c |
---|
75 | timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
76 | EXTRA_DIST += $(timer_C_FILES) |
---|
77 | |
---|
78 | ${ARCH}/%.$(OBJEXT): timer/%.c $(ARCH)/$(dirstamp) |
---|
79 | ${COMPILE} -o $@ -c $< |
---|
80 | ${ARCH}/timer.rel: $(timer_rel_OBJECTS) |
---|
81 | ${make-rel} |
---|
82 | |
---|
83 | all-local: $(PGMS) $(TMPINSTALL_FILES) |
---|
84 | |
---|
85 | .PRECIOUS: $(PGMS) |
---|
86 | |
---|
87 | PREINSTALL_FILES = |
---|
88 | |
---|
89 | $(PROJECT_INCLUDE)/sh/$(dirstamp): |
---|
90 | @$(mkdir_p) $(PROJECT_INCLUDE)/sh |
---|
91 | @: > $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
92 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
93 | |
---|
94 | $(PROJECT_INCLUDE)/rtems/score/$(dirstamp): |
---|
95 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score |
---|
96 | @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
97 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
98 | |
---|
99 | $(PROJECT_INCLUDE)/sh/sci.h: include/sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
100 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci.h |
---|
101 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci.h |
---|
102 | |
---|
103 | $(PROJECT_INCLUDE)/sh/sh7_pfc.h: include/sh7_pfc.h $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
104 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_pfc.h |
---|
105 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_pfc.h |
---|
106 | |
---|
107 | $(PROJECT_INCLUDE)/sh/sh7_sci.h: include/sh7_sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
108 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_sci.h |
---|
109 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_sci.h |
---|
110 | |
---|
111 | $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h: include/ispsh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
112 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h |
---|
113 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7032.h |
---|
114 | |
---|
115 | $(PROJECT_INCLUDE)/rtems/score/iosh7032.h: include/iosh7032.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
116 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7032.h |
---|
117 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7032.h |
---|
118 | |
---|
119 | CLEANFILES = $(PREINSTALL_FILES) |
---|
120 | |
---|
121 | include $(top_srcdir)/../../../../automake/local.am |
---|