-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 928 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# $Id$
#
CC = cc
CFLAGS = -g -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_BSD_SOURCE \
-W -Wall -Werror -Wstrict-prototypes -Wpointer-arith \
-Wmissing-prototypes -Wsign-compare -std=c99 -pedantic -pipe
LDFLAGS =
#
RM = /bin/rm
#
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) -c $<
all: drop-from-pagecache is-in-pagecache prefetch-to-pagecache slices-in-pagecache
drop-from-pagecache: drop-from-pagecache.o errwarn.o
@$(RM) -f $@
$(CC) $^ $(LDFLAGS) -o $@
is-in-pagecache: is-in-pagecache.o errwarn.o
@$(RM) -f $@
$(CC) $^ $(LDFLAGS) -o $@
hrr: hrr.o errwarn.o
@$(RM) -f $@
$(CC) $^ $(LDFLAGS) -o $@
prefetch-to-pagecache: prefetch-to-pagecache.o errwarn.o
@$(RM) -f $@
$(CC) $^ $(LDFLAGS) -o $@
slices-in-pagecache: slices-in-pagecache.o errwarn.o
@$(RM) -f $@
$(CC) $^ $(LDFLAGS) -o $@
clean:
@$(RM) -f *.o drop-from-pagecache hrr is-in-pagecache prefetch-to-pagecache prefetch-to-pagecache slices-in-pagecache