From 6ab37c539ac3939d63027753d2b7fd324ffb9192 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Tue, 9 Oct 2012 11:04:10 -0700 Subject: [PATCH] common benchmarks makefile definitions --- benchmarks.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 benchmarks.mk diff --git a/benchmarks.mk b/benchmarks.mk new file mode 100644 index 0000000..901bfb9 --- /dev/null +++ b/benchmarks.mk @@ -0,0 +1,23 @@ +# A few common Makefile items + +CC = gcc +CXX = g++ + +UNAME = $(shell uname) + +LIB_NAME = model +LIB_SO = lib$(LIB_NAME).so + +BASE = ../.. +INCLUDE = -I$(BASE)/include -I$(BASE) +CPPFLAGS += $(INCLUDE) +CFLAGS += $(INCLUDE) +LDFLAGS += -L$(BASE)/$(LIB_SO) -l$(LIB_NAME) + +# Mac OSX options +ifeq ($(UNAME), Darwin) +MACFLAGS = -D_XOPEN_SOURCE -DMAC +CPPFLAGS += $(MACFLAGS) +CFLAGS += $(MACFLAGS) +LDFLAGS += $(MACFLAGS) +endif -- 2.34.1