From: Arnaud Giersch Date: Wed, 12 Jan 2011 13:16:32 +0000 (+0100) Subject: Reintroduce make variables for compilation of C programs. X-Git-Tag: v0.1~188^2~41 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/6ff0fa0bf05608ab7edd5e2a5555f7f2eff71da5?ds=inline;hp=-c Reintroduce make variables for compilation of C programs. May be useful for small test programs. --- 6ff0fa0bf05608ab7edd5e2a5555f7f2eff71da5 diff --git a/Makefile b/Makefile index a80f025..127476b 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,16 @@ DEBUG_FLAGS += -g #DEBUG_FLAGS += -pg CHECK_FLAGS += -Wall -Wextra +CC := gcc CXX := g++ CPPFLAGS += -I $(SIMGRID_INSTALL_DIR)/include CPPFLAGS += $(CHECK_FLAGS) +#CFLAGS += -std=c99 +#CFLAGS += -fgnu89-inline # workaround simgrid bug +CFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS) + #CXXFLAGS += -std=c++0x CXXFLAGS += $(OPTIM_FLAGS) $(DEBUG_FLAGS)