Fix linking on Windows
[LibreOffice.git] / tools / Executable_rscdep.mk
blob3b1d3830a20a42ccce8e1e1b33aef32e2aa3007f
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # Copyright 2000, 2010 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
12 # OpenOffice.org is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License version 3
14 # only, as published by the Free Software Foundation.
16 # OpenOffice.org is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License version 3 for more details
20 # (a copy is included in the LICENSE file that accompanied this code).
22 # You should have received a copy of the GNU Lesser General Public License
23 # version 3 along with OpenOffice.org. If not, see
24 # <http://www.openoffice.org/license.html>
25 # for a copy of the LGPLv3 License.
27 #*************************************************************************
29 $(eval $(call gb_Executable_Executable,rscdep))
31 $(eval $(call gb_Executable_set_include,rscdep,\
32 $$(INCLUDE) \
33 -I$(realpath $(SRCDIR)/tools/inc) \
34 -I$(realpath $(SRCDIR)/tools/inc/pch) \
35 -I$(realpath $(SRCDIR)/tools/bootstrp) \
38 $(eval $(call gb_Executable_add_defs,rscdep,\
39 -D_TOOLS_STRINGLIST \
42 $(eval $(call gb_Executable_add_linked_libs,rscdep,\
43 comphelper \
44 sal \
45 tl \
46 $(gb_STDLIBS) \
49 $(eval $(call gb_Executable_add_api,rscdep,\
50 udkapi \
51 offapi \
54 $(eval $(call gb_Executable_add_exception_objects,rscdep,\
55 tools/bootstrp/rscdep \
56 tools/bootstrp/cppdep \
57 tools/bootstrp/prj \
60 ifeq ($(OS),WNT)
61 ifeq ($(HAVE_GETOPT),YES)
62 $(eval $(call gb_Executable_add_defs,rscdep,\
63 -DHAVE_GETOPT \
65 else
66 $(eval $(call gb_Executable_add_linked_libs,rscdep,\
67 gnu_getopt \
69 endif
70 endif
72 # vim: set noet sw=4 ts=4: