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

4.104.114.84.9
Last change on this file since cba119c9 was 8d62d94a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2005 at 8:04:01 AM

2005-10-17 Ralf Corsepius <ralf.corsepius@…>

  • Makefile.am: Install/preinstall headers from ../../i386/shared.
  • Property mode set to 100644
File size: 5.3 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
26include_bspdir = $(includedir)/bsp
27include_bsp_HEADERS = ../../i386/shared/irq/irq.h \
28    ../../i386/shared/irq/irq_asm.h
29
30noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc \
31    start/ts_1325.inc
32EXTRA_DIST = start/start.S
33start.$(OBJEXT): start/start.S
34        $(CPPASCOMPILE) -DASM -o $@ -c $<
35
36project_lib_DATA = start.$(OBJEXT)
37
38dist_project_lib_DATA += startup/linkcmds
39
40noinst_PROGRAMS += startup.rel
41include_HEADERS += ../../i386/shared/comm/uart.h
42startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
43    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
44    ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
45    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
46    ../../i386/shared/comm/i386-stub.c \
47    ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \
48    ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \
49    ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S
50startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
51startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
52
53noinst_PROGRAMS += clock.rel
54clock_rel_SOURCES = clock/ckinit.c clock/rtc.c
55clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
56clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
57
58noinst_PROGRAMS += console.rel
59console_rel_SOURCES = console/console.c
60console_rel_CPPFLAGS = $(AM_CPPFLAGS)
61console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63noinst_PROGRAMS += timer.rel
64timer_rel_SOURCES = timer/timer.c timer/timerisr.S
65timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
66timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
67
68if HAS_NETWORKING
69include_HEADERS += include/wd80x3.h
70
71# dec21140 is supported via libchip
72# FIXME: Do we really need these flags?
73network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
74noinst_PROGRAMS += network.rel
75network_rel_SOURCES = network/ne2000.c network/wd80x3.h
76network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
77network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
78endif
79
80noinst_LIBRARIES = libbsp.a
81libbsp_a_SOURCES =
82libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
83if HAS_NETWORKING
84libbsp_a_LIBADD += network.rel
85endif
86libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
87    ../../../libcpu/@RTEMS_CPU@/score.rel
88
89all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
90
91PREINSTALL_DIRS =
92PREINSTALL_FILES =
93TMPINSTALL_FILES =
94
95$(PROJECT_INCLUDE)/$(dirstamp):
96        @$(mkdir_p) $(PROJECT_INCLUDE)
97        @: > $(PROJECT_INCLUDE)/$(dirstamp)
98PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
99
100$(PROJECT_LIB)/$(dirstamp):
101        @$(mkdir_p) $(PROJECT_LIB)
102        @: > $(PROJECT_LIB)/$(dirstamp)
103PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
104
105$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
106        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
107PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
108
109$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
110        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
111PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
112
113$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
114        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
115PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
116
117$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
118        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
119PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
120
121$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
122        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
123PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
124
125$(PROJECT_INCLUDE)/bsp/$(dirstamp):
126        @$(mkdir_p) $(PROJECT_INCLUDE)/bsp
127        @: > $(PROJECT_INCLUDE)/bsp/$(dirstamp)
128PREINSTALL_DIRS += $(PROJECT_INCLUDE)/bsp/$(dirstamp)
129
130$(PROJECT_INCLUDE)/bsp/irq.h: ../../i386/shared/irq/irq.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
131        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq.h
132PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq.h
133
134$(PROJECT_INCLUDE)/bsp/irq_asm.h: ../../i386/shared/irq/irq_asm.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
135        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq_asm.h
136PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq_asm.h
137
138$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
139        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
140TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
141
142$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
143        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
144PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
145
146$(PROJECT_INCLUDE)/uart.h: ../../i386/shared/comm/uart.h $(PROJECT_INCLUDE)/$(dirstamp)
147        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/uart.h
148PREINSTALL_FILES += $(PROJECT_INCLUDE)/uart.h
149
150if HAS_NETWORKING
151$(PROJECT_INCLUDE)/wd80x3.h: include/wd80x3.h $(PROJECT_INCLUDE)/$(dirstamp)
152        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/wd80x3.h
153PREINSTALL_FILES += $(PROJECT_INCLUDE)/wd80x3.h
154endif
155
156CLEANFILES = $(PREINSTALL_FILES)
157DISTCLEANFILES += $(PREINSTALL_DIRS)
158CLEANFILES += $(TMPINSTALL_FILES)
159
160include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.