source: rtems/c/src/lib/libbsp/arm/rtl22xx/Makefile.am @ f4392b88

4.104.114.84.9
Last change on this file since f4392b88 was f4392b88, checked in by Ralf Corsepius <ralf.corsepius@…>, on Apr 25, 2007 at 12:50:25 PM

2007-04-25 Ray Xu <xr@…>

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