source: rtems/c/src/lib/libbsp/m68k/gen68302/Makefile.am @ 6128a4a

4.104.114.84.95
Last change on this file since 6128a4a was 2a7f9a28, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 19, 2004 at 6:22:18 AM

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

  • Makefile.am: Reflect changes to bsp.am. Preinstall dist_project_lib*.
  • Property mode set to 100644
File size: 5.5 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13nodist_include_HEADERS = include/bspopts.h
14
15EXTRA_PROGRAMS =
16CLEANFILES =
17noinst_DATA =
18
19include_HEADERS += include/coverhd.h
20include_HEADERS += include/m302_int.h
21
22EXTRA_DIST = times
23
24EXTRA_DIST += start/start.S
25start$(LIB_VARIANT).$(OBJEXT): start/start.S
26        $(CPPASCOMPILE) -DASM -o $@ -c $<
27project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
28
29dist_project_lib_DATA += startup/linkcmds
30
31EXTRA_PROGRAMS += startup.rel
32CLEANFILES += startup.rel
33startup_rel_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
34    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
35    ../../m68k/shared/m68kpretaskinghook.c ../../shared/main.c \
36    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
37    ../../shared/gnatinstallhandler.c
38startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
39startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
40
41EXTRA_PROGRAMS += startup_g.rel
42CLEANFILES += startup_g.rel
43startup_g_rel_SOURCES = $(startup_rel_SOURCES)
44startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
45startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47noinst_DATA += startup$(LIB_VARIANT).rel
48
49EXTRA_PROGRAMS += clock.rel
50CLEANFILES += clock.rel
51clock_rel_SOURCES = clock/ckinit.c
52clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
53clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55EXTRA_PROGRAMS += clock_g.rel
56CLEANFILES += clock_g.rel
57clock_g_rel_SOURCES = $(clock_rel_SOURCES)
58clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
59clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
60
61noinst_DATA += clock$(LIB_VARIANT).rel
62
63EXTRA_PROGRAMS += console.rel
64CLEANFILES += console.rel
65console_rel_SOURCES = console/console.c
66console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
67console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69EXTRA_PROGRAMS += console_g.rel
70CLEANFILES += console_g.rel
71console_g_rel_SOURCES = $(console_rel_SOURCES)
72console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
73console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
74
75noinst_DATA += console$(LIB_VARIANT).rel
76
77EXTRA_PROGRAMS += timer.rel
78CLEANFILES += timer.rel
79timer_rel_SOURCES = timer/timer.c timer/timerisr.S
80timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
81timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83EXTRA_PROGRAMS += timer_g.rel
84CLEANFILES += timer_g.rel
85timer_g_rel_SOURCES = $(timer_rel_SOURCES)
86timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
87timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
88
89noinst_DATA += timer$(LIB_VARIANT).rel
90
91if HAS_NETWORKING
92network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
93EXTRA_PROGRAMS += network.rel
94CLEANFILES += network.rel
95network_rel_SOURCES = network/network.c
96network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
97    $(network_CPPFLAGS)
98network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100EXTRA_PROGRAMS += network_g.rel
101CLEANFILES += network_g.rel
102network_g_rel_SOURCES = $(network_rel_SOURCES)
103network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
104    $(network_CPPFLAGS)
105network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
106
107noinst_DATA += network$(LIB_VARIANT).rel
108endif
109
110EXTRA_LIBRARIES = libbsp.a
111CLEANFILES += libbsp.a
112libbsp_a_SOURCES =
113libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
114    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
115if HAS_NETWORKING
116libbsp_a_LIBADD += network$(LIB_VARIANT).rel
117endif
118libbsp_a_LIBADD += \
119    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
120    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel
121
122EXTRA_LIBRARIES += libbsp_g.a
123CLEANFILES += libbsp_g.a
124libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
125libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
126
127noinst_DATA += libbsp$(LIB_VARIANT).a
128
129all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
130
131PREINSTALL_DIRS =
132PREINSTALL_FILES =
133TMPINSTALL_FILES =
134
135$(PROJECT_INCLUDE)/$(dirstamp):
136        @$(mkdir_p) $(PROJECT_INCLUDE)
137        @: > $(PROJECT_INCLUDE)/$(dirstamp)
138PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
139
140$(PROJECT_LIB)/$(dirstamp):
141        @$(mkdir_p) $(PROJECT_LIB)
142        @: > $(PROJECT_LIB)/$(dirstamp)
143PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
144
145$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
146        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
147PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
148
149$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
150        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
151PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
152
153$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
156
157$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
158        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
159PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
160
161$(PROJECT_INCLUDE)/m302_int.h: include/m302_int.h $(PROJECT_INCLUDE)/$(dirstamp)
162        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/m302_int.h
163PREINSTALL_FILES += $(PROJECT_INCLUDE)/m302_int.h
164
165$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
166        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
167TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
168
169$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
170        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
171PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
172
173CLEANFILES += $(PREINSTALL_FILES)
174DISTCLEANFILES = $(PREINSTALL_DIRS)
175CLEANFILES += $(TMPINSTALL_FILES)
176
177include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.