SRC = src
FLAGS = 

all: test0 test1 test2 testsw2 testsw1 

testsw1: $(SRC)/testsw1.c ../netsim.o
	../netsim $(FLAGS) -o testsw1 $(SRC)/testsw1.c
	rm -f testsw1.o

testsw1saf: $(SRC)/testsw1saf.c ../netsim.o
	../netsim $(FLAGS) -o testsw1saf $(SRC)/testsw1saf.c
	rm -f testsw1saf.o

testsw1vct: $(SRC)/testsw1vct.c ../netsim.o
	../netsim $(FLAGS) -o testsw1vct $(SRC)/testsw1vct.c
	rm -f testsw1vct.o

testsw1app: $(SRC)/testsw1app.c ../netsim.o
	../netsim $(FLAGS) -o testsw1app $(SRC)/testsw1app.c
	rm -f testsw1app.o

testsw2: $(SRC)/testsw2.c ../netsim.o
	../netsim $(FLAGS) -o testsw2 $(SRC)/testsw2.c
	rm -f testsw2.o

test0: $(SRC)/test0.c ../netsim.o
	../netsim $(FLAGS) -o test0 $(SRC)/test0.c
	rm -f test0.o

test1: $(SRC)/test1.c ../netsim.o
	../netsim $(FLAGS) -o test1 $(SRC)/test1.c
	rm -f test1.o

test2: $(SRC)/test2.c ../netsim.o
	../netsim $(FLAGS) -o test2 $(SRC)/test2.c
	rm -f test2.o

test3: $(SRC)/test3.c ../netsim.o
	../netsim $(FLAGS) -o test3 $(SRC)/test3.c
	rm -f test3.o


