# Makefile ################################################### # Vars ################################################### p=report_err p=sysinfo p=perror p=ls_SPOOL p=hello_pipe p=ls_less p=setjmp p=signal_fork p=signal p=nonBlock p=gcd_th p=th_minim p=th_hello ################################################### # Targets ################################################### # -lpthread should come after the ${p}.c? # but it seems to work either way... p: gcc ${p}.c -lpthread pc: gcc -lpthread -c ${pc}.c signal(SIGINT, int_handler); printf("SIGINT=%d\n",SIGINT); re report_err: gcc -lpthread -c report_err.c # for unix: nonBlock: nonBlock < /etc/ttydefs si: gcc -lpthread sysinfo.c ################################################### # Housekeeping ################################################### tar: -@tar cvf systemCalls.tar \ Makefile *.c ################################################### # END ###################################################