source: rtems/c/src/lib/libbsp/i386/i386ex/Makefile.am @ 4cbf22a

4.104.114.84.95
Last change on this file since 4cbf22a was 4cbf22a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 2, 2005 at 9:06:25 PM

2005-01-02 Ralf Corsepius <ralf.corsepius@…>

  • Makefile.am: Remove build-variant support.
  • Property mode set to 100644
File size: 4.0 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) $(CFLAGS_OPTIMIZE_V)
40startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
41
42noinst_PROGRAMS += clock.rel
43clock_rel_SOURCES = clock/ckinit.c
44clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
45clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
46
47noinst_PROGRAMS += console.rel
48console_rel_SOURCES = console/console.c
49console_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
50console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
51
52noinst_PROGRAMS += timer.rel
53timer_rel_SOURCES = timer/timer.c timer/timerisr.S
54timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
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) $(CFLAGS_OPTIMIZE_V) \
63    $(network_CPPFLAGS)
64network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65endif
66
67noinst_LIBRARIES = libbsp.a
68libbsp_a_SOURCES =
69libbsp_a_LIBADD = startup.rel clock.rel console.rel timer.rel
70if HAS_NETWORKING
71libbsp_a_LIBADD += network.rel
72endif
73libbsp_a_LIBADD += ../../../libcpu/i386/cache.rel \
74    ../../../libcpu/i386/score.rel
75
76all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
77
78PREINSTALL_DIRS =
79PREINSTALL_FILES =
80TMPINSTALL_FILES =
81
82$(PROJECT_INCLUDE)/$(dirstamp):
83        @$(mkdir_p) $(PROJECT_INCLUDE)
84        @: > $(PROJECT_INCLUDE)/$(dirstamp)
85PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
86
87$(PROJECT_LIB)/$(dirstamp):
88        @$(mkdir_p) $(PROJECT_LIB)
89        @: > $(PROJECT_LIB)/$(dirstamp)
90PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
91
92$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
93        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
94PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
95
96$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
97        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
98PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
99
100$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
101        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
102PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
103
104$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
105        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
106PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
107
108$(PROJECT_INCLUDE)/coverhd.h: include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
109        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
110PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
111
112$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
113        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
114TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
115
116$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
117        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
118PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
119
120CLEANFILES = $(PREINSTALL_FILES)
121DISTCLEANFILES += $(PREINSTALL_DIRS)
122CLEANFILES += $(TMPINSTALL_FILES)
123
124include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.