SYSC_INC_PREFIX = /home/pini/Home_1/pini/systemc-2.3.0/include SYSC_LIB_PREFIX = /home/pini/Home_1/pini/systemc-2.3.0/lib-linux includedir = /home/pini/Home_1/pini/systemc-2.3.0/include libdir = /home/pini/Home_1/pini/systemc-2.3.0/lib-linux ## **************************************************************************** ## ## The following code is derived, directly or indirectly, from the SystemC ## source code Copyright (c) 1996-2002 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.3 (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. ## ## **************************************************************************** # These Makefile rules require the definition of the following environment # variables (set by configure): # # includedir The include directory for SCV # libdir The library directory for SCV # SYSC_INC_PREFIX The include directory for SystemC # SYSC_LIB_PREFIX The library directory for SystemC # # They also require definition of these Makefile variables (set in the # Makefile that uses the rules): # # SOURCE_FILES The C++ source files (.cc or .cpp) for the example # INCLUDE_FILES The C++ headers files (.h) for the example # # They provide targets for three architectures: # # sun-gnu # linux # hppa-native SHELL = /bin/sh AUTOMAKE_OPTIONS = foreign OBJECT_FILES = ${addsuffix .o, ${basename ${SOURCE_FILES}}} CLEANFILES = ${OBJECT_FILES} libscvtestbench.so run.x DISTCLEANFILES = ${CLEANFILES} H_FILES = \ simple_bus_types.h \ simple_bus.h \ simple_bus_arbiter.h \ simple_bus_arbiter_if.h \ simple_bus_blocking_if.h \ simple_bus_direct_if.h \ simple_bus_fast_mem.h \ simple_bus_master_blocking.h \ simple_bus_master_direct.h \ simple_bus_master_non_blocking.h \ simple_bus_non_blocking_if.h \ simple_bus_request.h \ simple_bus_slave_if.h \ simple_bus_slow_mem.h \ simple_bus_test.h CXX_FILES = \ simple_bus.cpp \ simple_bus_arbiter.cpp \ simple_bus_main.cpp \ simple_bus_master_blocking.cpp \ simple_bus_master_direct.cpp \ simple_bus_master_non_blocking.cpp \ simple_bus_types.cpp \ simple_bus_tools.cpp simple_bus_SOURCES = $(CXX_FILES) $(H_FILES) #to override use make run DBG_OPT="gdb " DBG_OPT = "" run.o : $(simple_bus_SOURCES) LD_LIBRARY_PATH=.:${SYSC_LIB_PREFIX}:${libdir}:${LD_LIBRARY_PATH}; \ export LD_LIBRARY_PATH; \ g++ -I../ -I${SYSC_INC_PREFIX} -I${includedir} -fPIC -c -g -MD -Wall -O2 $(simple_bus_SOURCES) run.x : simple_bus_main.o LD_LIBRARY_PATH=.:${SYSC_LIB_PREFIX}:${libdir}:${LD_LIBRARY_PATH}; \ export LD_LIBRARY_PATH; \ g++ *.o -L${SYSC_LIB_PREFIX} -lsystemc -L${libdir} -lscv -L${SYSC_LIB_PREFIX} -lsystemc -o run.x run.exe : LD_LIBRARY_PATH=.:${SYSC_LIB_PREFIX}:${libdir}:${LD_LIBRARY_PATH}; \ export LD_LIBRARY_PATH; \ $(DBG_OPT)./run.x clean : rm *.log *.o *.d c_list.txt e_list_1.txt *.x c_list : *.d find . -name "*.d" | xargs -n1 | xargs -i= perl ~/bin/c_depend.pl = ; \ cat c_list.txt | sort | uniq > 1.txt ; \ mv -f 1.txt c_list.txt ; \ ctags -L c_list.txt ; \ cp c_list.txt e_list_1.txt