source: rtems/c/src/lib/libcpu/arm/at91rm9200/Makefile.am @ a9dc09a

4.104.114.84.95
Last change on this file since a9dc09a was a9dc09a, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 26, 2004 at 3:52:21 AM

Reformat.

  • Property mode set to 100644
File size: 4.9 KB
Line 
1##
2## $Id$
3##
4
5CLEANFILES =
6EXTRA_DIST =
7EXTRA_PROGRAMS =
8noinst_DATA =
9
10include $(top_srcdir)/../../../automake/compile.am
11
12if at91rm9200
13include_at91rm9200dir = $(includedir)/at91rm9200
14include_libcpudir = $(includedir)/libcpu
15include_HEADERS =
16include_HEADERS += include/at91rm9200.h include/at91rm9200_dbgu.h \
17    include/at91rm9200_emac.h include/at91rm9200_gpio.h \
18    include/at91rm9200_mem.h include/at91rm9200_pmc.h include/bits.h
19
20## clock
21EXTRA_PROGRAMS += clock.rel
22CLEANFILES += clock.rel
23clock_rel_SOURCES = clock/clock.c
24clock_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
25clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
26
27EXTRA_PROGRAMS += clock_g.rel
28CLEANFILES += clock_g.rel
29clock_g_rel_SOURCES = $(clock_rel_SOURCES)
30clock_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
31clock_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
32
33noinst_DATA += clock$(LIB_VARIANT).rel
34
35## dbgu
36EXTRA_PROGRAMS += dbgu.rel
37CLEANFILES += dbgu.rel
38dbgu_rel_SOURCES = dbgu/dbgu.c
39dbgu_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
40dbgu_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
41
42EXTRA_PROGRAMS += dbgu_g.rel
43CLEANFILES += dbgu_g.rel
44dbgu_g_rel_SOURCES = $(dbgu_rel_SOURCES)
45dbgu_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
46dbgu_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
47
48noinst_DATA += dbgu$(LIB_VARIANT).rel
49
50## timer
51EXTRA_PROGRAMS += timer.rel
52CLEANFILES += timer.rel
53timer_rel_SOURCES = timer/timer.c
54timer_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
55timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
56
57EXTRA_PROGRAMS += timer_g.rel
58CLEANFILES += timer_g.rel
59timer_g_rel_SOURCES = $(timer_rel_SOURCES)
60timer_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
61timer_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
62
63noinst_DATA += timer$(LIB_VARIANT).rel
64
65## pmc
66EXTRA_PROGRAMS += pmc.rel
67CLEANFILES += pmc.rel
68pmc_rel_SOURCES = pmc/pmc.c
69pmc_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
70pmc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
71
72EXTRA_PROGRAMS += pmc_g.rel
73CLEANFILES += pmc_g.rel
74pmc_g_rel_SOURCES = $(pmc_rel_SOURCES)
75pmc_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
76pmc_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
77
78noinst_DATA += pmc$(LIB_VARIANT).rel
79
80## interrupt
81include_HEADERS += irq/irq.h
82
83EXTRA_PROGRAMS += irq.rel
84CLEANFILES += irq.rel
85irq_rel_SOURCES = irq/irq.c irq/bsp_irq_init.c \
86    ../../../libbsp/arm/shared/irq/irq_init.c irq/bsp_irq_asm.S \
87    ../../../libbsp/arm/shared/irq/irq_asm.S irq/irq.h
88irq_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
89irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
90
91EXTRA_PROGRAMS += irq_g.rel
92CLEANFILES += irq_g.rel
93irq_g_rel_SOURCES = $(irq_rel_SOURCES)
94irq_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
95irq_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
96
97noinst_DATA += irq$(LIB_VARIANT).rel
98endif
99
100## --
101all-local: $(PREINSTALL_FILES)
102
103PREINSTALL_DIRS =
104PREINSTALL_FILES =
105
106$(PROJECT_INCLUDE)/$(dirstamp):
107        @$(mkdir_p) $(PROJECT_INCLUDE)
108        @: > $(PROJECT_INCLUDE)/$(dirstamp)
109PREINSTALL_DIRS += $(PROJECT_INCLUDE)/$(dirstamp)
110
111if at91rm9200
112$(PROJECT_INCLUDE)/at91rm9200/$(dirstamp):
113        @$(mkdir_p) $(PROJECT_INCLUDE)/at91rm9200
114        @: > $(PROJECT_INCLUDE)/at91rm9200/$(dirstamp)
115PREINSTALL_DIRS += $(PROJECT_INCLUDE)/at91rm9200/$(dirstamp)
116
117$(PROJECT_INCLUDE)/libcpu/$(dirstamp):
118        @$(mkdir_p) $(PROJECT_INCLUDE)/libcpu
119        @: > $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
120PREINSTALL_DIRS += $(PROJECT_INCLUDE)/libcpu/$(dirstamp)
121
122$(PROJECT_INCLUDE)/at91rm9200.h: include/at91rm9200.h $(PROJECT_INCLUDE)/$(dirstamp)
123        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200.h
124PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200.h
125
126$(PROJECT_INCLUDE)/at91rm9200_dbgu.h: include/at91rm9200_dbgu.h $(PROJECT_INCLUDE)/$(dirstamp)
127        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200_dbgu.h
128PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200_dbgu.h
129
130$(PROJECT_INCLUDE)/at91rm9200_emac.h: include/at91rm9200_emac.h $(PROJECT_INCLUDE)/$(dirstamp)
131        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200_emac.h
132PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200_emac.h
133
134$(PROJECT_INCLUDE)/at91rm9200_gpio.h: include/at91rm9200_gpio.h $(PROJECT_INCLUDE)/$(dirstamp)
135        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200_gpio.h
136PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200_gpio.h
137
138$(PROJECT_INCLUDE)/at91rm9200_mem.h: include/at91rm9200_mem.h $(PROJECT_INCLUDE)/$(dirstamp)
139        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200_mem.h
140PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200_mem.h
141
142$(PROJECT_INCLUDE)/at91rm9200_pmc.h: include/at91rm9200_pmc.h $(PROJECT_INCLUDE)/$(dirstamp)
143        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/at91rm9200_pmc.h
144PREINSTALL_FILES += $(PROJECT_INCLUDE)/at91rm9200_pmc.h
145
146$(PROJECT_INCLUDE)/bits.h: include/bits.h $(PROJECT_INCLUDE)/$(dirstamp)
147        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bits.h
148PREINSTALL_FILES += $(PROJECT_INCLUDE)/bits.h
149
150$(PROJECT_INCLUDE)/irq.h: irq/irq.h $(PROJECT_INCLUDE)/$(dirstamp)
151        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/irq.h
152PREINSTALL_FILES += $(PROJECT_INCLUDE)/irq.h
153endif
154
155CLEANFILES += $(PREINSTALL_FILES)
156DISTCLEANFILES = $(PREINSTALL_DIRS)
157
158include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.