1 |
224 |
markom |
## Makefile for or1ksim testsuite
|
2 |
|
|
## (c) Marko Mlinar, 2001
|
3 |
|
|
## To add new test, edit between marked areas only
|
4 |
|
|
#
|
5 |
|
|
# This file is part of OpenRISC 1000 Architectural Simulator.
|
6 |
|
|
#
|
7 |
|
|
# This program is free software; you can redistribute it and/or modify
|
8 |
|
|
# it under the terms of the GNU General Public License as published by
|
9 |
|
|
# the Free Software Foundation; either version 2 of the License, or
|
10 |
|
|
# (at your option) any later version.
|
11 |
|
|
#
|
12 |
|
|
# This program is distributed in the hope that it will be useful,
|
13 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
# GNU General Public License for more details.
|
16 |
|
|
#
|
17 |
|
|
# You should have received a copy of the GNU General Public License
|
18 |
|
|
# along with this program; if not, write to the Free Software
|
19 |
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
20 |
|
|
#
|
21 |
|
|
|
22 |
|
|
################### Tests #####################
|
23 |
|
|
# tests in this directory
|
24 |
664 |
markom |
OR1K_TESTS = basic cache cfg dmatest eth mmu except_test int_test flag fbtest kbdtest
|
25 |
538 |
markom |
IND_TESTS = exit cbasic local_global mul mycompress dhry functest mem_test
|
26 |
574 |
markom |
# inst_set_test
|
27 |
478 |
erez |
ACV_TESTS = acv_uart acv_gpio
|
28 |
460 |
simons |
MC_TESTS = mc_dram mc_ssram mc_async mc_sync
|
29 |
224 |
markom |
# Subdirectory tests
|
30 |
|
|
SUB_TESTS =
|
31 |
|
|
OR1K_SUB_TESTS = uos
|
32 |
|
|
###############################################
|
33 |
|
|
|
34 |
452 |
ivang |
ALL_TESTS = $(IND_TESTS) $(OR1K_TESTS) $(ACV_TESTS) $(MC_TESTS)
|
35 |
380 |
markom |
TESTS = $(IND_TESTS) $(OR1K_TESTS)
|
36 |
308 |
markom |
bin_PROGRAMS = $(ALL_TESTS)
|
37 |
224 |
markom |
|
38 |
|
|
######### Platform Independent Tests ##########
|
39 |
|
|
exit_SOURCES = $(OR1K_SUPPORT_S) support.h exit.c
|
40 |
|
|
cbasic_SOURCES = $(OR1K_SUPPORT_S) support.h cbasic.c
|
41 |
|
|
local_global_SOURCES = $(OR1K_SUPPORT_S) support.h local_global.c
|
42 |
|
|
mul_SOURCES = $(OR1K_SUPPORT_S) support.h mul.c
|
43 |
|
|
dhry_SOURCES = $(OR1K_SUPPORT_S) support.h dhry.h dhry.c
|
44 |
|
|
mycompress_SOURCES = $(OR1K_SUPPORT_S) support.h mycompress.c
|
45 |
409 |
markom |
functest_SOURCES = $(OR1K_SUPPORT_S) support.h functest.c
|
46 |
538 |
markom |
mem_test_SOURCES = $(OR1K_SUPPORT_S) support.h mem_test.c
|
47 |
574 |
markom |
inst_set_test_SOURCES = $(OR1K_SUPPORT_S) support.h inst_set_test.c
|
48 |
224 |
markom |
###############################################
|
49 |
|
|
|
50 |
604 |
markom |
if OR1K_EXCEPT
|
51 |
|
|
|
52 |
|
|
exit_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
53 |
|
|
cbasic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
54 |
|
|
local_global_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
55 |
|
|
mul_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
56 |
|
|
dhry_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
57 |
|
|
mycompress_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
58 |
|
|
functest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
59 |
|
|
mem_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
60 |
|
|
inst_set_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
61 |
|
|
|
62 |
452 |
ivang |
######### MC Tests ############################
|
63 |
|
|
mc_dram_SOURCES = except_mc.S mc_common.h mc_common.c mc_dram.h mc_dram.c
|
64 |
|
|
mc_dram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
|
65 |
|
|
mc_ssram_SOURCES = except_mc.S mc_common.h mc_common.c mc_ssramh mc_ssram.c
|
66 |
|
|
mc_ssram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
|
67 |
|
|
mc_async_SOURCES = except_mc.S mc_common.h mc_common.c mc_async.h mc_async.c
|
68 |
|
|
mc_async_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
|
69 |
|
|
mc_sync_SOURCES = except_mc.S mc_common.h mc_common.c mc_sync.h mc_sync.c
|
70 |
|
|
mc_sync_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
|
71 |
|
|
###############################################
|
72 |
|
|
|
73 |
224 |
markom |
####### Platform Dependent Tests - OR1K ########
|
74 |
424 |
markom |
basic_SOURCES = basic.S spr_defs.h
|
75 |
574 |
markom |
basic_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
76 |
224 |
markom |
basic_LDADD =
|
77 |
615 |
markom |
flag_SOURCES = flag.S spr_defs.h
|
78 |
|
|
flag_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
79 |
|
|
flag_LDADD =
|
80 |
621 |
simons |
cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c cache_asm.S
|
81 |
802 |
simons |
cache_LDFLAGS = -T$(OR1K_SRCDIR)/cache.ld
|
82 |
224 |
markom |
cfg_SOURCES = cfg.S spr_defs.h
|
83 |
574 |
markom |
cfg_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
84 |
224 |
markom |
cfg_LDADD =
|
85 |
258 |
erez |
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
|
86 |
485 |
markom |
dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
87 |
258 |
erez |
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
|
88 |
485 |
markom |
eth_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
89 |
344 |
markom |
acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c
|
90 |
485 |
markom |
acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
91 |
478 |
erez |
acv_gpio_SOURCES = $(OR1K_SUPPORT_S) support.h acv_gpio.c
|
92 |
485 |
markom |
acv_gpio_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
93 |
574 |
markom |
mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S
|
94 |
451 |
markom |
mmu_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
95 |
516 |
markom |
except_test_SOURCES = except_test_s.S except_test.c spr_defs.h
|
96 |
|
|
except_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
97 |
576 |
markom |
int_test_SOURCES = spr_defs.h int_test.S
|
98 |
|
|
int_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
|
99 |
645 |
markom |
fbtest_SOURCES = $(OR1K_SUPPORT_S) support.h fbtest.c
|
100 |
|
|
fbtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
101 |
664 |
markom |
kbdtest_SOURCES = $(OR1K_SUPPORT_S) support.h kbdtest.c
|
102 |
|
|
kbdtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
|
103 |
224 |
markom |
################################################
|
104 |
|
|
|
105 |
604 |
markom |
else
|
106 |
224 |
markom |
|
107 |
|
|
##### Platform Dependent Tests - not OR1K #####
|
108 |
|
|
basic_SOURCES =
|
109 |
615 |
markom |
flag_SOURCES =
|
110 |
224 |
markom |
cache_SOURCES =
|
111 |
|
|
cfg_SOURCES =
|
112 |
258 |
erez |
dmatest_SOURCES =
|
113 |
|
|
eth_SOURCES =
|
114 |
344 |
markom |
acv_uart_SOURCES =
|
115 |
478 |
erez |
acv_gpio_SOURCES =
|
116 |
410 |
simons |
mmu_SOURCES =
|
117 |
604 |
markom |
except_test_SOURCES =
|
118 |
576 |
markom |
int_test_SOURCES =
|
119 |
645 |
markom |
fbtest_SOURCES =
|
120 |
664 |
markom |
kbdtest_SOURCES =
|
121 |
224 |
markom |
###############################################
|
122 |
|
|
|
123 |
|
|
endif
|
124 |
|
|
|
125 |
|
|
## Neccessary stuff
|
126 |
|
|
|
127 |
|
|
if OR1K_EXCEPT
|
128 |
|
|
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
|
129 |
|
|
else
|
130 |
|
|
SUBDIRS = support $(SUB_TESTS)
|
131 |
|
|
endif
|
132 |
|
|
|
133 |
|
|
if OR1K_EXCEPT
|
134 |
342 |
markom |
OR1K_SUPPORT_S = except.S
|
135 |
224 |
markom |
else
|
136 |
|
|
OR1K_SUPPORT_S =
|
137 |
|
|
endif
|
138 |
|
|
|
139 |
|
|
LDADD = support/libsupport.a
|
140 |
451 |
markom |
LDFLAGS =
|
141 |
308 |
markom |
TESTS_ENVIRONMENT = $(SHELL) ${top_srcdir}/test $(TESTS_ENV)
|
142 |
224 |
markom |
|
143 |
|
|
again: clean all
|