source: rtems/c/src/lib/libcpu/sh/sh7045/Makefile.am @ c8f3e82

Last change on this file since c8f3e82 was ec1898b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 16, 2003 at 10:52:19 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.
  • Property mode set to 100644
File size: 2.1 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/io_types.h include/sci.h include/sh7_pfc.h \
16    include/sh7_sci.h include/sci_termios.h
17include_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
28PREINSTALL_FILES = $(PROJECT_INCLUDE)/sh \
29    $(include_sh_HEADERS:include/%=$(PROJECT_INCLUDE)/sh/%) \
30    $(include_rtems_score_HEADERS:include/%=$(PROJECT_INCLUDE)/rtems/score/%)
31
32# clock
33
34PGMS = $(ARCH)/clock.rel
35
36clock_C_FILES = clock/ckinit.c
37clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT))
38EXTRA_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
47PGMS += $(ARCH)/sci.rel
48
49sci_C_FILES = sci/sci.c sci/sci_termios.c
50sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT))
51EXTRA_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
60PGMS += $(ARCH)/score.rel
61
62score_C_FILES = score/cpu_asm.c score/ispsh7045.c
63score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT))
64EXTRA_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
73PGMS += $(ARCH)/timer.rel
74
75timer_C_FILES = timer/timer.c
76timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT))
77EXTRA_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
84all-local: $(ARCH) $(PGMS) $(TMPINSTALL_FILES)
85
86.PRECIOUS: $(PGMS)
87
88include $(top_srcdir)/../../../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.