]> git.somenet.org - pub/astra/parallel.git/blob - prefix/Makefile
calculate different variables
[pub/astra/parallel.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 build/reduce
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/reduce: build/prefix.o build/reduce.o
25         $(CC) -o $@ $? $(LDFLAGS)
26
27 build/%.o: %.c mkdir
28         $(CC) $(CFLAGS) -c $< -o $@
29
30 mkdir:
31         mkdir -p build
32
33 .PHONY: clean
34 clean:
35         rm -rf build