~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 03:49:37 UTC
  • Revision ID: michael.hope@linaro.org-20100902034937-04yh308gq254n5mh
Added comments.  General tidy up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Top level Makefile for cortexcpu
 
2
 
 
3
# Used to record the compiler version in the executables
1
4
COMPILER = $(shell $(CC) --version 2>&1 | head -n1)
2
5
 
 
6
# The main library
3
7
lib_LTLIBRARIES = \
4
8
        libcortexcpu.la
5
9
 
6
 
sources = \
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
 
 
 
10
# Test suite
 
11
check_PROGRAMS = \
 
12
        tests/test-memcpy \
 
13
        tests/test-memset \
 
14
        tests/test-strcmp \
 
15
        tests/test-strcpy \
 
16
        tests/test-strlen
 
17
 
 
18
# Benchmarks and example programs
 
19
noinst_PROGRAMS = \
 
20
        dhry \
 
21
        try-bionic \
 
22
        try-csl \
 
23
        try-glibc \
 
24
        try-newlib \
 
25
        try-plain
 
26
 
 
27
# Libraries used in the benchmarks and examples
13
28
noinst_LIBRARIES = \
14
29
        libbionic.a \
15
30
        libcsl.a \
18
33
        libplain.a \
19
34
        libmulti.a
20
35
 
 
36
# Main library
 
37
libcortexcpu_la_SOURCES = 
 
38
        src/neon/memcpy.S \
 
39
        src/neon/memset.S \
 
40
        src/thumb-2/strcmp.c \
 
41
        src/thumb-2/strcpy.c \
 
42
        src/thumb-2/strlen.c
 
43
 
 
44
# Options for the tests
 
45
tests_test_memcpy_LDADD = libcortexcpu.la
 
46
tests_test_memcpy_CFLAGS = -Itests $(AM_CFLAGS)
 
47
tests_test_memset_LDADD = libcortexcpu.la
 
48
tests_test_memset_CFLAGS = -Itests $(AM_CFLAGS)
 
49
tests_test_strcmp_LDADD = libcortexcpu.la
 
50
tests_test_strcmp_CFLAGS = -Itests $(AM_CFLAGS)
 
51
tests_test_strcpy_LDADD = libcortexcpu.la
 
52
tests_test_strcpy_CFLAGS = -Itests $(AM_CFLAGS)
 
53
tests_test_strlen_LDADD = libcortexcpu.la
 
54
tests_test_strlen_CFLAGS = -Itests $(AM_CFLAGS)
 
55
 
 
56
TESTS = $(check_PROGRAMS)
 
57
 
 
58
# Libraries containing the difference reference versions
21
59
libbionic_a_SOURCES = \
22
60
        reference/bionic/memcmp.S \
23
61
        reference/bionic/memcmp16.S \
49
87
libmulti_a_SOURCES = \
50
88
        benchmarks/multi/harness.c
51
89
 
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
 
 
 
90
libmulti_a_CFLAGS = -DVERSION=$(VERSION) $(AM_CFLAGS)
 
91
 
 
92
# Flags for the benchmark helpers
64
93
try_bionic_SOURCES =
65
94
try_bionic_LDFLAGS = -lrt
66
95
try_bionic_LDADD = libmulti.a libbionic.a
77
106
try_plain_LDFLAGS = -lrt
78
107
try_plain_LDADD = libmulti.a libplain.a
79
108
 
 
109
# Good 'ol Dhrystone
 
110
dhry_SOURCES = \
 
111
        benchmarks/dhry/dhry_1.c \
 
112
        benchmarks/dhry/dhry_2.c
 
113
 
80
114
dhry_CFLAGS = -Dcompiler="\"$(COMPILER)\"" -Doptions="\"$(CFLAGS)\""
81
115
 
82
 
libcortexcpu_la_SOURCES = $(sources)
83
 
 
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
 
116
AM_CFLAGS = -std=gnu99 -mfpu=neon -Wall
105
117
AM_CPPFLAGS = -mfpu=neon
106