]> git.somenet.org - pub/jan/parprog.git/blob - openmp/prefix/Makefile
code cleanup in prefix.c
[pub/jan/parprog.git] / openmp / prefix / Makefile
1 # GCC Makefile
2
3 CC      = gcc
4 CFLAGS  = -pedantic -Wall -ggdb -fopenmp --std=c99 -O3
5 LDFLAGS = -fopenmp
6
7 all: build/seq build/recurse build/datapar build/hillis
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: build/prefix.o build/hillis.o
19         $(CC) -o $@ $? $(LDFLAGS)
20
21 build/%.o: %.c mkdir
22         $(CC) $(CFLAGS) -c $< -o $@
23
24 mkdir:
25         mkdir -p build
26
27 .PHONY: clean
28 clean:
29         rm -rf build