[df49c60] | 1 | ## |
---|
[400c552] | 2 | ## $Id$ |
---|
[df49c60] | 3 | ## |
---|
[400c552] | 4 | |
---|
[feead226] | 5 | ACLOCAL_AMFLAGS = -I ../../../../../../aclocal |
---|
[400c552] | 6 | |
---|
[ec1898b] | 7 | include $(top_srcdir)/../../../../../../automake/compile.am |
---|
| 8 | include $(top_srcdir)/../../../../../../automake/lib.am |
---|
[7c9a598] | 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/io_types.h include/sci.h include/sh7_pfc.h \ |
---|
| 16 | include/sh7_sci.h include/sci_termios.h |
---|
| 17 | include_rtems_score_HEADERS = include/ispsh7045.h include/iosh7045.h |
---|
| 18 | |
---|
| 19 | $(PROJECT_INCLUDE)/sh: |
---|
| 20 | $(mkinstalldirs) $@ |
---|
| 21 | |
---|
| 22 | $(PROJECT_INCLUDE)/sh/%.h: include/%.h |
---|
| 23 | $(INSTALL_DATA) $< $@ |
---|
| 24 | |
---|
| 25 | $(PROJECT_INCLUDE)/rtems/score/%.h: include/%.h |
---|
| 26 | $(INSTALL_DATA) $< $@ |
---|
| 27 | |
---|
[ec1898b] | 28 | PREINSTALL_FILES = $(PROJECT_INCLUDE)/sh \ |
---|
[7c9a598] | 29 | $(include_sh_HEADERS:include/%=$(PROJECT_INCLUDE)/sh/%) \ |
---|
| 30 | $(include_rtems_score_HEADERS:include/%=$(PROJECT_INCLUDE)/rtems/score/%) |
---|
| 31 | |
---|
[ec1898b] | 32 | # clock |
---|
| 33 | |
---|
| 34 | PGMS = $(ARCH)/clock.rel |
---|
| 35 | |
---|
| 36 | clock_C_FILES = clock/ckinit.c |
---|
| 37 | clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 38 | EXTRA_DIST = $(clock_C_FILES) |
---|
| 39 | |
---|
| 40 | ${ARCH}/%.$(OBJEXT): clock/%.c |
---|
| 41 | ${COMPILE} -o $@ -c $< |
---|
| 42 | ${ARCH}/clock.rel: $(clock_rel_OBJECTS) |
---|
| 43 | ${make-rel} |
---|
| 44 | |
---|
| 45 | # sci |
---|
| 46 | |
---|
| 47 | PGMS += $(ARCH)/sci.rel |
---|
| 48 | |
---|
| 49 | sci_C_FILES = sci/sci.c sci/sci_termios.c |
---|
| 50 | sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 51 | EXTRA_DIST += $(sci_C_FILES) |
---|
| 52 | |
---|
| 53 | ${ARCH}/%.$(OBJEXT): sci/%.c |
---|
| 54 | ${COMPILE} -o $@ -c $< |
---|
| 55 | ${ARCH}/sci.rel: $(sci_rel_OBJECTS) |
---|
| 56 | ${make-rel} |
---|
| 57 | |
---|
| 58 | # score |
---|
| 59 | |
---|
| 60 | PGMS += $(ARCH)/score.rel |
---|
| 61 | |
---|
| 62 | score_C_FILES = score/cpu_asm.c score/ispsh7045.c |
---|
| 63 | score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 64 | EXTRA_DIST += $(score_C_FILES) |
---|
| 65 | |
---|
| 66 | ${ARCH}/%.$(OBJEXT): score/%.c |
---|
| 67 | ${COMPILE} -o $@ -c $< |
---|
| 68 | ${ARCH}/score.rel: $(score_rel_OBJECTS) |
---|
| 69 | ${make-rel} |
---|
| 70 | |
---|
| 71 | ## timer |
---|
| 72 | |
---|
| 73 | PGMS += $(ARCH)/timer.rel |
---|
| 74 | |
---|
| 75 | timer_C_FILES = timer/timer.c |
---|
| 76 | timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT)) |
---|
| 77 | EXTRA_DIST += $(timer_C_FILES) |
---|
| 78 | |
---|
| 79 | ${ARCH}/%.$(OBJEXT): timer/%.c |
---|
| 80 | ${COMPILE} -o $@ -c $< |
---|
| 81 | ${ARCH}/timer.rel: $(timer_rel_OBJECTS) |
---|
| 82 | ${make-rel} |
---|
| 83 | |
---|
| 84 | all-local: $(ARCH) $(PGMS) $(TMPINSTALL_FILES) |
---|
| 85 | |
---|
| 86 | .PRECIOUS: $(PGMS) |
---|
[400c552] | 87 | |
---|
[ac815430] | 88 | include $(top_srcdir)/../../../../../../automake/local.am |
---|