PROGS=escaperoot forkbomb testipc testlimit testopenf chrootsafe

all: $(PROGS)

escaperoot: escaperoot.cc
	gcc -Wall escaperoot.cc -o escaperoot -lstdc++

chrootsafe: chrootsafe.cc
	gcc -Wall chrootsafe.cc ../syscall.o -o chrootsafe -lstdc++

forkbomb: forkbomb.cc
	gcc -Wall forkbomb.cc -o forkbomb

testipc: testipc.cc
	gcc -Wall testipc.cc -o testipc

testlimit: testlimit.cc
	gcc -Wall testlimit.cc -o testlimit

testopenf: testopenf.cc
	gcc -Wall testopenf.cc -o testopenf

clean:
	rm -f $(PROGS) *.o *.bak *~ core

