source: rtems/c/src/lib/libbsp/i386/i386ex/Makefile.am @ 5b47c7f

4.104.114.84.95
Last change on this file since 5b47c7f was 5b47c7f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/30/04 at 01:45:14

2004-01-30 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Merge-in clock/Makefile.am, console/Makefile.am, network/Makefile.am, startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am. Use automake compilation rules.
  • clock/Makefile.am, console/Makefile.am, network/Makefile.am, startup/Makefile.am, timer/Makefile.am, wrapup/Makefile.am: Remove.
  • configure.ac: Reflect changes above.
  • 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        $(CCASCOMPILE) -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 ../shared/irq/idt.c \
29    ../shared/irq/irq.c ../shared/irq/irq_init.c ../shared/comm/i386-stub.c \
30    ../shared/comm/i386-stub-glue.c ../shared/comm/uart.c \
31    ../../shared/gnatinstallhandler.c ../shared/comm/gdb_glue.c \
32    ../shared/comm/tty_drv.c ../shared/irq/irq_asm.S
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
87EXTRA_PROGRAMS += network.rel
88CLEANFILES += network.rel
89network_rel_SOURCES = network/netexterns.h network/network.c \
90    network/uti596.h
91network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
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)
98network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
99
100noinst_DATA += network$(LIB_VARIANT).rel
101endif
102
103EXTRA_LIBRARIES = libbsp.a
104CLEANFILES += libbsp.a
105libbsp_a_SOURCES =
106libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
107    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
108if HAS_NETWORKING
109libbsp_a_LIBADD += network$(LIB_VARIANT).rel
110endif
111libbsp_a_LIBADD += ../../../libcpu/i386/cache$(LIB_VARIANT).rel \
112    ../../../libcpu/i386/score$(LIB_VARIANT).rel
113
114EXTRA_LIBRARIES += libbsp_g.a
115CLEANFILES += libbsp_g.a
116libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
117libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
118
119noinst_DATA += libbsp$(LIB_VARIANT).a
120
121all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
122
123PREINSTALL_DIRS =
124TMPINSTALL_FILES =
125
126$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
127        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
128PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
129
130$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
131        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
132TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
133
134$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
135        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
136TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
137
138CLEANFILES += $(PREINSTALL_FILES)
139DISTCLEANFILES = $(PREINSTALL_DIRS)
140CLEANFILES += $(TMPINSTALL_FILES)
141
142include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.