diff options
author | Steve Huston <shuston@riverace.com> | 2011-05-12 18:16:12 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2011-05-12 18:16:12 +0000 |
commit | 3ec6569a5a9653bec85b2d527063899fea0c61e1 (patch) | |
tree | bf7202c88c3a3d445fa529113b251e77cff05d93 | |
parent | 7cc3e838e6104ba6e56bd5ec3f5c818eaf170691 (diff) | |
download | ATCD-3ec6569a5a9653bec85b2d527063899fea0c61e1.tar.gz |
ChangeLogTag:Thu May 12 18:08:47 UTC 2011 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | include/makeinclude/rules.local.GNU | 6 | ||||
-rw-r--r-- | include/makeinclude/wrapper_macros.GNU | 7 |
3 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index d267d608c18..37398d0d3e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Thu May 12 18:08:47 UTC 2011 Steve Huston <shuston@riverace.com> + + * include/makeinclude/wrapper_macros.GNU: Added command settings for + preprocessing C and C++ source files. + + * include/makeinclude/rules.local.GNU: Added rules to preprocess + C and C++ files when directed. + + These allow one to now quickly produce a preprocessed version of + a source file. Ala... make -f GNUmakefile.ACE ACE.i + would preprocess ACE.cpp and put the result in ACE.i. + Fri Apr 29 14:01:29 UTC 2011 Steve Huston <shuston@riverace.com> * tests/tests.mpc: For Message_Queue_Test add -bmaxdata:0x20000000 to diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU index b32dab24548..0a675296620 100644 --- a/include/makeinclude/rules.local.GNU +++ b/include/makeinclude/rules.local.GNU @@ -106,6 +106,12 @@ endif nullstring := CC_OUTPUT_FLAG_SEP ?= $(nullstring) #space +%.$(PREPROCESS_SUFFIX): %.c + $(PREPROCESS.c) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $< + +%.$(PREPROCESS_SUFFIX): %.cpp + $(PREPROCESS.cc) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $< + $(VDIR)%.$(OBJEXT): %.c $(mk_obj_out_dir) $(COMPILE.c) $(CC_OUTPUT_FLAG)$(CC_OUTPUT_FLAG_SEP)$@ $< diff --git a/include/makeinclude/wrapper_macros.GNU b/include/makeinclude/wrapper_macros.GNU index fa98869dceb..da4ee2ecb68 100644 --- a/include/makeinclude/wrapper_macros.GNU +++ b/include/makeinclude/wrapper_macros.GNU @@ -161,6 +161,9 @@ # PLATFORM_SCTP_LIBS # Platform libraries required for SCTP # PRELINK Executable to precede linking, such as quantify +# PREPROCESS.c Command to preprocess C +# PREPROCESS.cc +# Command to preprocess C++ # PURELINK If set, contains purify executable as well as all options # PURE_CACHE_BASE_DIR # The base directory in which Pure products will produce @@ -939,9 +942,13 @@ POSTLINK ?= PURELINK ?= TEMPLATES_FLAG ?= MVCMD ?= +PREPROCESS_OPT ?= -E +PREPROCESS_SUFFIX ?= i COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c COMPILE.cc = $(CXX) $(CCFLAGS) $(CPPFLAGS) $(PTDIRS) -c +PREPROCESS.c ?= $(CC) $(PREPROCESS_OPT) $(CFLAGS) $(CPPFLAGS) +PREPROCESS.cc ?= $(CXX) $(PREPROCESS_OPT) $(CCFLAGS) $(CPPFLAGS) RC ?= COMPILE.rc = $(RC) $(RCFLAGS) |