• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CC=	cc
2
3CFLAGS=	-O -std=gnu99 -Wall
4LIBS=	-lpthread -lrt
5
6PROG=	time_test
7
8SRCS=	time_test.c cpuset.c threads.c logging.c
9HDRS=	spinlock.h cpuset.h threads.h logging.h
10OBJS=	$(SRCS:.c=.o)
11
12all:	$(PROG)
13
14$(PROG):	$(OBJS)
15	$(CC) $(LDFLAGS) -o $(PROG) $(OBJS) $(LIBS)
16
17$(OBJS):	$(HDRS)
18
19clean:
20	-rm -f $(OBJS)
21
22clobber:	clean
23	-rm -f $(PROG)
24