URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [tags/] [nog_patch_64/] [or1ksim/] [testbench/] [Makefile.am] - Rev 451
Go to most recent revision | Compare with Previous | Blame | View Log
## Makefile for or1ksim testsuite
## (c) Marko Mlinar, 2001
## To add new test, edit between marked areas only
#
# This file is part of OpenRISC 1000 Architectural Simulator.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
################### Tests #####################
# tests in this directory
OR1K_TESTS = basic cache excpt cfg dmatest eth mmu # pic
IND_TESTS = exit cbasic local_global mul mycompress dhry functest
ACV_TESTS = acv_uart
# Subdirectory tests
SUB_TESTS =
OR1K_SUB_TESTS = uos
###############################################
ALL_TESTS = $(IND_TESTS) $(OR1K_TESTS) $(ACV_TESTS)
TESTS = $(IND_TESTS) $(OR1K_TESTS)
bin_PROGRAMS = $(ALL_TESTS)
######### Platform Independent Tests ##########
exit_SOURCES = $(OR1K_SUPPORT_S) support.h exit.c
exit_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
cbasic_SOURCES = $(OR1K_SUPPORT_S) support.h cbasic.c
cbasic_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
local_global_SOURCES = $(OR1K_SUPPORT_S) support.h local_global.c
local_global_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
mul_SOURCES = $(OR1K_SUPPORT_S) support.h mul.c
mul_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
dhry_SOURCES = $(OR1K_SUPPORT_S) support.h dhry.h dhry.c
dhry_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
mycompress_SOURCES = $(OR1K_SUPPORT_S) support.h mycompress.c
mycompress_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
functest_SOURCES = $(OR1K_SUPPORT_S) support.h functest.c
functest_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
###############################################
if OR1K_EXCEPT
####### Platform Dependent Tests - OR1K ########
basic_SOURCES = basic.S spr_defs.h
basic_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
basic_LDADD =
cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c
cache_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
excpt_SOURCES = excpt.S spr_defs.h
excpt_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
excpt_LDADD =
cfg_SOURCES = cfg.S spr_defs.h
cfg_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
cfg_LDADD =
pic_SOURCES = $(OR1K_SUPPORT_S) support.h pic.c
pic_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
eth_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c
acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/except.ld
mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S -DCOPY_SECTIONS
mmu_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld
################################################
else
##### Platform Dependent Tests - not OR1K #####
basic_SOURCES =
cache_SOURCES =
excpt_SOURCES =
cfg_SOURCES =
pic_SOURCES =
dmatest_SOURCES =
eth_SOURCES =
acv_uart_SOURCES =
mmu_SOURCES =
###############################################
endif
## Neccessary stuff
if OR1K_EXCEPT
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
else
SUBDIRS = support $(SUB_TESTS)
endif
if OR1K_EXCEPT
OR1K_SUPPORT_S = except.S
else
OR1K_SUPPORT_S =
endif
LDADD = support/libsupport.a
LDFLAGS =
TESTS_ENVIRONMENT = $(SHELL) ${top_srcdir}/test $(TESTS_ENV)
again: clean all
Go to most recent revision | Compare with Previous | Blame | View Log