source: rtems/c/src/lib/libbsp/i386/ts_386ex/Makefile.am @ 6b4518aa

4.104.114.84.95
Last change on this file since 6b4518aa was 6b4518aa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 08:56:17

Fix typo.

  • Property mode set to 100644
File size: 4.4 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7include $(top_srcdir)/../../../../automake/compile.am
8include $(top_srcdir)/../../bsp.am
9
10dist_project_lib_DATA = bsp_specs
11
12include_HEADERS = include/bsp.h
13include_HEADERS += include/tm27.h
14
15nodist_include_HEADERS = include/bspopts.h
16DISTCLEANFILES = include/bspopts.h
17
18noinst_PROGRAMS =
19
20# wrapup is the one that actually builds and installs the library
21# from the individual .rel files built in other directories
22SUBDIRS = . tools
23
24include_HEADERS += include/coverhd.h
25
26noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc \
27    start/ts_1325.inc
28EXTRA_DIST = start/start.S
29start.$(OBJEXT): start/start.S
30        $(CPPASCOMPILE) -DASM -o $@ -c $<
31
32project_lib_DATA = start.$(OBJEXT)
33
34dist_project_lib_DATA += startup/linkcmds
35
36noinst_PROGRAMS += startup.rel
37startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
38    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
39    ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
40    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
41    ../../i386/shared/comm/i386-stub.c \
42    ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \
43    ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \
44    ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S
45startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
46startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48noinst_PROGRAMS += clock.rel
49clock_rel_SOURCES = clock/ckinit.c clock/rtc.c
50clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
51clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53noinst_PROGRAMS += console.rel
54console_rel_SOURCES = console/console.c
55console_rel_CPPFLAGS = $(AM_CPPFLAGS)
56console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58noinst_PROGRAMS += timer.rel
59timer_rel_SOURCES = timer/timer.c timer/timerisr.S
60timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
61timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63if HAS_NETWORKING
64include_HEADERS += include/wd80x3.h
65
66# dec21140 is supported via libchip
67# FIXME: Do we really need these flags?
68network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
69noinst_PROGRAMS += network.rel
70network_rel_SOURCES = network/ne2000.c network/wd80x3.h
71network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
72network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
73endif
74
75noinst_LIBRARIES = libbsp.a
76libbsp_a_SOURCES =
77libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
78if HAS_NETWORKING
79libbsp_a_LIBADD += network.rel
80endif
81libbsp_a_LIBADD += ../../../libcpu/i386/cache.rel \
82    ../../../libcpu/i386/score.rel
83
84all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
85
86PREINSTALL_DIRS =
87PREINSTALL_FILES =
88TMPINSTALL_FILES =
89
90$(PROJECT_INCLUDE)/$(dirstamp):
91        @$(mkdir_p) $(PROJECT_INCLUDE)
92        @: > $(PROJECT_INCLUDE)/$(dirstamp)
93PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
94
95$(PROJECT_LIB)/$(dirstamp):
96        @$(mkdir_p) $(PROJECT_LIB)
97        @: > $(PROJECT_LIB)/$(dirstamp)
98PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
99
100$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
101        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
102PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
103
104$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
105        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
106PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
107
108$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
110PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
111
112$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
114PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
115
116$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
118PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
119
120$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
121        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
122TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
123
124$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
125        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
126PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
127
128if HAS_NETWORKING
129$(PROJECT_INCLUDE)/wd80x3.h: include/wd80x3.h $(PROJECT_INCLUDE)/$(dirstamp)
130        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/wd80x3.h
131PREINSTALL_FILES += $(PROJECT_INCLUDE)/wd80x3.h
132endif
133
134CLEANFILES = $(PREINSTALL_FILES)
135DISTCLEANFILES += $(PREINSTALL_DIRS)
136CLEANFILES += $(TMPINSTALL_FILES)
137
138include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.