1 CFLAGS= -O -lpthread -D_LINUX_ 2 SRCS=$(wildcard *.c) 3 TARGETS=$(patsubst %.c,%,$(SRCS)) 4 5 all: $(TARGETS) 6 7