diff options
author | Steve Huston <shuston@riverace.com> | 2011-05-12 18:17:44 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2011-05-12 18:17:44 +0000 |
commit | d6280281817769385535bf520c5a47818669d21e (patch) | |
tree | c138259a7df6b3a8b211515386cb9b88fb3b320c | |
parent | d6ee66889e3d8638670aada337bd7034b63e914a (diff) | |
download | ATCD-d6280281817769385535bf520c5a47818669d21e.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 289620e8ec1..5b876c56c00 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 2e947e9a7c4..e381b44f172 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 749a30c63fc..071cc9ab649 100644 --- a/include/makeinclude/wrapper_macros.GNU +++ b/include/makeinclude/wrapper_macros.GNU @@ -167,6 +167,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 @@ -912,9 +915,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) |