1 CC= cc 2 CFLAGS= -O 3 LIBS= -lpthread 4 5 PROGS= checktsc 6 7 SRCS= checktsc.c 8 OBJS= ${SRCS:.c=.o} 9 10 11 all: $(PROGS) 12 13 checktsc: $(OBJS) 14 $(CC) $(LDFLAGS) -o checktsc $(OBJS) $(LIBS) 15 16 clean: 17 -rm -f $(OBJS) 18 19 clobber: clean 20 -rm -f $(PROGS) 21