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

4.115
Last change on this file since d4edbdbc was ef4c461, checked in by Joel Sherrill <joel.sherrill@…>, on 10/09/14 at 20:35:10

arm/nds: Warning clean up

This patch eliminates most of the warnings in this BSP but attempts
very little clean up. This BSP includes copies of a lot of code
from free NDS libraries and modifications should be kept to a minimum.

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