diff options
Diffstat (limited to 'include/makeinclude/rules.local.GNU')
-rw-r--r-- | include/makeinclude/rules.local.GNU | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/makeinclude/rules.local.GNU b/include/makeinclude/rules.local.GNU index 7d78844043a..3336dcafecd 100644 --- a/include/makeinclude/rules.local.GNU +++ b/include/makeinclude/rules.local.GNU @@ -22,7 +22,7 @@ build.local: $(BUILD) # Set up the suffixes for C++ and IDL. .SUFFIXES: -.SUFFIXES: .cpp .cc .C .idl $(SUFFIXES) +.SUFFIXES: .cpp .cc .C .cxx .idl $(SUFFIXES) # C++ related targets @@ -52,6 +52,10 @@ $(VDIR)%.o: %.cc $(VDIR).creation_stamp $(COMPILE.cc) $(CC_OUTPUT_FLAG) $@ $< ${MVCMD} +$(VDIR)%.o: %.cxx $(VDIR).creation_stamp + $(COMPILE.cc) $(CC_OUTPUT_FLAG) $@ $< + ${MVCMD} + # If SOLINK is defined, then the .$(SOEXT) file is built from the # .$(OBJEXT) file via separate rules in the same directory. # Otherwise, the .$(SOEXT) and .$(OBJEXT) are built via the same rule. @@ -82,6 +86,12 @@ endif $(VSHDIR)%.$(OBJEXT): %.cc $(VSHDIR).creation_stamp $(COMPILE.cc) $(PIC) $(CC_OUTPUT_FLAG) $@ $< +$(VSHDIR)%.$(OBJEXT): %.C $(VSHDIR).creation_stamp + $(COMPILE.cc) $(PIC) $(CC_OUTPUT_FLAG) $@ $< + +$(VSHDIR)%.$(OBJEXT): %.cxx $(VSHDIR).creation_stamp + $(COMPILE.cc) $(PIC) $(CC_OUTPUT_FLAG) $@ $< + $(VSHDIR)%.$(OBJEXT): %.c $(VSHDIR).creation_stamp $(COMPILE.c) $(PIC) $(CC_OUTPUT_FLAG) $@ $< |