]> git.somenet.org - pub/jan/parprog.git/blob - openmp/prefix/Makefile
int -> unsigned int
[pub/jan/parprog.git] / openmp / prefix / Makefile
1 # GCC Makefile
2
3 CC      = gcc
4 CFLAGS  = -pedantic -Wall -ggdb -fopenmp --std=c99
5 LDFLAGS = -fopenmp
6
7 BINARIES = prefix
8 OBJECTS  = $(BINARIES).o algorithm_1.o algorithm_2.o algorithm_3.o
9
10 all: prefix
11
12 prefix: prefix.o algorithm_1.o algorithm_2.o algorithm_3.o
13         $(CC) -o $@ $? $(LDFLAGS)
14
15 %.o: %.c
16         $(CC) $(CFLAGS) -c $<
17
18 .PHONY: clean
19 clean:
20         rm -rf $(OBJECTS) $(BINARIES)