#
#
BOOST=/usr/groups/han/clteach/boost_1_42_0
CXXFLAGS = -O3 -g -I $(SYSTEMC)/include/ -I $(TLM_HOME)/include/tlm/ -I$(BOOST) -I../hw  -Di386
LFLAGS = -L $(SYSTEMC)/lib-$(ARCH)/ -lsystemc  $(ORSIM)
CLFLAGS=-DSC_INCLUDE_DYNAMIC_PROCESSES 


# spare flags? -DPRAZOR  -std=c++0x -Di386  -std=c++0x

all: sans-systemc  ethercrc_tlm.a

ethercrc_tlm.a: ethercrc_tlm.cpp  ethercrc_tlm.h ethercrc_bev_core.h ethercrc_bev_core.cpp
	g++ -c  $(CXXFLAGS) ethercrc_tlm.cpp  
	g++ -c  $(CXXFLAGS) ethercrc_bev_core.cpp
	ar rcs ethercrc_tlm.a ethercrc_tlm.o ethercrc_bev_core.o


# Run without systemc:
# Compile this with -DCRC_DIRECT_BEVMODEL when running with direct calls.
sans-systemc: testapp.c ethercrc_bev_core.cpp ethercrc_bev_core.h
	g++  $(CXXFLAGS)  -DCRC_DIRECT_BEVMODEL testapp.c ethercrc_bev_core.cpp
	./a.out 

