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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [Makefile.am] - Blame information for rev 576

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 576 markom
OR1K_TESTS = basic cache cfg dmatest eth mmu except_test pic int_test
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 485 markom
exit_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
41 224 markom
cbasic_SOURCES = $(OR1K_SUPPORT_S) support.h cbasic.c
42 485 markom
cbasic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
43 493 markom
cbasic_CFLAGS = -DXXX
44 224 markom
local_global_SOURCES = $(OR1K_SUPPORT_S) support.h local_global.c
45 485 markom
local_global_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
46 224 markom
mul_SOURCES = $(OR1K_SUPPORT_S) support.h mul.c
47 485 markom
mul_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
48 224 markom
dhry_SOURCES = $(OR1K_SUPPORT_S) support.h dhry.h dhry.c
49 485 markom
dhry_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
50 224 markom
mycompress_SOURCES = $(OR1K_SUPPORT_S) support.h mycompress.c
51 485 markom
mycompress_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
52 409 markom
functest_SOURCES = $(OR1K_SUPPORT_S) support.h functest.c
53 485 markom
functest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
54 538 markom
mem_test_SOURCES = $(OR1K_SUPPORT_S) support.h mem_test.c
55
mem_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
56 574 markom
inst_set_test_SOURCES = $(OR1K_SUPPORT_S) support.h inst_set_test.c
57
inst_set_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
58 224 markom
###############################################
59
 
60 452 ivang
######### MC Tests ############################
61
mc_dram_SOURCES = except_mc.S mc_common.h mc_common.c mc_dram.h mc_dram.c
62
mc_dram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
63
mc_ssram_SOURCES = except_mc.S mc_common.h mc_common.c mc_ssramh mc_ssram.c
64
mc_ssram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
65
mc_async_SOURCES = except_mc.S mc_common.h mc_common.c mc_async.h mc_async.c
66
mc_async_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
67
mc_sync_SOURCES = except_mc.S mc_common.h mc_common.c mc_sync.h mc_sync.c
68
mc_sync_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld
69
###############################################
70
 
71 224 markom
if OR1K_EXCEPT
72
 
73
####### 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
cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c
78 485 markom
cache_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
79 224 markom
cfg_SOURCES = cfg.S spr_defs.h
80 574 markom
cfg_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
81 224 markom
cfg_LDADD =
82 310 markom
pic_SOURCES = $(OR1K_SUPPORT_S) support.h pic.c
83 485 markom
pic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
84 258 erez
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
85 485 markom
dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
86 258 erez
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
87 485 markom
eth_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
88 344 markom
acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c
89 485 markom
acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
90 478 erez
acv_gpio_SOURCES = $(OR1K_SUPPORT_S) support.h acv_gpio.c
91 485 markom
acv_gpio_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld
92 574 markom
mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S
93 451 markom
mmu_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
94 516 markom
except_test_SOURCES = except_test_s.S except_test.c spr_defs.h
95
except_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
96 576 markom
int_test_SOURCES = spr_defs.h int_test.S
97
int_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
98
int_test_LDADD =
99 224 markom
################################################
100
 
101
else
102
 
103
##### Platform Dependent Tests - not OR1K #####
104
basic_SOURCES =
105
cache_SOURCES =
106
cfg_SOURCES =
107 310 markom
pic_SOURCES =
108 258 erez
dmatest_SOURCES =
109
eth_SOURCES =
110 344 markom
acv_uart_SOURCES =
111 478 erez
acv_gpio_SOURCES =
112 410 simons
mmu_SOURCES =
113 460 simons
except_SOURCES =
114 576 markom
int_test_SOURCES =
115 224 markom
###############################################
116
 
117
endif
118
 
119
## Neccessary stuff
120
 
121
if OR1K_EXCEPT
122
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
123
else
124
SUBDIRS = support $(SUB_TESTS)
125
endif
126
 
127
if OR1K_EXCEPT
128 342 markom
OR1K_SUPPORT_S = except.S
129 224 markom
else
130
OR1K_SUPPORT_S =
131
endif
132
 
133
LDADD = support/libsupport.a
134 451 markom
LDFLAGS =
135 308 markom
TESTS_ENVIRONMENT = $(SHELL) ${top_srcdir}/test $(TESTS_ENV)
136 224 markom
 
137
again: clean all

powered by: WebSVN 2.1.0

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