CC = gcc CFLAGS = -g PROGRAMS = thr-stack-overflow \ pagesize sbrk sbrk-malloc \ sh1 sh2 sh_fork sh_semaforo \ sh_server sh_client \ map-size map-armadilha map-loop all: $(PROGRAMS) pagesize: pagesize.c gcc pagesize.c -g -lm -o pagesize thr-stack-overflow: thr-stack-overflow.c gcc thr-stack-overflow.c -g -pthread -o thr-stack-overflow sh_semaforo: sh_semaforo.c gcc sh_semaforo.c -g -pthread -lm -o sh_semaforo sh_mutex: sh_mutex.c gcc sh_mutex.c -g -pthread -o sh_mutex clean: rm -f *.o *~ *.aux *.log *.dvi $(PROGRAMS)