source: rtems/c/src/lib/libbsp/i386/ts_386ex/Makefile.am @ 341c592f

4.104.114.84.95
Last change on this file since 341c592f was 341c592f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/06/04 at 08:05:55

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

  • Makefile.am: Pickup files from ../../i386/shared instead of ../shared. Reformat.
  • Property mode set to 100644
File size: 5.1 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
14# wrapup is the one that actually builds and installs the library
15# from the individual .rel files built in other directories
16SUBDIRS = . tools
17
18include_HEADERS += include/coverhd.h
19
20noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc \
21    start/ts_1325.inc
22EXTRA_DIST = start/start.S
23start$(LIB_VARIANT).$(OBJEXT): start/start.S
24        $(CCASCOMPILE) -DASM -o $@ -c $<
25
26project_lib_DATA = start$(LIB_VARIANT).$(OBJEXT)
27
28dist_project_lib_DATA += startup/linkcmds
29
30EXTRA_PROGRAMS += startup.rel
31CLEANFILES += startup.rel
32startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
33    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
34    ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
35    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
36    ../../i386/shared/comm/i386-stub.c \
37    ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \
38    ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \
39    ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S
40startup_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
41startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
42
43EXTRA_PROGRAMS += startup_g.rel
44CLEANFILES += startup_g.rel
45startup_g_rel_SOURCES = $(startup_rel_SOURCES)
46startup_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
47startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_DATA += startup$(LIB_VARIANT).rel
50
51EXTRA_PROGRAMS += clock.rel
52CLEANFILES += clock.rel
53clock_rel_SOURCES = clock/ckinit.c clock/rtc.c
54clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
55clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57EXTRA_PROGRAMS += clock_g.rel
58CLEANFILES += clock_g.rel
59clock_g_rel_SOURCES = $(clock_rel_SOURCES)
60clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
61clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63noinst_DATA += clock$(LIB_VARIANT).rel
64
65EXTRA_PROGRAMS += console.rel
66CLEANFILES += console.rel
67console_rel_SOURCES = console/console.c
68console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
69console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
70
71EXTRA_PROGRAMS += console_g.rel
72CLEANFILES += console_g.rel
73console_g_rel_SOURCES = $(console_rel_SOURCES)
74console_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
75console_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77noinst_DATA += console$(LIB_VARIANT).rel
78
79EXTRA_PROGRAMS += timer.rel
80CLEANFILES += timer.rel
81timer_rel_SOURCES = timer/timer.c timer/timerisr.S
82timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
83timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
84
85EXTRA_PROGRAMS += timer_g.rel
86CLEANFILES += timer_g.rel
87timer_g_rel_SOURCES = $(timer_rel_SOURCES)
88timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
89timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90
91noinst_DATA += timer$(LIB_VARIANT).rel
92
93if HAS_NETWORKING
94include_HEADERS += include/wd80x3.h
95
96# dec21140 is supported via libchip
97# FIXME: Do we really need these flags?
98network_CPPFLAGS = -D_COMPILING_BSD_KERNEL_ -DKERNEL -DINET -DNFS \
99    -DDIAGNOSTIC -DBOOTP_COMPAT
100EXTRA_PROGRAMS += network.rel
101CLEANFILES += network.rel
102network_rel_SOURCES = network/ne2000.c network/wd80x3.h
103network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V) \
104    $(network_CPPFLAGS)
105network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
106
107EXTRA_PROGRAMS += network_g.rel
108CLEANFILES += network_g.rel
109network_g_rel_SOURCES = $(network_rel_SOURCES)
110network_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V) \
111    $(network_CPPFLAGS)
112network_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
113
114noinst_DATA += network$(LIB_VARIANT).rel
115endif
116
117EXTRA_LIBRARIES = libbsp.a
118CLEANFILES += libbsp.a
119libbsp_a_SOURCES =
120libbsp_a_LIBADD = startup$(LIB_VARIANT).rel clock$(LIB_VARIANT).rel \
121    console$(LIB_VARIANT).rel timer$(LIB_VARIANT).rel
122if HAS_NETWORKING
123libbsp_a_LIBADD += network$(LIB_VARIANT).rel
124endif
125libbsp_a_LIBADD += ../../../libcpu/i386/cache$(LIB_VARIANT).rel \
126    ../../../libcpu/i386/score$(LIB_VARIANT).rel
127
128EXTRA_LIBRARIES += libbsp_g.a
129CLEANFILES += libbsp_g.a
130libbsp_g_a_SOURCES = $(libbsp_a_SOURCES)
131libbsp_g_a_LIBADD = $(libbsp_a_LIBADD)
132
133noinst_DATA += libbsp$(LIB_VARIANT).a
134
135all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
136
137PREINSTALL_DIRS =
138TMPINSTALL_FILES =
139
140$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
141        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
142PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
143
144$(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT): start$(LIB_VARIANT).$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
145        $(INSTALL_DATA) $< $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
146TMPINSTALL_FILES += $(PROJECT_LIB)/start$(LIB_VARIANT).$(OBJEXT)
147
148$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
149        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
150TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
151
152if HAS_NETWORKING
153$(PROJECT_INCLUDE)/wd80x3.h: include/wd80x3.h $(PROJECT_INCLUDE)/$(dirstamp)
154        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/wd80x3.h
155PREINSTALL_FILES += $(PROJECT_INCLUDE)/wd80x3.h
156endif
157
158CLEANFILES += $(PREINSTALL_FILES)
159DISTCLEANFILES = $(PREINSTALL_DIRS)
160CLEANFILES += $(TMPINSTALL_FILES)
161
162include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.