source: rtems/c/src/lib/libbsp/sparc/erc32/Makefile.am @ af333d7

4.104.114.84.9
Last change on this file since af333d7 was af333d7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 6, 2004 at 8:15:06 AM

2004-02-06 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Pickup files from ../../sparc/shared instead of ../shared. Reformat.
  • Property mode set to 100644
File size: 5.2 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10EXTRA_PROGRAMS =
11CLEANFILES =
12noinst_DATA =
13
14SUBDIRS = . tools
15
16include_HEADERS += include/erc32.h
17include_HEADERS += include/coverhd.h
18
19EXTRA_DIST = ../../sparc/shared/start.S
20start$(LIB_VARIANT).$(OBJEXT): ../../sparc/shared/start.S
21        ${CCASCOMPILE} -DASM -o $@ -c $<
22project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
23
24dist_project_lib_DATA += startup/linkcmds
25
26EXTRA_PROGRAMS += startup.rel
27CLEANFILES += startup.rel
28startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
29    ../../shared/bsppost.c ../../sparc/shared/bspstart.c ../../shared/main.c \
30    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
31    startup/spurious.c startup/erc32mec.c startup/boardinit.S
32startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
33startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
34
35EXTRA_PROGRAMS += startup_g.rel
36CLEANFILES += startup_g.rel
37startup_g_rel_SOURCES = $(startup_rel_SOURCES)
38startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
39startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41noinst_DATA += startup$(LIB_VARIANT).rel
42
43EXTRA_PROGRAMS += gnatsupp.rel
44CLEANFILES += gnatsupp.rel
45gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
46gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49EXTRA_PROGRAMS += gnatsupp_g.rel
50CLEANFILES += gnatsupp_g.rel
51gnatsupp_g_rel_SOURCES = $(gnatsupp_rel_SOURCES)
52gnatsupp_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
53gnatsupp_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_DATA += gnatsupp$(LIB_VARIANT).rel
56
57EXTRA_PROGRAMS += console.rel
58CLEANFILES += console.rel
59console_rel_SOURCES = console/console.c console/consolereserveresources.c \
60    console/debugputs.c
61console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
62console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
63
64EXTRA_PROGRAMS += console_g.rel
65CLEANFILES += console_g.rel
66console_g_rel_SOURCES = $(console_rel_SOURCES)
67console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
68console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
69
70noinst_DATA += console$(LIB_VARIANT).rel
71
72EXTRA_PROGRAMS += clock.rel
73CLEANFILES += clock.rel
74clock_rel_SOURCES = clock/ckinit.c
75clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
76clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78EXTRA_PROGRAMS += clock_g.rel
79CLEANFILES += clock_g.rel
80clock_g_rel_SOURCES = $(clock_rel_SOURCES)
81clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
82clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84noinst_DATA += clock$(LIB_VARIANT).rel
85
86EXTRA_PROGRAMS += timer.rel
87CLEANFILES += timer.rel
88timer_rel_SOURCES = timer/timer.c
89timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
90timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
91
92EXTRA_PROGRAMS += timer_g.rel
93CLEANFILES += timer_g.rel
94timer_g_rel_SOURCES = $(timer_rel_SOURCES)
95timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
96timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
97
98noinst_DATA += timer$(LIB_VARIANT).rel
99
100if HAS_NETWORKING
101erc32sonic_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
102EXTRA_PROGRAMS += erc32sonic.rel
103CLEANFILES += erc32sonic.rel
104erc32sonic_rel_SOURCES = erc32sonic/erc32sonic.c
105erc32sonic_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
106    $(erc32sonic_CPPFLAGS)
107erc32sonic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
108
109EXTRA_PROGRAMS += erc32sonic_g.rel
110CLEANFILES += erc32sonic_g.rel
111erc32sonic_g_rel_SOURCES = $(erc32sonic_rel_SOURCES)
112erc32sonic_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
113    $(erc32sonic_CPPFLAGS)
114erc32sonic_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
115
116noinst_DATA += erc32sonic$(LIB_VARIANT).rel
117endif
118
119EXTRA_LIBRARIES = libbsp.a
120CLEANFILES += libbsp.a
121libbsp_a_SOURCES =
122libbsp_a_LIBADD = startup$(LIB_VARIANT).rel console$(LIB_VARIANT).rel \
123    clock$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel \
124    gnatsupp$(LIB_VARIANT).rel
125if HAS_NETWORKING
126libbsp_a_LIBADD += erc32sonic$(LIB_VARIANT).rel
127endif
128
129libbsp_a_LIBADD += ../../../libcpu/sparc/cache$(LIB_VARIANT).rel \
130    ../../../libcpu/sparc/reg_win$(LIB_VARIANT).rel \
131    ../../../libcpu/sparc/syscall$(LIB_VARIANT).rel
132
133EXTRA_LIBRARIES += libbsp_g.a
134CLEANFILES += libbsp_g.a
135libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
136libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
137
138noinst_DATA += libbsp$(LIB_VARIANT).a
139
140all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
141
142EXTRA_DIST += times
143
144PREINSTALL_DIRS =
145TMPINSTALL_FILES =
146
147$(PROJECT_INCLUDE)/erc32.h: include/erc32.h $(PROJECT_INCLUDE)/$(dirstamp)
148        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/erc32.h
149PREINSTALL_FILES += $(PROJECT_INCLUDE)/erc32.h
150
151$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
152        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
153PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
154
155$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
156        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
157TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
158
159$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
160        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
161TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
162
163CLEANFILES += $(PREINSTALL_FILES)
164DISTCLEANFILES = $(PREINSTALL_DIRS)
165CLEANFILES += $(TMPINSTALL_FILES)
166
167include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.