OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [testbench/] [Makefile.am] - Blame information for rev 1770

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
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 1725 nogj
OR1K_TESTS = basic cache cfg dmatest eth mmu except_test int_test flag fbtest kbdtest tick ext
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 1540 nogj
tick_SOURCES = $(OR1K_SUPPORT_S) support.h tick.c
49 224 markom
###############################################
50
 
51 604 markom
if OR1K_EXCEPT
52
 
53
exit_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
54
cbasic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
55
local_global_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
56
mul_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
57
dhry_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
58
mycompress_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
59
functest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
60
mem_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
61
inst_set_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
62 1540 nogj
tick_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
63 604 markom
 
64 452 ivang
######### MC Tests ############################
65
mc_dram_SOURCES = except_mc.S mc_common.h mc_common.c mc_dram.h mc_dram.c
66
mc_dram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
67
mc_ssram_SOURCES = except_mc.S mc_common.h mc_common.c mc_ssramh mc_ssram.c
68
mc_ssram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
69
mc_async_SOURCES = except_mc.S mc_common.h mc_common.c mc_async.h mc_async.c
70
mc_async_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
71
mc_sync_SOURCES = except_mc.S mc_common.h mc_common.c mc_sync.h mc_sync.c
72
mc_sync_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
73
###############################################
74
 
75 224 markom
####### Platform Dependent Tests - OR1K ########
76 424 markom
basic_SOURCES = basic.S spr_defs.h
77 970 simons
basic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
78 224 markom
basic_LDADD =
79 615 markom
flag_SOURCES = flag.S spr_defs.h
80 970 simons
flag_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
81 615 markom
flag_LDADD =
82 970 simons
cache_SOURCES = support.h cache.c cache_asm.S
83 802 simons
cache_LDFLAGS = -T$(OR1K_SRCDIR)/cache.ld
84 224 markom
cfg_SOURCES = cfg.S spr_defs.h
85 970 simons
cfg_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
86 224 markom
cfg_LDADD =
87 258 erez
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
88 485 markom
dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
89 258 erez
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
90 485 markom
eth_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
91 344 markom
acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c
92 485 markom
acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
93 478 erez
acv_gpio_SOURCES = $(OR1K_SUPPORT_S) support.h acv_gpio.c
94 485 markom
acv_gpio_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
95 574 markom
mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S
96 970 simons
mmu_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
97 516 markom
except_test_SOURCES = except_test_s.S except_test.c spr_defs.h
98 970 simons
except_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
99 576 markom
int_test_SOURCES = spr_defs.h int_test.S
100 970 simons
int_test_LDFLAGS = -T$(OR1K_SRCDIR)/int_test.ld
101 645 markom
fbtest_SOURCES = $(OR1K_SUPPORT_S) support.h fbtest.c
102
fbtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
103 664 markom
kbdtest_SOURCES = $(OR1K_SUPPORT_S) support.h kbdtest.c
104
kbdtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
105 1725 nogj
ext_SOURCES = ext.S
106
ext_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
107 224 markom
################################################
108
 
109 604 markom
else
110 224 markom
 
111
##### Platform Dependent Tests - not OR1K #####
112
basic_SOURCES =
113 615 markom
flag_SOURCES =
114 224 markom
cache_SOURCES =
115
cfg_SOURCES =
116 258 erez
dmatest_SOURCES =
117
eth_SOURCES =
118 344 markom
acv_uart_SOURCES =
119 478 erez
acv_gpio_SOURCES =
120 410 simons
mmu_SOURCES =
121 604 markom
except_test_SOURCES =
122 576 markom
int_test_SOURCES =
123 645 markom
fbtest_SOURCES =
124 664 markom
kbdtest_SOURCES =
125 224 markom
###############################################
126
 
127
endif
128
 
129
## Neccessary stuff
130
 
131
if OR1K_EXCEPT
132
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
133
else
134
SUBDIRS = support $(SUB_TESTS)
135
endif
136
 
137
if OR1K_EXCEPT
138 342 markom
OR1K_SUPPORT_S = except.S
139 224 markom
else
140
OR1K_SUPPORT_S =
141
endif
142
 
143
LDADD = support/libsupport.a
144 451 markom
LDFLAGS =
145 308 markom
TESTS_ENVIRONMENT = $(SHELL) ${top_srcdir}/test $(TESTS_ENV)
146 224 markom
 
147
again: clean all

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.