source: rtems/c/src/lib/libbsp/arm/nds/Makefile.am @ 7b46d7a

4.115
Last change on this file since 7b46d7a was 1f7d0cca, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/19/11 at 08:12:17

2011-06-19 Ralf Corsépius <ralf.corsepius@…>

  • Makefile.am: Fix broken path to clockdrv_shell.h.
  • Property mode set to 100644
File size: 9.7 KB
Line 
1##
2## $Id$
3##
4
5ACLOCAL_AMFLAGS = -I ../../../../aclocal
6
7SUBDIRS = . tools
8
9include $(top_srcdir)/../../../../automake/compile.am
10
11include_bspdir = $(includedir)/bsp
12
13dist_project_lib_DATA = bsp_specs
14
15include_HEADERS = include/bsp.h
16include_HEADERS += ../../shared/include/tm27.h
17
18nodist_include_HEADERS = include/bspopts.h
19nodist_include_HEADERS += ../../shared/include/coverhd.h
20
21nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
22DISTCLEANFILES = include/bspopts.h
23noinst_PROGRAMS =
24
25noinst_LIBRARIES = libbspstart.a
26libbspstart_a_SOURCES = start/start.S
27project_lib_DATA = start.$(OBJEXT)
28
29dist_project_lib_DATA += startup/linkcmds
30
31noinst_LIBRARIES += libbsp.a
32libbsp_a_SOURCES =
33
34include_ndsdir = $(includedir)/nds
35include_nds_HEADERS = touchscreen/touchscreen.h sound/sound.h
36
37noinst_PROGRAMS += startup.rel
38startup_rel_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
39    startup/bspstart.c ../../shared/bspclean.c startup/bspreset.c \
40    ../../shared/bspgetworkarea.c ../../shared/bsppredriverhook.c \
41    ../../shared/bsppretaskinghook.c ../../shared/bootcard.c
42startup_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
43startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
44
45noinst_PROGRAMS += gnatsupp.rel
46gnatsupp_rel_SOURCES = ../../shared/gnatinstallhandler.c
47gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
48gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
49
50noinst_PROGRAMS += clock.rel
51clock_rel_SOURCES = clock/clock.c
52clock_rel_SOURCES += ../../shared/clockdrv_shell.h
53clock_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
54clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
55
56noinst_PROGRAMS += rtc.rel
57rtc_rel_SOURCES = rtc/rtc.c ../../shared/tod.c
58rtc_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
59rtc_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
60
61noinst_PROGRAMS += console.rel
62console_rel_SOURCES = console/console.c
63console_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include -I$(srcdir)/include
64console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
65
66noinst_PROGRAMS += fb.rel
67fb_rel_SOURCES = fb/fb.c
68fb_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
69fb_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
70
71noinst_PROGRAMS += touchscreen.rel
72touchscreen_rel_SOURCES = touchscreen/touchscreen.c touchscreen/parser.c \
73                          touchscreen/reco.c
74touchscreen_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
75touchscreen_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
76
77noinst_PROGRAMS += timer.rel
78timer_rel_SOURCES = timer/timer.c
79timer_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
80timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
81
82noinst_PROGRAMS += sound.rel
83sound_rel_SOURCES = sound/sound.c
84sound_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
85sound_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
86
87noinst_PROGRAMS += block.rel
88block_rel_SOURCES = block/block.c
89block_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include -DNDS -I$(srcdir)/libfat/source/disc_io
90block_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
91
92noinst_PROGRAMS += irq.rel
93irq_rel_SOURCES = irq/irq.c
94irq_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include
95irq_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
96
97if HAS_NETWORKING
98noinst_PROGRAMS += wifi.rel
99wifi_rel_SOURCES =      wifi/wifi.c                                     \
100                        wifi/compat.c
101wifi_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/dswifi/include -I$(srcdir)/libnds/include -I$(srcdir)/dswifi/include -D_KERNEL -D__BSD_VISIBLE
102wifi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
103endif
104
105# libnds, ARM9 side
106noinst_PROGRAMS += libnds9.rel
107bin2s:  $(srcdir)/tools/bin2s.c
108        cc -o $(srcdir)/tools/bin2s $(srcdir)/tools/bin2s.c
109
110SUFFIXES = .bin
111
112%.s:    %.bin bin2s
113        $(srcdir)/tools/bin2s $< > $(srcdir)/$@
114
115libnds9_rel_SOURCES =   libnds/source/common/biosCalls.S                \
116                        libnds/source/common/card.c                     \
117                        libnds/source/common/gbfs.c                     \
118                        libnds/source/common/interruptDispatcher.S      \
119                        libnds/source/common/interrupts.c               \
120                        libnds/source/arm9/boxtest.c                    \
121                        libnds/source/arm9/default_font.S               \
122                        libnds/source/arm9/console.c                    \
123                        libnds/source/arm9/COS.S                        \
124                        libnds/source/arm9/dcache.S                     \
125                        libnds/source/arm9/exceptionHandler.S           \
126                        libnds/source/arm9/exceptions.c                 \
127                        libnds/source/arm9/gurumeditation.c             \
128                        libnds/source/arm9/icache.S                     \
129                        libnds/source/arm9/image.c                      \
130                        libnds/source/arm9/initSystem.c                 \
131                        libnds/source/arm9/keys.c                       \
132                        libnds/source/arm9/ndsmotion.c                  \
133                        libnds/source/arm9/pcx.c                        \
134                        libnds/source/arm9/rumble.c                     \
135                        libnds/source/arm9/SIN.S                        \
136                        libnds/source/arm9/sound.c                      \
137                        libnds/source/arm9/system.c                     \
138                        libnds/source/arm9/TAN.S                        \
139                        libnds/source/arm9/touch.c                      \
140                        libnds/source/arm9/video.c                      \
141                        libnds/source/arm9/videoGL.c
142libnds9_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include -I$(srcdir)/include
143libnds9_rel_CCASFLAGS = $(AM_CCASFLAGS) -DARM9 -I$(srcdir)/libnds/include
144libnds9_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
145
146if HAS_NETWORKING
147# dswifi, ARM9 side
148noinst_PROGRAMS += dswifi9.rel
149dswifi9_rel_SOURCES =   dswifi/arm9/source/wifi_arm9.c                  \
150                        dswifi/common/source/spinlock.S
151dswifi9_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/dswifi/include -I$(srcdir)/libnds/include -I$(srcdir)/dswifi/common/source -I$(srcdir)/wifi -D_KERNEL
152dswifi9_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
153endif
154
155# dldi
156noinst_PROGRAMS += libdldi.rel
157libdldi_rel_SOURCES =   libfat/source/disc_io/disc.c                    \
158                        libfat/source/disc_io/io_cf_common.c            \
159                        libfat/source/disc_io/io_efa2.c                 \
160                        libfat/source/disc_io/io_fcsr.c                 \
161                        libfat/source/disc_io/io_m3cf.c                 \
162                        libfat/source/disc_io/io_m3_common.c            \
163                        libfat/source/disc_io/io_m3sd.c                 \
164                        libfat/source/disc_io/io_mpcf.c                 \
165                        libfat/source/disc_io/io_njsd.c                 \
166                        libfat/source/disc_io/io_nmmc.c                 \
167                        libfat/source/disc_io/io_sccf.c                 \
168                        libfat/source/disc_io/io_sc_common.c            \
169                        libfat/source/disc_io/io_scsd.c                 \
170                        libfat/source/disc_io/io_sd_common.c            \
171                        libfat/source/disc_io/io_dldi.S                 \
172                        libfat/source/disc_io/io_scsd_s.S
173libdldi_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM9 -I$(srcdir)/libnds/include -I$(srcdir)/libfat/source/disc_io
174libdldi_rel_CCASFLAGS = $(AM_CCASFLAGS) -DARM9 -I$(srcdir)/libnds/include -I$(srcdir)/libfat/source/disc_io
175libdldi_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
176
177# libnds, ARM7 side
178noinst_PROGRAMS += libnds7.rel
179libnds7_rel_SOURCES =   libnds/source/common/biosCalls.S                \
180                        libnds/source/common/card.c                     \
181                        libnds/source/common/gbfs.c                     \
182                        libnds/source/common/interruptDispatcher.S      \
183                        libnds/source/common/interrupts.c               \
184                        libnds/source/arm7/audio.c                      \
185                        libnds/source/arm7/clock.c                      \
186                        libnds/source/arm7/microphone.c                 \
187                        libnds/source/arm7/spi.c                        \
188                        libnds/source/arm7/touch.c                      \
189                        libnds/source/arm7/userSettings.c
190libnds7_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM7 -I$(srcdir)/libnds/include
191libnds7_rel_CFLAGS = -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft
192libnds7_rel_CCASFLAGS = -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft
193libnds7_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
194
195if HAS_NETWORKING
196# dswifi, ARM7 side
197noinst_PROGRAMS += dswifi7.rel
198dswifi7_rel_SOURCES =   dswifi/arm7/source/wifi_arm7.c                  \
199                        dswifi/common/source/spinlock.S
200dswifi7_rel_CPPFLAGS = $(AM_CPPFLAGS) -DARM7 -I$(srcdir)/dswifi/include -I$(srcdir)/libnds/include -I$(srcdir)/dswifi/common/source
201dswifi7_rel_CFLAGS = -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft
202dswifi7_rel_CCASFLAGS = -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft
203dswifi7_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
204endif
205
206# include libnds to dist so the user program can include it
207include_libndsdir = $(includedir)/libnds
208include_libnds_HEADERS =        libnds/include/gbfs.h                   \
209                                libnds/include/nds.h
210
211include_libndsndsdir = $(includedir)/libnds/nds
212include_libndsnds_HEADERS =     libnds/include/nds/memory.h             \
213                                libnds/include/nds/system.h             \
214                                libnds/include/nds/bios.h               \
215                                libnds/include/nds/registers_alt.h      \
216                                libnds/include/nds/interrupts.h         \
217                                libnds/include/nds/card.h               \
218                                libnds/include/nds/ipc.h                \
219                                libnds/include/nds/timers.h             \
220                                libnds/include/nds/dma.h                \
221                                libnds/include/nds/reload.h             \
222                                libnds/include/nds/jtypes.h
223
224include_libndsnds9dir = $(includedir)/libnds/nds/arm9
225include_libndsnds9_HEADERS =    libnds/include/nds/arm9/ndsmotion.h     \
226                                libnds/include/nds/arm9/pcx.h           \
227                                libnds/include/nds/arm9/input.h         \
228                                libnds/include/nds/arm9/math.h          \
229                                libnds/include/nds/arm9/console.h       \
230                                libnds/include/nds/arm9/sprite.h        \
231                                libnds/include/nds/arm9/videoGL.h       \
232                                libnds/include/nds/arm9/cache.h         \
233                                libnds/include/nds/arm9/image.h         \
234                                libnds/include/nds/arm9/trig_lut.h      \
235                                libnds/include/nds/arm9/video.h         \
236                                libnds/include/nds/arm9/exceptions.h    \
237                                libnds/include/nds/arm9/rumble.h        \
238                                libnds/include/nds/arm9/background.h    \
239                                libnds/include/nds/arm9/boxtest.h       \
240                                libnds/include/nds/arm9/postest.h       \
241                                libnds/include/nds/arm9/sound.h
242
243include_libndsnds7dir = $(includedir)/libnds/nds/arm7
244include_libndsnds7_HEADERS =    libnds/include/nds/arm7/serial.h        \
245                                libnds/include/nds/arm7/audio.h         \
246                                libnds/include/nds/arm7/clock.h         \
247                                libnds/include/nds/arm7/touch.h
248EXTRA_DIST = coproc/coproc.S coproc/coproc.c
249if HAS_NETWORKING
250coproc.bin: coproc/coproc.S coproc/coproc.c libnds7.rel dswifi7.rel
251        @CC@ -o coproc.elf -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft -O2 -DARM7 -I$(srcdir)/libnds/include -I$(srcdir)/dswifi/include -DENABLE_WIFI -T $(srcdir)/coproc/coproc.ld $^ -lc
252        $(OBJCOPY) -O binary coproc.elf coproc.bin
253else
254coproc.bin: coproc/coproc.S coproc/coproc.c libnds7.rel
255        @CC@ -o coproc.elf -mcpu=arm7tdmi -mfpu=vfp -mfloat-abi=soft -O2 -DARM7 -I$(srcdir)/libnds/include -T $(srcdir)/coproc/coproc.ld $^ -lc
256        $(OBJCOPY) -O binary coproc.elf coproc.bin
257endif
258project_lib_DATA += coproc.bin
259
260libbsp_a_LIBADD = clock.rel console.rel gnatsupp.rel startup.rel irq.rel \
261    timer.rel libnds9.rel rtc.rel fb.rel touchscreen.rel sound.rel \
262    block.rel libdldi.rel
263
264if HAS_NETWORKING
265    libbsp_a_LIBADD += wifi.rel dswifi9.rel
266endif
267
268include $(srcdir)/preinstall.am
269include $(top_srcdir)/../../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.