-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (35 loc) · 1.65 KB
/
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
CC = gcc -g
#CC = icc -mmic -DPHI #use this for to make an executable for Phi
CFLAGS = -std=c99 -D_GNU_SOURCE -O2 -Wall -Wpedantic #-DVERBOSE
OBJECTS = basicqueue.o xtask_api.o squeuemultiple.o xtask_mpmc_api.o main.o
LDFLAGS = -lpthread
all:
$(CC) $(CFLAGS) -c -DLATENCY -Dspsctest basicqueue.c
$(CC) $(CFLAGS) -c -DLATENCY -Dspsctest xtask_api.c
$(CC) $(CFLAGS) -c -DLATENCY -Dspsctest squeuemultiple.c
$(CC) $(CFLAGS) -c -DLATENCY -Dspsctest xtask_mpmc_api.c
$(CC) $(CFLAGS) -c -DLATENCY -Dspsctest main.c
$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -DLATENCY -Dspsctest -o main
allmpmc:
$(CC) $(CFLAGS) -c -DLATENCY -Dmpmctest basicqueue.c
$(CC) $(CFLAGS) -c -DLATENCY -Dmpmctest xtask_api.c
$(CC) $(CFLAGS) -c -DLATENCY -Dmpmctest squeuemultiple.c
$(CC) $(CFLAGS) -c -DLATENCY -Dmpmctest xtask_mpmc_api.c
$(CC) $(CFLAGS) -c -DLATENCY -Dmpmctest main.c
$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -DLATENCY -Dmpmctest -o main
th:
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dspsctest basicqueue.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dspsctest xtask_api.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dspsctest squeuemultiple.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dspsctest xtask_mpmc_api.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dspsctest main.c
$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -DTHROUGHPUT -Dspsctest -o main
thmpmc:
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dmpmctest basicqueue.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dmpmctest xtask_api.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dmpmctest squeuemultiple.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dmpmctest xtask_mpmc_api.c
$(CC) $(CFLAGS) -c -DTHROUGHPUT -Dmpmctest main.c
$(CC) $(CFLAGS) $(OBJECTS) $(LDFLAGS) -DTHROUGHPUT -Dmpmctest -o main
clean:
rm -f *.o main