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

4.104.114.84.95
Last change on this file since b55e727 was b55e727, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/21/04 at 06:42:49

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

  • Makefile.am: Unconditionally build subdirs sh7032, sh7045, sh7750.
  • configure.ac: Merge-in sh7032/configure.ac, sh7045/configure.ac, sh7750/configure.ac. Add AM_CONDITIONALS sh7032, sh7045, sh7750.
  • sh7032/Makefile.am, sh7045/Makefile.am, sh7750/Makefile.am: Reflect changes above. Add PREINSTALL_DIRS.
  • sh7032/configure.ac, sh7045/configure.ac, sh7750/configure.ac: Remove.
  • sh7032/.cvsignore, sh7045/.cvsignore, sh7750/.cvsignore: Reflect changes above.
  • Property mode set to 100644
File size: 4.2 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/../../../automake/compile.am
6include $(top_srcdir)/../../../automake/lib.am
7
8CLEANFILES =
9EXTRA_PROGRAMS =
10noinst_DATA =
11
12if sh7045
13# NOTE: Unlike other CPUS, we install into a subdirectory to avoid
14#       file name conflicts
15include_shdir = $(includedir)/sh
16include_rtems_scoredir = $(includedir)/rtems/score
17
18include_sh_HEADERS = include/io_types.h include/sci.h include/sh7_pfc.h \
19    include/sh7_sci.h include/sci_termios.h
20include_rtems_score_HEADERS = include/ispsh7045.h include/iosh7045.h
21
22# clock
23EXTRA_PROGRAMS += clock.rel
24CLEANFILES += clock.rel
25clock_rel_SOURCES = clock/ckinit.c
26clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
27clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
28
29EXTRA_PROGRAMS += clock_g.rel
30CLEANFILES += clock_g.rel
31clock_g_rel_SOURCES = $(clock_rel_SOURCES)
32clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
33clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34
35noinst_DATA += clock$(LIB_VARIANT).rel
36
37# sci
38EXTRA_PROGRAMS += sci.rel
39CLEANFILES += sci.rel
40sci_rel_SOURCES = sci/sci.c sci/sci_termios.c
41sci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
42sci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44EXTRA_PROGRAMS += sci_g.rel
45CLEANFILES += sci_g.rel
46sci_g_rel_SOURCES = $(sci_rel_SOURCES)
47sci_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
48sci_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_DATA += sci$(LIB_VARIANT).rel
51
52# score
53EXTRA_PROGRAMS += score.rel
54CLEANFILES += score.rel
55score_rel_SOURCES = score/cpu_asm.c score/ispsh7045.c
56score_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
57score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
58
59EXTRA_PROGRAMS += score_g.rel
60CLEANFILES += score_g.rel
61score_g_rel_SOURCES = $(score_rel_SOURCES)
62score_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
63score_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64
65noinst_DATA += score$(LIB_VARIANT).rel
66
67## timer
68EXTRA_PROGRAMS += timer.rel
69CLEANFILES += timer.rel
70timer_rel_SOURCES = timer/timer.c
71timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
72timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
73
74EXTRA_PROGRAMS += timer_g.rel
75CLEANFILES += timer_g.rel
76timer_g_rel_SOURCES = $(timer_rel_SOURCES)
77timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
78timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
79
80noinst_DATA += timer$(LIB_VARIANT).rel
81endif
82
83all-local: $(PREINSTALL_FILES)
84
85PREINSTALL_DIRS =
86PREINSTALL_FILES =
87
88if sh7045
89$(PROJECT_INCLUDE)/sh/$(dirstamp):
90        @$(mkdir_p) $(PROJECT_INCLUDE)/sh
91        @: > $(PROJECT_INCLUDE)/sh/$(dirstamp)
92PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sh/$(dirstamp)
93
94$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
95        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score
96        @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
97PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
98
99$(PROJECT_INCLUDE)/sh/io_types.h: include/io_types.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/io_types.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/io_types.h
102
103$(PROJECT_INCLUDE)/sh/sci.h: include/sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci.h
105PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci.h
106
107$(PROJECT_INCLUDE)/sh/sh7_pfc.h: include/sh7_pfc.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_pfc.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_pfc.h
110
111$(PROJECT_INCLUDE)/sh/sh7_sci.h: include/sh7_sci.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh7_sci.h
113PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh7_sci.h
114
115$(PROJECT_INCLUDE)/sh/sci_termios.h: include/sci_termios.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sci_termios.h
117PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sci_termios.h
118
119$(PROJECT_INCLUDE)/rtems/score/ispsh7045.h: include/ispsh7045.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
120        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7045.h
121PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7045.h
122
123$(PROJECT_INCLUDE)/rtems/score/iosh7045.h: include/iosh7045.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
124        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7045.h
125PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7045.h
126endif
127
128CLEANFILES += $(PREINSTALL_FILES)
129DISTCLEANFILES = $(PREINSTALL_DIRS)
130
131include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.