WARN=-Wall --pedantic 
CFLAGS=-g $(WARN) 
CMDCOUNT=20

it : run-command-int

run-command-int : command-int tasklist
	/usr/bin/time --verbose	./command-int tasklist

command-int : command-int.o commands.o 
	gcc $(CFLAGS) -o command-int command-int.o commands.o 

command-int.o : command-int.c cmd.h 
	gcc $(CFLAGS) -c command-int.c

commands.o : commands.c cmd.h 
	gcc $(CFLAGS) -c commands.c

commands.c : gen-commands.py	
	python gen-commands.py $(CMDCOUNT) >commands.c

tasklist : gentasks.py 
	python gentasks.py tasklist $(CMDCOUNT) 500 5 200000 

clean : 
	rm commands
