X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=common.mk;h=bc068dff1fb1e559b4aafb9b01881028c28b615a;hp=e9e406002296c48e8e324f6cf440875487ff6a47;hb=7742256df627848c1c375f979f5369a45c92057b;hpb=964141f234c1b79f43f2a0988cc5bd55e484f004 diff --git a/common.mk b/common.mk index e9e40600..bc068dff 100644 --- a/common.mk +++ b/common.mk @@ -1,11 +1,16 @@ # A few common Makefile items -CC = gcc -CXX = g++ +CC := gcc +CXX := g++ -UNAME = $(shell uname) +UNAME := $(shell uname) -LIB_NAME = model -LIB_SO = lib$(LIB_NAME).so +LIB_NAME := model +LIB_SO := lib$(LIB_NAME).so -CPPFLAGS += -Wall -g -O0 +CPPFLAGS += -Wall -g -O3 + +# Mac OSX options +ifeq ($(UNAME), Darwin) +CPPFLAGS += -D_XOPEN_SOURCE -DMAC +endif