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

4.104.114.84.95
Last change on this file since e49fbac5 was e49fbac5, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/11/03 at 04:52:56

2003-12-11 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Misc cleanups and fixes.
  • Property mode set to 100644
File size: 3.6 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# clock
20
21PGMS = $(ARCH)/clock.rel
22
23clock_C_FILES = clock/ckinit.c
24clock_rel_OBJECTS = $(clock_C_FILES:clock/%.c=$(ARCH)/%.$(OBJEXT))
25EXTRA_DIST = $(clock_C_FILES)
26
27${ARCH}/%.$(OBJEXT): clock/%.c $(ARCH)/$(dirstamp)
28        ${COMPILE} -o $@ -c $<
29${ARCH}/clock.rel: $(clock_rel_OBJECTS)
30        ${make-rel}
31
32# sci
33
34PGMS += $(ARCH)/sci.rel
35
36sci_C_FILES = sci/sci.c sci/sci_termios.c
37sci_rel_OBJECTS = $(sci_C_FILES:sci/%.c=$(ARCH)/%.$(OBJEXT))
38EXTRA_DIST += $(sci_C_FILES)
39
40${ARCH}/%.$(OBJEXT): sci/%.c $(ARCH)/$(dirstamp)
41        ${COMPILE} -o $@ -c $<
42${ARCH}/sci.rel: $(sci_rel_OBJECTS)
43        ${make-rel}
44
45# score
46
47PGMS += $(ARCH)/score.rel
48
49score_C_FILES = score/cpu_asm.c score/ispsh7045.c
50score_rel_OBJECTS = $(score_C_FILES:score/%.c=$(ARCH)/%.$(OBJEXT))
51EXTRA_DIST += $(score_C_FILES)
52
53${ARCH}/%.$(OBJEXT): score/%.c $(ARCH)/$(dirstamp)
54        ${COMPILE} -o $@ -c $<
55${ARCH}/score.rel: $(score_rel_OBJECTS)
56        ${make-rel}
57
58## timer
59
60PGMS += $(ARCH)/timer.rel
61
62timer_C_FILES = timer/timer.c
63timer_rel_OBJECTS = $(timer_C_FILES:timer/%.c=$(ARCH)/%.$(OBJEXT))
64EXTRA_DIST += $(timer_C_FILES)
65
66${ARCH}/%.$(OBJEXT): timer/%.c $(ARCH)/$(dirstamp)
67        ${COMPILE} -o $@ -c $<
68${ARCH}/timer.rel: $(timer_rel_OBJECTS)
69        ${make-rel}
70
71all-local: $(PGMS) $(TMPINSTALL_FILES)
72
73.PRECIOUS: $(PGMS)
74
75PREINSTALL_FILES =
76
77$(PROJECT_INCLUDE)/sh/$(dirstamp):
78        @$(mkinstalldirs) $(PROJECT_INCLUDE)/sh
79        @: > $(PROJECT_INCLUDE)/sh/$(dirstamp)
80PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/$(dirstamp)
81
82$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
83        @$(mkinstalldirs) $(PROJECT_INCLUDE)/rtems/score
84        @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
85PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
86
87$(PROJECT_INCLUDE)/sh/io_types.h: include/io_types.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
88        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/io_types.h
89PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/io_types.h
90
91$(PROJECT_INCLUDE)/sh/sci.h: include/sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci.h
93PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci.h
94
95$(PROJECT_INCLUDE)/sh/sh7_pfc.h: include/sh7_pfc.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_pfc.h
97PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_pfc.h
98
99$(PROJECT_INCLUDE)/sh/sh7_sci.h: include/sh7_sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_sci.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_sci.h
102
103$(PROJECT_INCLUDE)/sh/sci_termios.h: include/sci_termios.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci_termios.h
105PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci_termios.h
106
107$(PROJECT_INCLUDE)/rtems/score/ispsh7045.h: include/ispsh7045.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7045.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7045.h
110
111$(PROJECT_INCLUDE)/rtems/score/iosh7045.h: include/iosh7045.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7045.h
113PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7045.h
114
115include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.