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/sh/sh4uart.h |
---|
16 | include_rtems_score_HEADERS = include/rtems/score/sh7750_regs.h \ |
---|
17 | include/rtems/score/ipl.h include/rtems/score/iosh7750.h \ |
---|
18 | include/rtems/score/ispsh7750.h include/rtems/score/sh4_regs.h |
---|
19 | |
---|
20 | all-local: $(TMPINSTALL_FILES) |
---|
21 | |
---|
22 | ## clock |
---|
23 | |
---|
24 | PGMS = $(ARCH)/clock.rel |
---|
25 | |
---|
26 | clock_C_FILES = clock/ckinit.c |
---|
27 | clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
28 | EXTRA_DIST = $(clock_C_FILES) |
---|
29 | |
---|
30 | ${ARCH}/%.$(OBJEXT): clock/%.c $(ARCH)/$(dirstamp) |
---|
31 | ${COMPILE} -o $@ -c $< |
---|
32 | ${ARCH}/clock.rel: $(clock_rel_OBJECTS) |
---|
33 | ${make-rel} |
---|
34 | |
---|
35 | ## sci |
---|
36 | |
---|
37 | PGMS += $(ARCH)/sci.rel |
---|
38 | |
---|
39 | sci_C_FILES = sci/sh4uart.c |
---|
40 | sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
41 | EXTRA_DIST += $(sci_C_FILES) |
---|
42 | |
---|
43 | ${ARCH}/%.$(OBJEXT): sci/%.c $(ARCH)/$(dirstamp) |
---|
44 | ${COMPILE} -o $@ -c $< |
---|
45 | ${ARCH}/sci.rel: $(sci_rel_OBJECTS) |
---|
46 | ${make-rel} |
---|
47 | |
---|
48 | ## score |
---|
49 | |
---|
50 | PGMS += $(ARCH)/score.rel |
---|
51 | |
---|
52 | score_C_FILES = score/cpu_asm.c score/ispsh7750.c |
---|
53 | score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
54 | EXTRA_DIST += $(score_C_FILES) |
---|
55 | |
---|
56 | ${ARCH}/%.$(OBJEXT): score/%.c $(ARCH)/$(dirstamp) |
---|
57 | ${COMPILE} -o $@ -c $< |
---|
58 | ${ARCH}/score.rel: $(score_rel_OBJECTS) |
---|
59 | ${make-rel} |
---|
60 | |
---|
61 | ## timer |
---|
62 | |
---|
63 | PGMS += $(ARCH)/timer.rel |
---|
64 | |
---|
65 | timer_C_FILES = timer/timer.c |
---|
66 | timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
67 | EXTRA_DIST += $(timer_C_FILES) |
---|
68 | |
---|
69 | ${ARCH}/%.$(OBJEXT): timer/%.c $(ARCH)/$(dirstamp) |
---|
70 | ${COMPILE} -o $@ -c $< |
---|
71 | ${ARCH}/timer.rel: $(timer_rel_OBJECTS) |
---|
72 | ${make-rel} |
---|
73 | |
---|
74 | # -- |
---|
75 | |
---|
76 | all-local: $(PGMS) $(TMPINSTALL_FILES) |
---|
77 | |
---|
78 | .PRECIOUS: $(PGMS) |
---|
79 | |
---|
80 | PREINSTALL_FILES = |
---|
81 | |
---|
82 | $(PROJECT_INCLUDE)/sh/$(dirstamp): |
---|
83 | @$(mkdir_p) $(PROJECT_INCLUDE)/sh |
---|
84 | @: > $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
85 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
86 | |
---|
87 | $(PROJECT_INCLUDE)/rtems/score/$(dirstamp): |
---|
88 | @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score |
---|
89 | @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
90 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
91 | |
---|
92 | $(PROJECT_INCLUDE)/sh/sh4uart.h: include/sh/sh4uart.h $(PROJECT_INCLUDE)/sh/$(dirstamp) |
---|
93 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh4uart.h |
---|
94 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh4uart.h |
---|
95 | |
---|
96 | $(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h: include/rtems/score/sh7750_regs.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
97 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h |
---|
98 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h |
---|
99 | |
---|
100 | $(PROJECT_INCLUDE)/rtems/score/ipl.h: include/rtems/score/ipl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
101 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ipl.h |
---|
102 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ipl.h |
---|
103 | |
---|
104 | $(PROJECT_INCLUDE)/rtems/score/iosh7750.h: include/rtems/score/iosh7750.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
105 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7750.h |
---|
106 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7750.h |
---|
107 | |
---|
108 | $(PROJECT_INCLUDE)/rtems/score/ispsh7750.h: include/rtems/score/ispsh7750.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
109 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7750.h |
---|
110 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7750.h |
---|
111 | |
---|
112 | $(PROJECT_INCLUDE)/rtems/score/sh4_regs.h: include/rtems/score/sh4_regs.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp) |
---|
113 | $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sh4_regs.h |
---|
114 | PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh4_regs.h |
---|
115 | |
---|
116 | CLEANFILES = $(PREINSTALL_FILES) |
---|
117 | |
---|
118 | include $(top_srcdir)/../../../../automake/local.am |
---|