Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (49 sloc) 1.766 kb
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
1 all_target := posix
2 uname := $(shell uname -s)
3 ifeq ($(uname),Linux)
4 all_target := linux
5 endif
6 ifeq ($(uname),OpenBSD)
7 all_target := openbsd
8 endif
2d45f6f @avsm add Darwin support also (not run, just compile tested so far)
authored
9 ifeq ($(uname),Darwin)
10 all_target := darwin
11 endif
12
65b421f @avsm cleanup of the various tests and more structured output for graphing
authored
13 .PHONY: all clean run
844967a @rigtorp Initial commit
rigtorp authored
14
ef795f9 @avsm define -DLinux when on Linux
authored
15 CFLAGS_Linux = -DUSE_INLINE_ASM -DLinux
2d45f6f @avsm add Darwin support also (not run, just compile tested so far)
authored
16 CFLAGS_OpenBSD = -DUSE_INLINE_ASM
17 CFLAGS += -g -Wall -O3 -D_GNU_SOURCE -DNDEBUG -std=gnu99 $(CFLAGS_$(uname))
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
18
7b93a27 @avsm move -lrt -lnuma to Linux-specific LDFLAGS
authored
19 LDFLAGS_Linux := -lrt -lnuma
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
20 LDFLAGS += -lm $(LDFLAGS_$(uname))
21
7b93a27 @avsm move -lrt -lnuma to Linux-specific LDFLAGS
authored
22 TARGETS_POSIX := pipe_thr tcp_thr tcp_nodelay_thr unix_thr mempipe_spin_thr
23 TARGETS_Linux += mempipe_thr vmsplice_pipe_thr vmsplice_hugepages_pipe_thr vmsplice_hugepages_coop_pipe_thr vmsplice_coop_pipe_thr
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
24
25 TARGETS_POSIX += pipe_lat unix_lat tcp_lat tcp_nodelay_lat mempipe_lat
26 TARGETS_Linux += shmem_pipe_thr futex_lat
27
28 TARGETS_POSIX += summarise_tsc_counters
29
30 TARGETS_OpenBSD :=
2d45f6f @avsm add Darwin support also (not run, just compile tested so far)
authored
31 TARGETS_Darwin :=
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
32
33 TARGETS := $(TARGETS_POSIX) $(TARGETS_$(uname))
34
35 x-%:
36 echo $($*)
7937ca2 Make sure that all the targets are killed by make clean.
Steven Smith authored
37
38 all: $(TARGETS)
5521a51 @avsm swizzle around the targets in the Makefile to make it easir to add OS-sp...
authored
39 @ :
65b421f @avsm cleanup of the various tests and more structured output for graphing
authored
40
0f42a3e @avsm Merge branch 'master' into openbsd
authored
41 %_lat: atomicio.o test.o xutil.o %_lat.o stats.o
7e954b6 Some versions of ld apparently require the list of libraries to go at
Steven Smith authored
42 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
65b421f @avsm cleanup of the various tests and more structured output for graphing
authored
43
0f42a3e @avsm Merge branch 'master' into openbsd
authored
44 %_thr: atomicio.o test.o xutil.o %_thr.o stats.o
7e954b6 Some versions of ld apparently require the list of libraries to go at
Steven Smith authored
45 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
65b421f @avsm cleanup of the various tests and more structured output for graphing
authored
46
ae96c21 @smowton Move the more difficult tests to the improved test harness
smowton authored
47 tcp_nodelay_thr.o: tcp_thr.c
48 $(CC) $(CFLAGS) $^ -c -DUSE_NODELAY -o $@
d8a8745 @smowton Add version of mempipe that uses Stephen's rep-stos memset as the data s...
smowton authored
49
a2b13fb @smowton Support latency tests
smowton authored
50 tcp_nodelay_lat.o: tcp_lat.c
51 $(CC) $(CFLAGS) $^ -c -DUSE_NODELAY -o $@
52
ae96c21 @smowton Move the more difficult tests to the improved test harness
smowton authored
53 mempipe_spin_thr.o: mempipe_thr.c
cd68604 @smowton Make a spinny version of mempipe
smowton authored
54 $(CC) $(CFLAGS) $^ -c -DNO_FUTEX -o $@
d8a8745 @smowton Add version of mempipe that uses Stephen's rep-stos memset as the data s...
smowton authored
55
98222a5 @smowton Add version of vmsplice with huge apges
smowton authored
56 vmsplice_hugepages_pipe_thr.o: vmsplice_pipe_thr.c
2a7b0da @smowton Add cooperative pseudo-ring vmsplice mode, and rationalise the Makefile ...
smowton authored
57 $(CC) $(CFLAGS) $^ -c -DUSE_HUGE_PAGES -o $@
98222a5 @smowton Add version of vmsplice with huge apges
smowton authored
58
2a7b0da @smowton Add cooperative pseudo-ring vmsplice mode, and rationalise the Makefile ...
smowton authored
59 vmsplice_hugepages_coop_pipe_thr.o: vmsplice_pipe_thr.c
60 $(CC) $(CFLAGS) $^ -c -DUSE_HUGE_PAGES -DVMSPLICE_COOP -o $@
61
62 vmsplice_coop_pipe_thr.o: vmsplice_pipe_thr.c
63 $(CC) $(CFLAGS) $^ -c -DVMSPLICE_COOP -o $@
d8a8745 @smowton Add version of mempipe that uses Stephen's rep-stos memset as the data s...
smowton authored
64
1683c80 Move summarise_tsc_counters.c back into the main test pipeline, so
Steven Smith authored
65 summarise_tsc_counters: summarise_tsc_counters.o stats.o
b3de5f2 Fix for:
Toby Jaffey authored
66 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
1683c80 Move summarise_tsc_counters.c back into the main test pipeline, so
Steven Smith authored
67
844967a @rigtorp Initial commit
rigtorp authored
68 clean:
cd1a384 Merge branch 'master' of git://github.com/avsm/ipc-bench
Steven Smith authored
69 rm -f *~ core *.o $(TARGETS)
55ee41a @smowton Merge branch 'master' of https://github.com/sos22/ipc-bench
smowton authored
70
Something went wrong with that request. Please try again.