MADRE_HOME = ../..
include $(MADRE_HOME)/local.mk
LIBS = -L$(MADRE_HOME)/lib -lmadre $(LIBRARIES)
UTIL_DIR = $(MADRE_HOME)/src/util
INC_DIR =  $(MADRE_HOME)/include
COMPILE = $(COMPILER) -c -I$(INC_DIR)
LINK = $(LINKER)


exp3: exp3.o
	$(LINK) -o exp3 exp3.o $(LIBS)

exp3.o: exp3.c $(INC_DIR)/madre.h $(INC_DIR)/util.h
	$(COMPILE) exp3.c

run: exp3
	$(SHORT_RUN) 5 ./exp3 phBred 25 24 8 1

run1: exp3
	$(SHORT_RUN) 16 ./exp3 parkBred 25000 24500 16000 1
	$(SHORT_RUN) 16 ./exp3 parkBred 25000 24600 16000 1
	$(SHORT_RUN) 16 ./exp3 parkBred 25000 24700 16000 1
	$(SHORT_RUN) 16 ./exp3 parkBred 25000 24800 16000 1

run2: exp3
	$(SHORT_RUN) 16 ./exp3 cyclicSchedulerBred 25000 24500 16000 1
	$(SHORT_RUN) 16 ./exp3 cyclicSchedulerBred 25000 24600 16000 1
	$(SHORT_RUN) 16 ./exp3 cyclicSchedulerBred 25000 24700 16000 1
	$(SHORT_RUN) 16 ./exp3 cyclicSchedulerBred 25000 24800 16000 1

clean:
	rm -f *.o exp3 *~
