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

4.104.114.84.9
Last change on this file since c24d7c84 was c24d7c84, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2004 at 9:08:05 AM

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

  • Makefile.am: Use CPPASCOMPILE instead of CCASCOMPILE.
  • Property mode set to 100644
File size: 4.6 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
14include_HEADERS += include/coverhd.h
15include_HEADERS += include/m302_int.h
16
17EXTRA_DIST = times
18
19EXTRA_DIST += start/start.S
20start$(LIB_VARIANT).$(OBJEXT): start/start.S
21        $(CPPASCOMPILE) -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 = startup/bspclean.c ../../shared/bsplibc.c \
29    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
30    ../../m68k/shared/m68kpretaskinghook.c ../../shared/main.c \
31    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
32    ../../shared/gnatinstallhandler.c
33startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
34startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
35
36EXTRA_PROGRAMS += startup_g.rel
37CLEANFILES += startup_g.rel
38startup_g_rel_SOURCES = $(startup_rel_SOURCES)
39startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
40startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
41
42noinst_DATA += startup$(LIB_VARIANT).rel
43
44EXTRA_PROGRAMS += clock.rel
45CLEANFILES += clock.rel
46clock_rel_SOURCES = clock/ckinit.c
47clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
48clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50EXTRA_PROGRAMS += clock_g.rel
51CLEANFILES += clock_g.rel
52clock_g_rel_SOURCES = $(clock_rel_SOURCES)
53clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
54clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
55
56noinst_DATA += clock$(LIB_VARIANT).rel
57
58EXTRA_PROGRAMS += console.rel
59CLEANFILES += console.rel
60console_rel_SOURCES = console/console.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 += timer.rel
73CLEANFILES += timer.rel
74timer_rel_SOURCES = timer/timer.c timer/timerisr.S
75timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
76timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78EXTRA_PROGRAMS += timer_g.rel
79CLEANFILES += timer_g.rel
80timer_g_rel_SOURCES = $(timer_rel_SOURCES)
81timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
82timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
83
84noinst_DATA += timer$(LIB_VARIANT).rel
85
86if HAS_NETWORKING
87network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
88EXTRA_PROGRAMS += network.rel
89CLEANFILES += network.rel
90network_rel_SOURCES = network/network.c
91network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
92    $(network_CPPFLAGS)
93network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
94
95EXTRA_PROGRAMS += network_g.rel
96CLEANFILES += network_g.rel
97network_g_rel_SOURCES = $(network_rel_SOURCES)
98network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
99    $(network_CPPFLAGS)
100network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
101
102noinst_DATA += network$(LIB_VARIANT).rel
103endif
104
105EXTRA_LIBRARIES = libbsp.a
106CLEANFILES += libbsp.a
107libbsp_a_SOURCES =
108libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
109    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
110if HAS_NETWORKING
111libbsp_a_LIBADD += network$(LIB_VARIANT).rel
112endif
113libbsp_a_LIBADD += \
114    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
115    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel
116
117EXTRA_LIBRARIES += libbsp_g.a
118CLEANFILES += libbsp_g.a
119libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
120libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
121
122noinst_DATA += libbsp$(LIB_VARIANT).a
123
124all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
125
126PREINSTALL_DIRS =
127TMPINSTALL_FILES =
128
129$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
130        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
131PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
132
133$(PROJECT_INCLUDE)/m302_int.h: include/m302_int.h $(PROJECT_INCLUDE)/$(dirstamp)
134        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/m302_int.h
135PREINSTALL_FILES += $(PROJECT_INCLUDE)/m302_int.h
136
137$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
138        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
139TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
140
141$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
142        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
143TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
144
145CLEANFILES += $(PREINSTALL_FILES)
146DISTCLEANFILES = $(PREINSTALL_DIRS)
147CLEANFILES += $(TMPINSTALL_FILES)
148
149include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.