#TARGET_ARCH =gccsparcOS5
TARGET_ARCH =linux


CC     = g++
OPT    = -O3
DEBUG  = -g
OTHER  = -Wall
# CFLAGS = $(OPT) $(OTHER)
CFLAGS = $(DEBUG) $(OTHER) -I. -DHAVE_CONFIG_H
FCOLIB = fcpu_opcodes/libfcpu_opcodes.a

MODULE = simu_fcpu
OBJS = main.o emu.o emumain.o prefetcher.o lsu.o fcpu.o ram.o $(FCOLIB)
HEADERS = ram_interface.hh L1I.hh L1D.hh
include ../Makefile.defs

main.o: $(HEADERS) main.cpp
rdv.o: $(HEADERS) rdv.cpp
Emetteur.o: $(HEADERS) Emetteur.cpp
Recepteur.o: $(HEADERS) Recepteur.cpp
fcpu_opcodes/libfcpu_opcodes.a:
	make -C fcpu_opcodes

