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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [or1ksim/] [or1ksim-0.3.0/] [testbench/] [Makefile.am] - Blame information for rev 783

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

Line No. Rev Author Line
1 19 jeremybenn
## 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
OR1K_TESTS = basic cache cfg dmatest eth mmu except_test int_test flag fbtest kbdtest tick ext
25
IND_TESTS = exit cbasic local_global mul mycompress dhry functest mem_test
26
# inst_set_test
27
ACV_TESTS = acv_uart acv_gpio
28
MC_TESTS = mc_dram mc_ssram mc_async mc_sync
29
# Subdirectory tests
30
SUB_TESTS =
31
OR1K_SUB_TESTS = uos
32
###############################################
33
 
34
ALL_TESTS = $(IND_TESTS) $(OR1K_TESTS) $(ACV_TESTS) $(MC_TESTS)
35
TESTS = $(IND_TESTS) $(OR1K_TESTS)
36
bin_PROGRAMS = $(ALL_TESTS)
37
 
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
functest_SOURCES = $(OR1K_SUPPORT_S) support.h functest.c
46
mem_test_SOURCES = $(OR1K_SUPPORT_S) support.h mem_test.c
47
inst_set_test_SOURCES = $(OR1K_SUPPORT_S) support.h inst_set_test.c
48
tick_SOURCES = $(OR1K_SUPPORT_S) support.h tick.c
49
###############################################
50
 
51
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
tick_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
63
 
64
######### 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
####### Platform Dependent Tests - OR1K ########
76
basic_SOURCES = basic.S spr_defs.h
77
basic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
78
basic_LDADD =
79
flag_SOURCES = flag.S spr_defs.h
80
flag_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
81
flag_LDADD =
82
cache_SOURCES = support.h cache.c cache_asm.S
83
cache_LDFLAGS = -T$(OR1K_SRCDIR)/cache.ld
84
cfg_SOURCES = cfg.S spr_defs.h
85
cfg_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
86
cfg_LDADD =
87
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
88
dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
89
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
90
eth_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
91
acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c
92
acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
93
acv_gpio_SOURCES = $(OR1K_SUPPORT_S) support.h acv_gpio.c
94
acv_gpio_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
95
mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S
96
mmu_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
97
except_test_SOURCES = except_test_s.S except_test.c spr_defs.h
98
except_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
99
int_test_SOURCES = spr_defs.h int_test.S
100
int_test_LDFLAGS = -T$(OR1K_SRCDIR)/int_test.ld
101
fbtest_SOURCES = $(OR1K_SUPPORT_S) support.h fbtest.c
102
fbtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
103
kbdtest_SOURCES = $(OR1K_SUPPORT_S) support.h kbdtest.c
104
kbdtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
105
ext_SOURCES = ext.S
106
ext_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
107
################################################
108
 
109
else
110
 
111
##### Platform Dependent Tests - not OR1K #####
112
basic_SOURCES =
113
flag_SOURCES =
114
cache_SOURCES =
115
cfg_SOURCES =
116
dmatest_SOURCES =
117
eth_SOURCES =
118
acv_uart_SOURCES =
119
acv_gpio_SOURCES =
120
mmu_SOURCES =
121
except_test_SOURCES =
122
int_test_SOURCES =
123
fbtest_SOURCES =
124
kbdtest_SOURCES =
125
###############################################
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
OR1K_SUPPORT_S = except.S
139
else
140
OR1K_SUPPORT_S =
141
endif
142
 
143
LDADD = support/libsupport.a
144
LDFLAGS =
145
TESTS_ENVIRONMENT = $(SHELL) ${top_srcdir}/test $(TESTS_ENV)
146
 
147
again: clean all

powered by: WebSVN 2.1.0

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