From a3c9d19aa00f07c640999c7252414d2b1c02bd68 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Thu, 3 Nov 2011 15:25:24 +0100 Subject: [PATCH] Makefiles for prefix sum and false sharing --- openmp/prefix/Makefile | 20 ++++++++++++++++++++ openmp/sharing/Makefile | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 openmp/prefix/Makefile create mode 100644 openmp/sharing/Makefile diff --git a/openmp/prefix/Makefile b/openmp/prefix/Makefile new file mode 100644 index 0000000..9ccc276 --- /dev/null +++ b/openmp/prefix/Makefile @@ -0,0 +1,20 @@ +# GCC Makefile + +CC = gcc +CFLAGS = -pedantic -Wall -g -fopenmp -O0 +LDFLAGS = -fopenmp + +BINARIES = prefix +OBJECTS = $(BINARIES).o + +all: prefix + +prefix: prefix.o + $(CC) -o $@ $? $(LDFLAGS) + +%.o: %.c + $(CC) $(CFLAGS) -c $< + +.PHONY: clean +clean: + rm -rf $(OBJECTS) $(BINARIES) diff --git a/openmp/sharing/Makefile b/openmp/sharing/Makefile new file mode 100644 index 0000000..0e8450a --- /dev/null +++ b/openmp/sharing/Makefile @@ -0,0 +1,20 @@ +# GCC Makefile + +CC = gcc +CFLAGS = -pedantic -Wall -g -fopenmp -O0 +LDFLAGS = -fopenmp + +BINARIES = sharing +OBJECTS = $(BINARIES).o + +all: sharing + +sharing: sharing.o + $(CC) -o $@ $? $(LDFLAGS) + +%.o: %.c + $(CC) $(CFLAGS) -c $< + +.PHONY: clean +clean: + rm -rf $(OBJECTS) $(BINARIES) -- 2.43.0