aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/blowup/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/blowup/Makefile')
-rw-r--r--src/benchmarks/blowup/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/benchmarks/blowup/Makefile b/src/benchmarks/blowup/Makefile
new file mode 100644
index 0000000..afb5f2a
--- /dev/null
+++ b/src/benchmarks/blowup/Makefile
@@ -0,0 +1,25 @@
+OBJDIR ?= obj
+
+CC ?= gcc
+
+WARNFLAGS ?= -Wall -Wextra
+COMMONFLAGS ?= -fno-builtin -fPIC -DPIC -pthread
+OPTFLAGS ?= -O3 -DNDEBUG
+
+CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS)
+
+LDFLAGS ?= -pthread -static-libgcc
+
+.PHONY = all clean
+
+all: $(OBJDIR)/blowup
+
+$(OBJDIR)/blowup: blowup.c | $(OBJDIR)
+ @echo compiling $@...
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $<
+
+$(OBJDIR):
+ mkdir -p $@
+
+clean:
+ rm -rf $(OBJDIR)