From: telleriam Date: Fri, 18 Jan 2008 14:55:12 +0000 (+0000) Subject: Separating needed compile and link options from config_example.mk to X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fosa.git/commitdiff_plain/3d1082a76a4d382dfc8a4c747f4de8300d48a978?hp=37999b8a998a16745afd4b9355fb15c5a55dfae2 Separating needed compile and link options from config_example.mk to rules.mk (according to Tomasso). Added definition for UTILS_PATH. git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@999 35b4ef3e-fd22-0410-ab77-dab3279adceb --- diff --git a/config_example.mk b/config_example.mk index 22f05ae..04e2248 100644 --- a/config_example.mk +++ b/config_example.mk @@ -7,8 +7,9 @@ FRESCOR_ROOT = $(HOME)/frescor_dev FRSH_PATH = $(FRESCOR_ROOT)/frsh # the path to the FOSA directory. FOSA_PATH = $(FRESCOR_ROOT)/fosa +# the path to the UTILS directory +UTILS_PATH = $(FRESCOR_ROOT)/utils # the compilation flags -CFLAGS = -Wall -g -D$(PLATFORM) -I$(FRSH_PATH)/include \ - -I$(FOSA_PATH)/include \ - -I$(FOSA_PATH)/marte_non_local_jump +CFLAGS = -Wall -g +CFLAGS += -O1 -Wuninitialized diff --git a/rules.mk b/rules.mk index 2496c47..8d99e3c 100644 --- a/rules.mk +++ b/rules.mk @@ -7,6 +7,16 @@ else endif +CFLAGS += -D$(PLATFORM) \ + -I$(FRSH_PATH)/include \ + -I$(FOSA_PATH)/include \ + -I$(UTILS_PATH)/include + +ifeq ($(PLATFORM), MARTE_OS) + CFLAGS += -I$(FOSA_PATH)/marte_non_local_jump +endif + + none: @exec echo -e "\nPlease introduce a target, i.e: 'make test'";