forked from swenson/sort
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 723 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 723 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
27
28
29
30
31
# Copyright (c) 2010-2014 Christopher Swenson.
# Copyright (c) 2012 Google Inc. All Rights Reserved.
CC ?= gcc
CFLAGS = -O3 -g -Wall -std=c89 -pedantic
default: demo stresstest multidemo test
.PHONY: default clean test format
test: stresstest benchmark
./benchmark | tee benchmark.txt
./stresstest
clean:
rm -f demo multidemo stresstest benchmark
demo: demo.c sort.h
$(CC) $(CFLAGS) demo.c -o demo
multidemo: multidemo.c sort.h
$(CC) $(CFLAGS) multidemo.c -o multidemo
stresstest: stresstest.c sort.h
$(CC) $(CFLAGS) stresstest.c -o stresstest
benchmark: benchmark.c sort.h
$(CC) $(CFLAGS) benchmark.c -o benchmark
format:
astyle --options=astyle.options sort.h demo.c multidemo.c stresstest.c benchmark.c