## Makefile for or1ksim testsuite
|
## Makefile for or1ksim testsuite
|
## (c) Marko Mlinar, 2001
|
## (c) Marko Mlinar, 2001
|
## To add new test, edit between marked areas only
|
## To add new test, edit between marked areas only
|
#
|
#
|
# This file is part of OpenRISC 1000 Architectural Simulator.
|
# This file is part of OpenRISC 1000 Architectural Simulator.
|
#
|
#
|
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
# the Free Software Foundation; either version 2 of the License, or
|
# the Free Software Foundation; either version 2 of the License, or
|
# (at your option) any later version.
|
# (at your option) any later version.
|
#
|
#
|
# This program is distributed in the hope that it will be useful,
|
# This program is distributed in the hope that it will be useful,
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
#
|
#
|
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
#
|
#
|
|
|
################### Tests #####################
|
################### Tests #####################
|
# tests in this directory
|
# tests in this directory
|
TESTS = exit cbasic local_global mul mycompress dhry
|
TESTS = exit cbasic local_global mul mycompress dhry
|
OR1K_TESTS = basic cache excpt cfg pic dma
|
# OR1K_TESTS = basic cache excpt cfg pic dmatest eth
|
|
OR1K_TESTS = basic cache excpt cfg dmatest eth
|
# Subdirectory tests
|
# Subdirectory tests
|
SUB_TESTS =
|
SUB_TESTS =
|
OR1K_SUB_TESTS = uos
|
OR1K_SUB_TESTS = uos
|
###############################################
|
###############################################
|
|
|
bin_PROGRAMS = $(TESTS) $(OR1K_TESTS)
|
bin_PROGRAMS = $(TESTS) $(OR1K_TESTS)
|
|
|
######### Platform Independent Tests ##########
|
######### Platform Independent Tests ##########
|
exit_SOURCES = $(OR1K_SUPPORT_S) support.h exit.c
|
exit_SOURCES = $(OR1K_SUPPORT_S) support.h exit.c
|
cbasic_SOURCES = $(OR1K_SUPPORT_S) support.h cbasic.c
|
cbasic_SOURCES = $(OR1K_SUPPORT_S) support.h cbasic.c
|
local_global_SOURCES = $(OR1K_SUPPORT_S) support.h local_global.c
|
local_global_SOURCES = $(OR1K_SUPPORT_S) support.h local_global.c
|
mul_SOURCES = $(OR1K_SUPPORT_S) support.h mul.c
|
mul_SOURCES = $(OR1K_SUPPORT_S) support.h mul.c
|
dhry_SOURCES = $(OR1K_SUPPORT_S) support.h dhry.h dhry.c
|
dhry_SOURCES = $(OR1K_SUPPORT_S) support.h dhry.h dhry.c
|
mycompress_SOURCES = $(OR1K_SUPPORT_S) support.h mycompress.c
|
mycompress_SOURCES = $(OR1K_SUPPORT_S) support.h mycompress.c
|
###############################################
|
###############################################
|
|
|
if OR1K_EXCEPT
|
if OR1K_EXCEPT
|
|
|
####### Platform Dependent Tests - OR1K ########
|
####### Platform Dependent Tests - OR1K ########
|
basic_SOURCES = basic.s spr_defs.h
|
basic_SOURCES = basic.s spr_defs.h
|
basic_LDFLAGS =
|
basic_LDFLAGS =
|
basic_LDADD =
|
basic_LDADD =
|
cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c
|
cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c
|
excpt_SOURCES = excpt.S spr_defs.h
|
excpt_SOURCES = excpt.S spr_defs.h
|
excpt_LDFLAGS =
|
excpt_LDFLAGS =
|
excpt_LDADD =
|
excpt_LDADD =
|
cfg_SOURCES = cfg.S spr_defs.h
|
cfg_SOURCES = cfg.S spr_defs.h
|
cfg_LDFLAGS =
|
cfg_LDFLAGS =
|
cfg_LDADD =
|
cfg_LDADD =
|
pic_SOURCES = $(OR1K_SUPPORT_S) support.h pic.c
|
# pic_SOURCES = $(OR1K_SUPPORT_S) support.h pic.c
|
dma_SOURCES = $(OR1K_SUPPORT_S) support.h dma.c
|
dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c
|
|
eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c
|
################################################
|
################################################
|
|
|
else
|
else
|
|
|
##### Platform Dependent Tests - not OR1K #####
|
##### Platform Dependent Tests - not OR1K #####
|
basic_SOURCES =
|
basic_SOURCES =
|
basic_LDFLAGS =
|
basic_LDFLAGS =
|
basic_LDADD =
|
basic_LDADD =
|
cache_SOURCES =
|
cache_SOURCES =
|
excpt_SOURCES =
|
excpt_SOURCES =
|
excpt_LDFLAGS =
|
excpt_LDFLAGS =
|
excpt_LDADD =
|
excpt_LDADD =
|
cfg_SOURCES =
|
cfg_SOURCES =
|
pic_SOURCES =
|
# pic_SOURCES =
|
dma_SOURCES =
|
dmatest_SOURCES =
|
|
eth_SOURCES =
|
###############################################
|
###############################################
|
|
|
endif
|
endif
|
|
|
## Neccessary stuff
|
## Neccessary stuff
|
|
|
if OR1K_EXCEPT
|
if OR1K_EXCEPT
|
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
|
SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS)
|
else
|
else
|
SUBDIRS = support $(SUB_TESTS)
|
SUBDIRS = support $(SUB_TESTS)
|
endif
|
endif
|
|
|
if OR1K_EXCEPT
|
if OR1K_EXCEPT
|
OR1K_SUPPORT_S = except.s
|
OR1K_SUPPORT_S = except.s
|
else
|
else
|
OR1K_SUPPORT_S =
|
OR1K_SUPPORT_S =
|
endif
|
endif
|
|
|
LDADD = support/libsupport.a
|
LDADD = support/libsupport.a
|
LDFLAGS = -T${top_srcdir}/except.ld
|
LDFLAGS = -T${top_srcdir}/except.ld
|
|
|
again: clean all
|
again: clean all
|
|
|