source: rtems/c/src/lib/libbsp/i386/i386ex/Makefile.am @ 9d83387b

4.104.114.84.95
Last change on this file since 9d83387b was 9d83387b, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 3:02:15 AM

Cosmetics.

  • Property mode set to 100644
File size: 3.9 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
20include_HEADERS += include/coverhd.h
21
22noinst_HEADERS = start/80386ex.h start/80386ex.inc start/macros.inc
23EXTRA_DIST = start/start.S
24start.$(OBJEXT): start/start.S
25        $(CPPASCOMPILE) -DASM -o $@ -c $<
26
27project_lib_DATA = start.$(OBJEXT)
28dist_project_lib_DATA += startup/linkcmds
29
30noinst_PROGRAMS += startup.rel
31startup_rel_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
32    ../../shared/bsppost.c startup/bspstart.c ../../shared/bootcard.c \
33    ../../shared/main.c ../../shared/sbrk.c ../../i386/shared/irq/idt.c \
34    ../../i386/shared/irq/irq.c ../../i386/shared/irq/irq_init.c \
35    ../../i386/shared/comm/i386-stub.c \
36    ../../i386/shared/comm/i386-stub-glue.c ../../i386/shared/comm/uart.c \
37    ../../shared/gnatinstallhandler.c ../../i386/shared/comm/gdb_glue.c \
38    ../../i386/shared/comm/tty_drv.c ../../i386/shared/irq/irq_asm.S
39startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
40startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
41
42noinst_PROGRAMS += clock.rel
43clock_rel_SOURCES = clock/ckinit.c
44clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
45clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47noinst_PROGRAMS += console.rel
48console_rel_SOURCES = console/console.c
49console_rel_CPPFLAGS = $(AM_CPPFLAGS)
50console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52noinst_PROGRAMS += timer.rel
53timer_rel_SOURCES = timer/timer.c timer/timerisr.S
54timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
55timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57if HAS_NETWORKING
58network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
59noinst_PROGRAMS += network.rel
60network_rel_SOURCES = network/netexterns.h network/network.c \
61    network/uti596.h
62network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
63network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
64endif
65
66noinst_LIBRARIES = libbsp.a
67libbsp_a_SOURCES =
68libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
69if HAS_NETWORKING
70libbsp_a_LIBADD += network.rel
71endif
72libbsp_a_LIBADD += ../../../libcpu/i386/cache.rel \
73    ../../../libcpu/i386/score.rel
74
75all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
76
77PREINSTALL_DIRS =
78PREINSTALL_FILES =
79TMPINSTALL_FILES =
80
81$(PROJECT_INCLUDE)/$(dirstamp):
82        @$(mkdir_p) $(PROJECT_INCLUDE)
83        @: > $(PROJECT_INCLUDE)/$(dirstamp)
84PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
85
86$(PROJECT_LIB)/$(dirstamp):
87        @$(mkdir_p) $(PROJECT_LIB)
88        @: > $(PROJECT_LIB)/$(dirstamp)
89PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
90
91$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
93PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
94
95$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
96        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
97PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
98
99$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
100        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
101PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
102
103$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
104        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
105PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
106
107$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
109PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
110
111$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
113TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
114
115$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
116        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
117PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
118
119CLEANFILES = $(PREINSTALL_FILES)
120DISTCLEANFILES += $(PREINSTALL_DIRS)
121CLEANFILES += $(TMPINSTALL_FILES)
122
123include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.