-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 870 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 870 Bytes
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
CC=gcc
CFLAGS=-g -O3 -Wall -pthread
TARGET=bufcounts
.SILENT:
bufcounts: bufcounts.c donottouch.c
$(CC) $(CFLAGS) -o $@ $^
eval:
$(CC) -DTHREAD_MAX=1 -DARRAY_SIZE=32 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=1 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=2 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=4 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=32 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=64 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
$(CC) -DTHREAD_MAX=16 -DARRAY_SIZE=128 $(CFLAGS) -o bufcounts bufcounts.c donottouch.c
./bufcounts
clean:
rm -f $(TARGET)