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

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Michael Hope
  • Date: 2010-09-02 02:26:33 UTC
  • Revision ID: michael.hope@linaro.org-20100902022633-xbddfwagsup43ykn
Added a README.  Re-factored the build into a top level Makefile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
COMPILER = $(shell $(CC) --version 2>&1 | head -n1)
 
2
 
1
3
lib_LTLIBRARIES = \
2
4
        libcortexcpu.la
3
5
 
4
6
sources = \
5
 
        neon/memcpy.S \
6
 
        neon/memset.S \
7
 
        thumb-2/strcmp.c \
8
 
        thumb-2/strcpy.c \
9
 
        thumb-2/strlen.c
 
7
        src/neon/memcpy.S \
 
8
        src/neon/memset.S \
 
9
        src/thumb-2/strcmp.c \
 
10
        src/thumb-2/strcpy.c \
 
11
        src/thumb-2/strlen.c
 
12
 
 
13
noinst_LIBRARIES = \
 
14
        libbionic.a \
 
15
        libcsl.a \
 
16
        libglibc.a \
 
17
        libnewlib.a \
 
18
        libplain.a \
 
19
        libmulti.a
 
20
 
 
21
libbionic_a_SOURCES = \
 
22
        reference/bionic/memcmp.S \
 
23
        reference/bionic/memcmp16.S \
 
24
        reference/bionic/strlen.c \
 
25
        reference/bionic/memset.S \
 
26
        reference/bionic/memcpy.S
 
27
 
 
28
libcsl_a_SOURCES = \
 
29
        reference/csl/memcpy.c \
 
30
        reference/csl/memset.c
 
31
 
 
32
libglibc_a_SOURCES = \
 
33
        reference/glibc/memmove.S \
 
34
        reference/glibc/memset.S \
 
35
        reference/glibc/strlen.S \
 
36
        reference/glibc/memcpy.S
 
37
 
 
38
libnewlib_a_SOURCES = \
 
39
        reference/newlib/strcmp.c \
 
40
        reference/newlib/strlen.c \
 
41
        reference/newlib/strcpy.c
 
42
 
 
43
libplain_a_SOURCES = \
 
44
        reference/plain/memset.c \
 
45
        reference/plain/memcpy.c \
 
46
        reference/plain/strcmp.c \
 
47
        reference/plain/strcpy.c
 
48
 
 
49
libmulti_a_SOURCES = \
 
50
        benchmarks/multi/harness.c
 
51
 
 
52
noinst_PROGRAMS = \
 
53
        dhry \
 
54
        try-bionic \
 
55
        try-csl \
 
56
        try-glibc \
 
57
        try-newlib \
 
58
        try-plain
 
59
 
 
60
dhry_SOURCES = \
 
61
        benchmarks/dhry/dhry_1.c \
 
62
        benchmarks/dhry/dhry_2.c
 
63
 
 
64
try_bionic_SOURCES =
 
65
try_bionic_LDFLAGS = -lrt
 
66
try_bionic_LDADD = libmulti.a libbionic.a
 
67
try_csl_SOURCES =
 
68
try_csl_LDFLAGS = -lrt
 
69
try_csl_LDADD = libmulti.a libcsl.a
 
70
try_glibc_SOURCES =
 
71
try_glibc_LDFLAGS = -lrt
 
72
try_glibc_LDADD = libmulti.a libglibc.a
 
73
try_newlib_SOURCES =
 
74
try_newlib_LDFLAGS = -lrt
 
75
try_newlib_LDADD = libmulti.a libnewlib.a
 
76
try_plain_SOURCES =
 
77
try_plain_LDFLAGS = -lrt
 
78
try_plain_LDADD = libmulti.a libplain.a
 
79
 
 
80
dhry_CFLAGS = -Dcompiler="\"$(COMPILER)\"" -Doptions="\"$(CFLAGS)\""
10
81
 
11
82
libcortexcpu_la_SOURCES = $(sources)
12
83
 
13
 
AM_CFLAGS = -std=gnu99
 
84
check_PROGRAMS = \
 
85
        tests/test-memcpy \
 
86
        tests/test-memset \
 
87
        tests/test-strcmp \
 
88
        tests/test-strcpy \
 
89
        tests/test-strlen
 
90
 
 
91
tests_test_memcpy_LDADD = libcortexcpu.la
 
92
tests_test_memcpy_CFLAGS = -Itests $(AM_CFLAGS)
 
93
tests_test_memset_LDADD = libcortexcpu.la
 
94
tests_test_memset_CFLAGS = -Itests $(AM_CFLAGS)
 
95
tests_test_strcmp_LDADD = libcortexcpu.la
 
96
tests_test_strcmp_CFLAGS = -Itests $(AM_CFLAGS)
 
97
tests_test_strcpy_LDADD = libcortexcpu.la
 
98
tests_test_strcpy_CFLAGS = -Itests $(AM_CFLAGS)
 
99
tests_test_strlen_LDADD = libcortexcpu.la
 
100
tests_test_strlen_CFLAGS = -Itests $(AM_CFLAGS)
 
101
 
 
102
TESTS = $(check_PROGRAMS)
 
103
 
 
104
AM_CFLAGS = -std=gnu99 -mfpu=neon
 
105
AM_CPPFLAGS = -mfpu=neon
14
106