(part 1/x)
svn path=/branches/ros-amd64-bringup/; revision=46375
15 files changed:
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __BACKEND_H
-#define __BACKEND_H
Project& ProjectNode;
Configuration& configuration;
};
Project& ProjectNode;
Configuration& configuration;
};
-
-#endif /* __BACKEND_H */
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __CODEBLOCKS_H__
-#define __CODEBLOCKS_H__
#include <fstream>
#include <vector>
#include <fstream>
#include <vector>
bool _copy_file ( const std::string& inputname, const std::string& targetname ) const;
const Property* _lookup_property ( const Module& module, const std::string& name ) const;
};
bool _copy_file ( const std::string& inputname, const std::string& targetname ) const;
const Property* _lookup_property ( const Module& module, const std::string& name ) const;
};
-
-
-#endif // __MSVC_H__
-
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __DEPMAP_H__
-#define __DEPMAP_H__
#include <fstream>
#include <vector>
#include <fstream>
#include <vector>
-
-
-#endif // __DEPMAP_H__
-
BUILTIN_CXXFLAGS+= -fno-optimize-sibling-calls
# Add -fno-set-stack-executable required for x86/MinGW
BUILTIN_CXXFLAGS+= -fno-optimize-sibling-calls
# Add -fno-set-stack-executable required for x86/MinGW
-ifneq (,$(filter $(ARCH), i386))
+ifneq (,$(filter $(ARCH),amd64 i386))
BUILTIN_CFLAGS+= -fno-set-stack-executable
BUILTIN_CXXFLAGS+= -fno-set-stack-executable
endif
BUILTIN_CFLAGS+= -fno-set-stack-executable
BUILTIN_CXXFLAGS+= -fno-set-stack-executable
endif
${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
$$(ECHO_PCH)
${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
$$(ECHO_PCH)
- $${gcc} -MF $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header -M -MP -MT $$@ $$<
+ $${gcc} -o $$@ ${call RBUILD_cflags,$(1),$(4)} -x c-header $$<
${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
$$(ECHO_PCH)
${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch: $(2) ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)$$(SEP)$(notdir $(2)).gch.d $(3) | ${call RBUILD_intermediate_dir,$(2)}$$(SEP).gch_$(1)
$$(ECHO_PCH)
- $${gpp} -MF $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header -M -MP -MT $$@ $$<
+ $${gpp} -o $$@ ${call RBUILD_cxxflags,$(1),$(4)} -x c++-header $$<
fputs ( "BUILTIN_CXXINCLUDES+= $(TARGET_CPPFLAGS)\n", fMakefile );
fprintf ( fMakefile, "PROJECT_CCLIBS := \"$(shell ${TARGET_CC} -print-libgcc-file-name)\"\n" );
fputs ( "BUILTIN_CXXINCLUDES+= $(TARGET_CPPFLAGS)\n", fMakefile );
fprintf ( fMakefile, "PROJECT_CCLIBS := \"$(shell ${TARGET_CC} -print-libgcc-file-name)\"\n" );
- fprintf ( fMakefile, "PROJECT_CXXLIBS := \"$(shell ${TARGET_CPP} -print-file-name=libstdc++.a)\" \"$(shell ${TARGET_CPP} -print-libgcc-file-name)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingw32.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingwex.a)\" " );
+ // We use our proprietary "ofmt_stub.a" to implement a stub for "_get_output_format" required by "libmingwex.a".
+ // This archive just contains the compiled "ofmt_stub.s" supplied with the MinGW Runtime sources.
+ fprintf ( fMakefile, "PROJECT_CXXLIBS := \"$(shell ${TARGET_CPP} -print-file-name=libstdc++.a)\" \"$(shell ${TARGET_CPP} -print-libgcc-file-name)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingw32.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libmingwex.a)\" \"$(shell ${TARGET_CPP} -print-file-name=ofmt_stub.a)\" \"$(shell ${TARGET_CPP} -print-file-name=libcoldname.a)\"\n" );
+
/* hack to get libgcc_eh.a, should check mingw version or something */
if (Environment::GetArch() == "amd64")
fprintf ( fMakefile, " \"$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)\"" );
/* hack to get libgcc_eh.a, should check mingw version or something */
if (Environment::GetArch() == "amd64")
fprintf ( fMakefile, " \"$(shell ${TARGET_CPP} -print-file-name=libgcc_eh.a)\"" );
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MINGW_H
-#define MINGW_H
};
extern const struct ModuleHandlerInformations ModuleHandlerInformations[];
};
extern const struct ModuleHandlerInformations ModuleHandlerInformations[];
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MINGW_MODULEHANDLER_H
-#define MINGW_MODULEHANDLER_H
#include "../backend.h"
#include "mingw.h"
#include "../backend.h"
#include "mingw.h"
MingwElfExecutableModuleHandler ( const Module& module );
virtual void Process ();
};
MingwElfExecutableModuleHandler ( const Module& module );
virtual void Process ();
};
-
-#endif /* MINGW_MODULEHANDLER_H */
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MINGW_RULE_H
-#define MINGW_RULE_H
const std::string command;
string_list generatedFiles;
};
const std::string command;
string_list generatedFiles;
};
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __MSBUILD_H__
-#define __MSBUILD_H__
#include <fstream>
#include <vector>
#include <fstream>
#include <vector>
-
-
-#endif // __MsBuild_H__
-
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __MSVC_H__
-#define __MSVC_H__
#include <fstream>
#include <vector>
#include <fstream>
#include <vector>
void _generate_footer();
};
void _generate_footer();
};
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __VREPORT_H__
-#define __VREPORT_H__
#include <fstream>
#include <vector>
#include <fstream>
#include <vector>
-
-
-#endif // __VREPORT_H__
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __EXCEPTION_H
-#define __EXCEPTION_H
#include "pch.h"
#include "xml.h"
#include "pch.h"
#include "xml.h"
std::string BuildTool;
std::string Version;
};
std::string BuildTool;
std::string Version;
};
-
-#endif /* __EXCEPTION_H */
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef PCH_H
-#define PCH_H
#ifdef _MSC_VER
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
#ifdef _MSC_VER
#pragma warning ( disable : 4786 ) // identifier was truncated to '255' characters in the debug information
#define MAX_PATH PATH_MAX
#define _MAX_PATH PATH_MAX
#endif
#define MAX_PATH PATH_MAX
#define _MAX_PATH PATH_MAX
#endif
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __RBUILD_H
-#define __RBUILD_H
extern std::string
ToLower ( std::string filename );
extern std::string
ToLower ( std::string filename );
-
-#endif /* __RBUILD_H */
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __TEST_H
-#define __TEST_H
#include "rbuild.h"
#include "backend/mingw/mingw.h"
#include "rbuild.h"
#include "backend/mingw/mingw.h"