glibc/linuxthreads/Examples/Makefile

16 lines
201 B
Makefile

CC=gcc
CFLAGS=-g -O -Wall -I.. -D_REENTRANT
LIBPTHREAD=../libpthread.a
PROGS=ex1 ex2 ex3 ex4 ex5 proxy
all: $(PROGS)
.c:
$(CC) $(CFLAGS) -o $* $*.c $(LIBPTHREAD)
$(PROGS):
clean:
rm -f $(PROGS)