summaryrefslogtreecommitdiff
path: root/solenv/gbuild/templates/Executable.mk
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-01-20 19:37:27 +0100
committerMathias Bauer <mba@openoffice.org>2011-01-20 19:37:27 +0100
commitf8d6d56e854145cc7752597eb22c5cdf488e7d2b (patch)
tree27d778675ec9eca58d9ada1b430e6c52cfea9e23 /solenv/gbuild/templates/Executable.mk
parent368bae76622cc0e8ea357d6e90492db6ab46a735 (diff)
CWS gnumake3: first draft of new makefile templates
Diffstat (limited to 'solenv/gbuild/templates/Executable.mk')
-rwxr-xr-xsolenv/gbuild/templates/Executable.mk61
1 files changed, 61 insertions, 0 deletions
diff --git a/solenv/gbuild/templates/Executable.mk b/solenv/gbuild/templates/Executable.mk
new file mode 100755
index 000000000000..8fc7e1cc6843
--- /dev/null
+++ b/solenv/gbuild/templates/Executable.mk
@@ -0,0 +1,61 @@
+#*************************************************************************
+#
+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+#
+# Copyright 2000, 2010 Oracle and/or its affiliates.
+#
+# OpenOffice.org - a multi-platform office productivity suite
+#
+# This file is part of OpenOffice.org.
+#
+# OpenOffice.org is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# only, as published by the Free Software Foundation.
+#
+# OpenOffice.org is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License version 3 for more details
+# (a copy is included in the LICENSE file that accompanied this code).
+#
+# You should have received a copy of the GNU Lesser General Public License
+# version 3 along with OpenOffice.org. If not, see
+# <http://www.openoffice.org/license.html>
+# for a copy of the LGPLv3 License.
+#
+#*************************************************************************
+
+$(eval $(call gb_Executable_Executable,EXEC))
+
+$(eval $(call gb_Executable_set_include,EXEC,\
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_Executable_set_cxxflags,EXEC,\
+ $$(CXXFLAGS) \
+))
+
+$(eval $(call gb_Executable_add_linked_libs,EXEC,\
+))
+
+$(eval $(call gb_Executable_add_exception_objects,EXEC,\
+))
+
+ifeq ($(OS),WNT)
+$(eval $(call gb_Executable_add_linked_libs,mkunroll,\
+ kernel32 \
+ msvcrt \
+ oldnames \
+ user32 \
+ uwinapi \
+))
+endif
+
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Executable_add_linked_libs,mkunroll,\
+ dl \
+ pthread \
+))
+endif
+
+# vim: set noet sw=4 ts=4: