all: forktest forkandsleep forkandwait offtotheraces # uncomment this for BSD (to find readline) OPTIONS = -I/usr/local/include -L/usr/local/lib forktest: forktest.c gcc -Wall -o forktest forktest.c forkandsleep: forkandsleep.c gcc -Wall -o forkandsleep forkandsleep.c # this one uses readline forkandwait: forkandwait.c gcc -Wall -o forkandwait forkandwait.c ${OPTIONS} -lreadline -lcurses offtotheraces: offtotheraces.c gcc -Wall -o offtotheraces offtotheraces.c # make clean will remove all executables clean: rm forktest forkandsleep forkandwait offtotheraces