source: rtems/c/src/lib/libbsp/i386/i386ex/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.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
10EXTRA_PROGRAMS =
11CLEANFILES =
12noinst_DATA =
13
14include_HEADERS += include/coverhd.h
15
16noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc
17EXTRA_DIST = start/start.S
18start$(LIB_VARIANT).$(OBJEXT): start/start.S
19        $(CPPASCOMPILE) -DASM -o $@ -c $<
20
21project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
22dist_project_lib_DATA += startup/linkcmds
23
24EXTRA_PROGRAMS += startup.rel
25CLEANFILES += startup.rel
26startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
27    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
28    ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
29    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
30    ../../i386/shared/comm/i386-stub.c \
31    ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \
32    ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \
33    ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S
34startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
35startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
36
37EXTRA_PROGRAMS += startup_g.rel
38CLEANFILES += startup_g.rel
39startup_g_rel_SOURCES = $(startup_rel_SOURCES)
40startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
41startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43noinst_DATA += startup$(LIB_VARIANT).rel
44
45EXTRA_PROGRAMS += clock.rel
46CLEANFILES += clock.rel
47clock_rel_SOURCES = clock/ckinit.c
48clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
49clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
50
51EXTRA_PROGRAMS += clock_g.rel
52CLEANFILES += clock_g.rel
53clock_g_rel_SOURCES = $(clock_rel_SOURCES)
54clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
55clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57noinst_DATA += clock$(LIB_VARIANT).rel
58
59EXTRA_PROGRAMS += console.rel
60CLEANFILES += console.rel
61console_rel_SOURCES = console/console.c
62console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
63console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64
65EXTRA_PROGRAMS += console_g.rel
66CLEANFILES += console_g.rel
67console_g_rel_SOURCES = $(console_rel_SOURCES)
68console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
69console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
70
71noinst_DATA += console$(LIB_VARIANT).rel
72
73EXTRA_PROGRAMS += timer.rel
74CLEANFILES += timer.rel
75timer_rel_SOURCES = timer/timer.c timer/timerisr.S
76timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
77timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78
79EXTRA_PROGRAMS += timer_g.rel
80CLEANFILES += timer_g.rel
81timer_g_rel_SOURCES = $(timer_rel_SOURCES)
82timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
83timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
84
85noinst_DATA += timer$(LIB_VARIANT).rel
86
87if HAS_NETWORKING
88EXTRA_PROGRAMS += network.rel
89CLEANFILES += network.rel
90network_rel_SOURCES = network/netexterns.h network/network.c \
91    network/uti596.h
92network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
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)
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 += ../../../libcpu/i386/cache$(LIB_VARIANT).rel \
113    ../../../libcpu/i386/score$(LIB_VARIANT).rel
114
115EXTRA_LIBRARIES += libbsp_g.a
116CLEANFILES += libbsp_g.a
117libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
118libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
119
120noinst_DATA += libbsp$(LIB_VARIANT).a
121
122all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
123
124PREINSTALL_DIRS =
125TMPINSTALL_FILES =
126
127$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
128        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
129PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
130
131$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
132        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
133TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
134
135$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
136        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
137TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
138
139CLEANFILES += $(PREINSTALL_FILES)
140DISTCLEANFILES = $(PREINSTALL_DIRS)
141CLEANFILES += $(TMPINSTALL_FILES)
142
143include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.