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

SHARED_CFILES = common.c

TARGET_CFILES = \
    test1.c test2.c test3.c test4.c test5.c test6.c test7.c test8.c \
    test9.c test10.c test11.c test12.c test13.c test14.c test15.c \
    test16.c test17.c test18.c test19.c test20.c test21.c test22.c \
    testep0.c testep1.c testep2.c testep3.c unexp_int.c \
    errcase.c usbdata.c bulk.c iso.c  cov.c int.c pid.c cancel.c \
    cpu.c bitwalk.c pll_bypass.c bug.c

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

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

runtests: $(TARGETS) start_simulator
	./unexp_int -c cpu0 -E n
	./test1 -c cpu0 -q

include $(COMMONRULES)
