1##########################################################################
2# Copyright (c) 2007, 2008, 2009, 2011, ETH Zurich.
3# All rights reserved.
4#
5# This file is distributed under the terms in the attached LICENSE file.
6# If you do not find this file, copies can be found by writing to:
7# ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
8##########################################################################
9
10#CFLAGS = -fopenmp -Wall -O3 -std=c99
11#LDFLAGS = -fopenmp
12
13CFLAGS = -openmp -Wall -O3 -std=c99
14LDFLAGS = -openmp -static
15
16all: compute cpu_bound sync
17
18compute: compute.o
19	$(CC) $(LDFLAGS) -o $@ $<
20compute.o: compute.c
21
22cpu_bound: cpu_bound.o
23	$(CC) $(LDFLAGS) -o $@ $<
24cpu_bound.o: cpu_bound.c
25
26sync: sync.o
27	$(CC) $(LDFLAGS) -o $@ $<
28sync.o: sync.c
29