source: rtems/c/src/lib/libbsp/m68k/gen68360/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.9 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
15
16EXTRA_DIST = start/start.S
17start$(LIB_VARIANT).$(OBJEXT): start/start.S
18        $(CPPASCOMPILE) -DASM -o $@ -c $<
19project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
20
21dist_project_lib_DATA += startup/linkcmds startup/linkcmds.prom \
22    startup/linkcmds.bootp
23
24EXTRA_PROGRAMS += startup.rel
25CLEANFILES += startup.rel
26startup_rel_SOURCES = startup/alloc360.c startup/bspclean.c \
27    ../../shared/bsplibc.c ../../shared/bsppost.c \
28    ../../m68k/shared/m68kpretaskinghook.c startup/bspstart.c \
29    startup/init68360.c ../../shared/bootcard.c ../../shared/main.c \
30    ../../shared/sbrk.c ../../m68k/shared/setvec.c \
31    ../../shared/gnatinstallhandler.c
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 += clock.rel
44CLEANFILES += clock.rel
45clock_rel_SOURCES = clock/clock.c
46clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
47clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49EXTRA_PROGRAMS += clock_g.rel
50CLEANFILES += clock_g.rel
51clock_g_rel_SOURCES = $(clock_rel_SOURCES)
52clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
53clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
54
55noinst_DATA += clock$(LIB_VARIANT).rel
56
57EXTRA_PROGRAMS += console.rel
58CLEANFILES += console.rel
59console_rel_SOURCES = console/console.c console/consolereserveresources.c
60console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
61console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63EXTRA_PROGRAMS += console_g.rel
64CLEANFILES += console_g.rel
65console_g_rel_SOURCES = $(console_rel_SOURCES)
66console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
67console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
68
69noinst_DATA += console$(LIB_VARIANT).rel
70
71EXTRA_PROGRAMS += timer.rel
72CLEANFILES += timer.rel
73timer_rel_SOURCES = timer/timer.c
74timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
75timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77EXTRA_PROGRAMS += timer_g.rel
78CLEANFILES += timer_g.rel
79timer_g_rel_SOURCES = $(timer_rel_SOURCES)
80timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
81timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
82
83noinst_DATA += timer$(LIB_VARIANT).rel
84
85if HAS_NETWORKING
86network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
87EXTRA_PROGRAMS += network.rel
88CLEANFILES += network.rel
89network_rel_SOURCES = network/network.c
90network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
91    $(network_CPPFLAGS)
92network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
93
94EXTRA_PROGRAMS += network_g.rel
95CLEANFILES += network_g.rel
96network_g_rel_SOURCES = $(network_rel_SOURCES)
97network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
98    $(network_CPPFLAGS)
99network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
100
101noinst_DATA += network$(LIB_VARIANT).rel
102endif
103
104EXTRA_LIBRARIES = libbsp.a
105CLEANFILES += libbsp.a
106libbsp_a_SOURCES =
107libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
108    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
109if HAS_NETWORKING
110libbsp_a_LIBADD += network$(LIB_VARIANT).rel
111endif
112libbsp_a_LIBADD += \
113    ../../../libcpu/@RTEMS_CPU@/shared/cache$(LIB_VARIANT).rel \
114    ../../../libcpu/@RTEMS_CPU@/shared/misc$(LIB_VARIANT).rel
115if HAS_FPSP
116libbsp_a_LIBADD += \
117    ../../../libcpu/@RTEMS_CPU@/@RTEMS_CPU_MODEL@/fpsp$(LIB_VARIANT).rel
118endif
119
120EXTRA_LIBRARIES += libbsp_g.a
121CLEANFILES += libbsp_g.a
122libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
123libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
124
125noinst_DATA += libbsp$(LIB_VARIANT).a
126
127all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
128
129PREINSTALL_DIRS =
130TMPINSTALL_FILES =
131
132$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
133        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
134PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
135
136$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
137        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
138TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
139
140$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
142TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
143
144$(PROJECT_LIB)/linkcmds.prom: startup/linkcmds.prom $(PROJECT_LIB)/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.prom
146TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.prom
147
148$(PROJECT_LIB)/linkcmds.bootp: startup/linkcmds.bootp $(PROJECT_LIB)/$(dirstamp)
149        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.bootp
150TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds.bootp
151
152CLEANFILES += $(PREINSTALL_FILES)
153DISTCLEANFILES = $(PREINSTALL_DIRS)
154CLEANFILES += $(TMPINSTALL_FILES)
155
156include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.