source: rtems/c/src/lib/libcpu/sh/sh7750/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 sh7750
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/sh/sh4uart.h
19include_rtems_score_HEADERS = include/rtems/score/sh7750_regs.h \
20    include/rtems/score/ipl.h include/rtems/score/iosh7750.h \
21    include/rtems/score/ispsh7750.h include/rtems/score/sh4_regs.h
22
23## clock
24EXTRA_PROGRAMS += clock.rel
25CLEANFILES += clock.rel
26clock_rel_SOURCES = clock/ckinit.c
27clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
28clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
29
30EXTRA_PROGRAMS += clock_g.rel
31CLEANFILES += clock_g.rel
32clock_g_rel_SOURCES = $(clock_rel_SOURCES)
33clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
34clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
35
36noinst_DATA += clock$(LIB_VARIANT).rel
37
38## sci
39EXTRA_PROGRAMS += sci.rel
40CLEANFILES += sci.rel
41sci_rel_SOURCES = sci/sh4uart.c
42sci_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
43sci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45EXTRA_PROGRAMS += sci_g.rel
46CLEANFILES += sci_g.rel
47sci_g_rel_SOURCES = $(sci_rel_SOURCES)
48sci_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
49sci_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
50
51noinst_DATA += sci$(LIB_VARIANT).rel
52
53## score
54EXTRA_PROGRAMS += score.rel
55CLEANFILES += score.rel
56score_rel_SOURCES = score/cpu_asm.c score/ispsh7750.c
57score_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
58score_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
59
60EXTRA_PROGRAMS += score_g.rel
61CLEANFILES += score_g.rel
62score_g_rel_SOURCES = $(score_rel_SOURCES)
63score_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
64score_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66noinst_DATA += score$(LIB_VARIANT).rel
67
68## timer
69EXTRA_PROGRAMS += timer.rel
70CLEANFILES += timer.rel
71timer_rel_SOURCES = timer/timer.c
72timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
73timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
74
75EXTRA_PROGRAMS += timer_g.rel
76CLEANFILES += timer_g.rel
77timer_g_rel_SOURCES = $(timer_rel_SOURCES)
78timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
79timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
80
81noinst_DATA += timer$(LIB_VARIANT).rel
82endif
83
84## --
85
86all-local: $(PREINSTALL_FILES)
87
88PREINSTALL_DIRS =
89PREINSTALL_FILES =
90
91if sh7750
92$(PROJECT_INCLUDE)/sh/$(dirstamp):
93        @$(mkdir_p) $(PROJECT_INCLUDE)/sh
94        @: > $(PROJECT_INCLUDE)/sh/$(dirstamp)
95PREINSTALL_DIRS += $(PROJECT_INCLUDE)/sh/$(dirstamp)
96
97$(PROJECT_INCLUDE)/rtems/score/$(dirstamp):
98        @$(mkdir_p) $(PROJECT_INCLUDE)/rtems/score
99        @: > $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
100PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
101
102$(PROJECT_INCLUDE)/sh/sh4uart.h: include/sh/sh4uart.h $(PROJECT_INCLUDE)/sh/$(dirstamp)
103        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sh/sh4uart.h
104PREINSTALL_FILES += $(PROJECT_INCLUDE)/sh/sh4uart.h
105
106$(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h: include/rtems/score/sh7750_regs.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
107        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h
108PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh7750_regs.h
109
110$(PROJECT_INCLUDE)/rtems/score/ipl.h: include/rtems/score/ipl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
111        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ipl.h
112PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ipl.h
113
114$(PROJECT_INCLUDE)/rtems/score/iosh7750.h: include/rtems/score/iosh7750.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
115        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/iosh7750.h
116PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/iosh7750.h
117
118$(PROJECT_INCLUDE)/rtems/score/ispsh7750.h: include/rtems/score/ispsh7750.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
119        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/ispsh7750.h
120PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/ispsh7750.h
121
122$(PROJECT_INCLUDE)/rtems/score/sh4_regs.h: include/rtems/score/sh4_regs.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
123        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/sh4_regs.h
124PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/sh4_regs.h
125endif
126
127CLEANFILES += $(PREINSTALL_FILES)
128DISTCLEANFILES = $(PREINSTALL_DIRS)
129
130include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.