source: rtems/c/src/lib/libcpu/sh/sh7032/Makefile.am @ 64edee07

4.104.114.84.95
Last change on this file since 64edee07 was 64edee07, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 16, 2003 at 10:52:43 AM

2003-01-16 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in subdir Makefile.ams
  • configure.ac: Reflect changes above.
  • score/Makefile.am: Removed.
  • sci/Makefile.am: Removed.
  • timer/Makefile.am: Removed.
  • clock/Makefile.am: Removed.
  • delay/Makefile.am: Removed.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../../../aclocal
6
7include $(top_srcdir)/../../../../../../automake/compile.am
8include $(top_srcdir)/../../../../../../automake/lib.am
9
10# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
11#       file name conflicts
12include_shdir = $(includedir)/sh
13include_rtems_scoredir = $(includedir)/rtems/score
14
15include_sh_HEADERS = include/sci.h include/sh7_pfc.h include/sh7_sci.h
16include_rtems_score_HEADERS = include/ispsh7032.h include/iosh7032.h
17
18$(PROJECT_INCLUDE)/sh:
19        $(mkinstalldirs) $@
20
21$(PROJECT_INCLUDE)/sh/%.h: include/%.h
22        $(INSTALL_DATA) $< $@
23
24$(PROJECT_INCLUDE)/rtems/score/%.h: include/%.h
25        $(INSTALL_DATA) $< $@
26
27PREINSTALL_FILES = $(PROJECT_INCLUDE)/sh \
28    $(include_sh_HEADERS:include/%.h=$(PROJECT_INCLUDE)/sh/%.h) \
29    $(include_rtems_score_HEADERS:include/%.h=$(PROJECT_INCLUDE)/rtems/score/%.h)
30
31# clock
32
33PGMS = $(ARCH)/clock.rel
34
35clock_C_FILES = clock/ckinit.c
36clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT))
37EXTRA_DIST = $(clock_C_FILES)
38
39${ARCH}/%.$(OBJEXT): clock/%.c
40        ${COMPILE} -o $@ -c $<
41${ARCH}/clock.rel: $(clock_rel_OBJECTS)
42        ${make-rel}
43
44# delay
45
46PGMS += $(ARCH)/delay.rel
47
48delay_C_FILES = delay/delay.c
49delay_rel_OBJECTS = $(delay_C_FILES:delay/%.c=$(ARCH)/%.$(OBJEXT))
50EXTRA_DIST += $(delay_C_FILES)
51
52${ARCH}/%.$(OBJEXT): delay/%.c
53        ${COMPILE} -o $@ -c $<
54${ARCH}/delay.rel: $(delay_rel_OBJECTS)
55        ${make-rel}
56
57# sci
58
59PGMS += $(ARCH)/sci.rel
60
61sci_C_FILES = sci/sci.c
62sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT))
63EXTRA_DIST += $(sci_C_FILES)
64
65${ARCH}/%.$(OBJEXT): sci/%.c
66        ${COMPILE} -o $@ -c $<
67${ARCH}/sci.rel: $(sci_rel_OBJECTS)
68        ${make-rel}
69
70# score
71
72PGMS += $(ARCH)/score.rel
73
74score_C_FILES = score/cpu_asm.c score/ispsh7032.c
75score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT))
76EXTRA_DIST += $(score_C_FILES)
77
78${ARCH}/%.$(OBJEXT): score/%.c
79        ${COMPILE} -o $@ -c $<
80${ARCH}/score.rel: $(score_rel_OBJECTS)
81        ${make-rel}
82
83## timer
84
85PGMS += $(ARCH)/timer.rel
86
87timer_C_FILES = timer/timer.c
88timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT))
89EXTRA_DIST += $(timer_C_FILES)
90
91${ARCH}/%.$(OBJEXT): timer/%.c
92        ${COMPILE} -o $@ -c $<
93${ARCH}/timer.rel: $(timer_rel_OBJECTS)
94        ${make-rel}
95
96all-local: $(ARCH) $(PGMS) $(TMPINSTALL_FILES)
97
98.PRECIOUS: $(PGMS)
99
100include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.