blob: 2121ec428257889d6d856708bb0b97f628a3c052 [file] [log] [blame]
CC= cc
CFLAGS= -O -std=gnu99 -Wall
LIBS= -lpthread -lrt
PROG= time_test
SRCS= time_test.c cpuset.c threads.c logging.c
HDRS= spinlock.h cpuset.h threads.h logging.h
OBJS= $(SRCS:.c=.o)
all: $(PROG)
$(PROG): $(OBJS)
$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
$(OBJS): $(HDRS)
clean:
-rm -f $(OBJS)
clobber: clean
-rm -f $(PROG)