]> git.somenet.org - pub/jan/parprog.git/blob - prefix/Makefile
remove old runs
[pub/jan/parprog.git] / prefix / Makefile
1 # GCC Makefile
2
3 CC      = gcc
4 CFLAGS  = -pedantic -Wall -ggdb -fopenmp --std=c99 -O3 ${MYFLAGS}
5 LDFLAGS = -fopenmp
6
7 all: build/seq build/recurse build/datapar build/hillis_partial build/hillis_sum
8
9 build/seq: build/prefix.o build/seq.o
10         $(CC) -o $@ $? $(LDFLAGS)
11
12 build/recurse: build/prefix.o build/recurse.o
13         $(CC) -o $@ $? $(LDFLAGS)
14
15 build/datapar: build/prefix.o build/datapar.o
16         $(CC) -o $@ $? $(LDFLAGS)
17
18 build/hillis_partial: build/prefix.o build/hillis_partial.o
19         $(CC) -o $@ $? $(LDFLAGS)
20
21 build/hillis_sum: build/prefix.o build/hillis_sum.o
22         $(CC) -o $@ $? $(LDFLAGS)
23
24 build/%.o: %.c mkdir
25         $(CC) $(CFLAGS) -c $< -o $@
26
27 mkdir:
28         mkdir -p build
29
30 .PHONY: clean
31 clean:
32         rm -rf build