~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Will Newton
  • Date: 2013-03-26 10:19:35 UTC
  • Revision ID: will.newton@linaro.org-20130326101935-c4i81dht78p9voqf
Integrate NEON/VFP/ARM optimised memcpy implementation.
Add --with-vfp configure option to allow testing VFP code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
if WITH_NEON
173
173
# Pull in the NEON specific files
174
 
neon_sources = \
175
 
        src/linaro-a9/memcpy-hybrid.S
176
174
neon_bionic_sources = \
177
175
        reference/bionic/memcpy.S
178
 
neon_cppflags = -mfpu=neon
179
 
neon_dirs = neon
180
 
else
181
 
alternate_sources = \
182
 
        src/linaro-a9/memcpy.S
 
176
fpu_flags = -mfpu=neon
 
177
else
 
178
if WITH_VFP
 
179
fpu_flags = -mfpu=vfp
 
180
else
 
181
fpu_flags = -msoft-float
 
182
endif
183
183
endif
184
184
 
185
185
# Benchmarks and example programs
200
200
 
201
201
# Main library
202
202
libcortex_strings_la_SOURCES = \
203
 
        $(neon_sources) \
204
 
        $(alternate_sources) \
205
203
        src/thumb-2/strcpy.c \
206
204
        src/linaro-a9/memchr.S \
207
205
        src/linaro-a9/strchr.S \
208
206
        src/linaro-a9/strlen.S \
209
 
        src/linaro-a9/memset.S
 
207
        src/linaro-a9/memset.S \
 
208
        src/linaro-a9/memcpy.S
210
209
 
211
210
# Libraries containing the difference reference versions
212
211
libbionic_a_SOURCES = \
259
258
try_newlib_xscale_SOURCES =
260
259
try_newlib_xscale_LDADD = libmulti.a libnewlib-xscale.a -lrt
261
260
 
262
 
AM_CPPFLAGS = $(neon_cppflags)
 
261
AM_CPPFLAGS = $(fpu_flags)
 
262
AM_LDFLAGS = $(fpu_flags)
263
263
 
264
264
endif
265
265