source: rtems/c/src/lib/libbsp/arm/edb7312/Makefile.am @ 6b346ca

4.104.114.84.9
Last change on this file since 6b346ca was 6b346ca, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 17, 2005 at 8:34:46 AM

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

  • Makefile.am: Install/preinstall headers from ../../arm/shared.
  • Property mode set to 100644
File size: 4.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
20include_HEADERS += include/ep7312.h
21nodist_include_HEADERS += ../../shared/include/coverhd.h
22
23EXTRA_DIST = start/start.S
24start.$(OBJEXT): start/start.S
25        $(CPPASCOMPILE) -DASM -o $@ -c $<
26project_lib_DATA = start.$(OBJEXT)
27
28dist_project_lib_DATA += startup/linkcmds
29
30noinst_PROGRAMS += startup.rel
31include_HEADERS += ../../arm/shared/comm/uart.h
32startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
33    startup/bspstart.c startup/exit.c ../../shared/bootcard.c \
34    ../../shared/main.c ../../shared/sbrk.c \
35    ../../shared/gnatinstallhandler.c
36startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
37startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
38
39noinst_PROGRAMS += clock.rel
40clock_rel_SOURCES = clock/clockdrv.c
41clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
42clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
43
44noinst_PROGRAMS += console.rel
45console_rel_SOURCES = console/uart.c ../../shared/console.c
46console_rel_CPPFLAGS = $(AM_CPPFLAGS)
47console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
48
49noinst_PROGRAMS += timer.rel
50timer_rel_SOURCES = timer/timer.c
51timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
52timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
53
54include_HEADERS += irq/irq.h
55
56noinst_PROGRAMS += irq.rel
57irq_rel_SOURCES = irq/irq.c irq/bsp_irq_init.c \
58    ../../arm/shared/irq/irq_init.c irq/bsp_irq_asm.S \
59    ../../arm/shared/irq/irq_asm.S irq/irq.h
60irq_rel_CPPFLAGS = $(AM_CPPFLAGS)
61irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63if HAS_NETWORKING
64network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
65noinst_PROGRAMS += network.rel
66network_rel_SOURCES = network/network.c
67network_rel_CPPFLAGS = $(AM_CPPFLAGS) $(network_CPPFLAGS)
68network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
69endif
70
71noinst_LIBRARIES = libbsp.a
72libbsp_a_SOURCES =
73libbsp_a_LIBADD = clock.rel console.rel startup.rel irq.rel timer.rel
74if HAS_NETWORKING
75libbsp_a_LIBADD += network.rel
76endif
77
78all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
79
80PREINSTALL_DIRS =
81PREINSTALL_FILES =
82TMPINSTALL_FILES =
83
84$(PROJECT_INCLUDE)/$(dirstamp):
85        @$(mkdir_p) $(PROJECT_INCLUDE)
86        @: > $(PROJECT_INCLUDE)/$(dirstamp)
87PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
88
89$(PROJECT_LIB)/$(dirstamp):
90        @$(mkdir_p) $(PROJECT_LIB)
91        @: > $(PROJECT_LIB)/$(dirstamp)
92PREINSTALL_DIRS += $(PROJECT_LIB)/$(dirstamp)
93
94$(PROJECT_LIB)/bsp_specs: bsp_specs $(PROJECT_LIB)/$(dirstamp)
95        $(INSTALL_DATA) $< $(PROJECT_LIB)/bsp_specs
96PREINSTALL_FILES += $(PROJECT_LIB)/bsp_specs
97
98$(PROJECT_INCLUDE)/bsp.h: include/bsp.h $(PROJECT_INCLUDE)/$(dirstamp)
99        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp.h
100PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp.h
101
102$(PROJECT_INCLUDE)/tm27.h: include/tm27.h $(PROJECT_INCLUDE)/$(dirstamp)
103        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/tm27.h
104PREINSTALL_FILES += $(PROJECT_INCLUDE)/tm27.h
105
106$(PROJECT_INCLUDE)/bspopts.h: include/bspopts.h $(PROJECT_INCLUDE)/$(dirstamp)
107        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bspopts.h
108PREINSTALL_FILES += $(PROJECT_INCLUDE)/bspopts.h
109
110$(PROJECT_INCLUDE)/ep7312.h: include/ep7312.h $(PROJECT_INCLUDE)/$(dirstamp)
111        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/ep7312.h
112PREINSTALL_FILES += $(PROJECT_INCLUDE)/ep7312.h
113
114$(PROJECT_INCLUDE)/coverhd.h: ../../shared/include/coverhd.h $(PROJECT_INCLUDE)/$(dirstamp)
115        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/coverhd.h
116PREINSTALL_FILES += $(PROJECT_INCLUDE)/coverhd.h
117
118$(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
119        $(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
120TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
121
122$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
123        $(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
124PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
125
126$(PROJECT_INCLUDE)/uart.h: ../../arm/shared/comm/uart.h $(PROJECT_INCLUDE)/$(dirstamp)
127        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/uart.h
128PREINSTALL_FILES += $(PROJECT_INCLUDE)/uart.h
129
130$(PROJECT_INCLUDE)/irq.h: irq/irq.h $(PROJECT_INCLUDE)/$(dirstamp)
131        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/irq.h
132PREINSTALL_FILES += $(PROJECT_INCLUDE)/irq.h
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.