include $(ROOT)/usr/include/make/X86defs

TARGET_CFILES = \
    gba_test.c \
    cpu_test.c \
    bd_rd.c \
    rst.c \
    test_sha.c \
    test_fl.c \
    access.c \
    cps.c \
    cpu_gba.c \
    cpu_gba2.c \
    cpu.c dump.c sdram.c bd.c

LCINCS  = -I$(ROOT)/usr/include/sc
LCOPTS  = -DDEBUG 
OPTIMIZER = -g

default: $(TARGETS) $(TARGET_CFILES)

$(TARGETS): $(ROOT)/usr/lib/x86/libiosim.a

install:	default
	$(INSTALL) cpu $(ROOT)/usr/bin/x86

include $(COMMONRULES)
