## ****************************************************************************
##
##  The following code is derived, directly or indirectly, from the SystemC
##  source code Copyright (c) 1996-2003 by all Contributors.
##  All Rights reserved.
##
##  The contents of this file are subject to the restrictions and limitations
##  set forth in the SystemC Open Source License Version 2.4 (the "License");
##  You may not use this file except in compliance with such restrictions and
##  limitations. You may obtain instructions on how to receive a copy of the
##  License at http://www.systemc.org/. Software distributed by Contributors
##  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
##  ANY KIND, either express or implied. See the License for the specific
##  language governing rights and limitations under the License.
##
## ****************************************************************************
##
##  examples/sysc/risc_cpu/Makefile.am --
##  Process this file with automake to produce a Makefile.in file.
##
##  Original Author: Andy Goodrich, Forte Design Systems, 17 June 2003
##
## ****************************************************************************
##
##  MODIFICATION LOG - modifiers, enter your name, affiliation and
##  changes you are making here:
##
##  Modifier Name & Affiliation:
##  Description of Modification:
##
## ****************************************************************************

H_FILES = \
	bios.h \
	dcache.h \
	decode.h \
	directive.h \
	exec.h \
	fetch.h \
	floating.h \
	icache.h \
	mmxu.h \
	paging.h \
	pic.h

CXX_FILES = \
	bios.cpp \
	dcache.cpp \
	decode.cpp \
	exec.cpp \
	fetch.cpp \
	floating.cpp \
	icache.cpp \
	main.cpp \
	mmxu.cpp \
	paging.cpp \
	pic.cpp

risc_cpu_EXTRAS = \
	README \
	README_TYPESCRIPT \
	abc.asm \
	assembler.pl \
	bios \
	dcache \
	icache \
	printout \
	program \
	register \
	test.asm \
	test1.asm

risc_cpu_SOURCES = $(CXX_FILES) $(H_FILES)

risc_cpu_LDADD = -L$(top_srcdir)/lib-$(TARGET_ARCH) -lsystemc -lm

check_PROGRAMS = risc_cpu
TESTS = $(check_PROGRAMS) 

INCLUDES = -I$(top_srcdir)/include

risc_cpu_INSTALLS = $(risc_cpu_SOURCES) $(risc_cpu_EXTRAS)


all:
	@echo "To compile and run this example type"
	@echo "   make check "

install-data-local:
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) .
	for file in $(risc_cpu_INSTALLS); do \
		$(INSTALL_DATA) $(srcdir)/$$file ./$$file; \
	done



uninstall-local:
	@$(NORMAL_UNINSTALL)
	for file in $(risc_cpu_INSTALLS); do \
		rm -f ./$$file; \
	done

## Taf!
