office-gobmx/extensions/Executable_pluginapp.bin.mk

85 lines
1.7 KiB
Makefile
Raw Normal View History

# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
2011-12-17 15:11:57 -06:00
#
#
# This file is part of the LibreOffice project.
2011-12-17 15:11:57 -06:00
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2011-12-17 15:11:57 -06:00
#
#
$(eval $(call gb_Executable_Executable,pluginapp.bin))
$(eval $(call gb_Executable_use_external,pluginapp.bin,npapi_headers))
2011-12-17 15:11:57 -06:00
$(eval $(call gb_Executable_set_include,pluginapp.bin,\
$$(INCLUDE) \
-I$(SRCDIR)/extensions/source/plugin/inc \
2011-12-17 15:11:57 -06:00
))
$(eval $(call gb_Executable_use_sdk_api,pluginapp.bin))
2011-12-17 15:11:57 -06:00
$(eval $(call gb_Executable_add_exception_objects,pluginapp.bin,\
extensions/source/plugin/unx/npwrap \
extensions/source/plugin/unx/npnapi \
))
$(eval $(call gb_Executable_use_static_libraries,pluginapp.bin,\
plugcon \
2011-12-17 15:11:57 -06:00
))
$(eval $(call gb_Executable_use_libraries,pluginapp.bin,\
2011-12-17 15:11:57 -06:00
sal \
))
ifeq ($(OS),SOLARIS)
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
-lXm \
-lXt \
-lXext \
-lX11 \
-ldl \
))
else ifeq ($(filter-out FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
-lXt \
-lXext \
-lX11 \
))
else ifeq ($(OS),AIX)
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
-lXpm \
-lXmu \
-lXt \
-lXext \
-lX11 \
-ldl \
))
else
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
-lXt \
-lXext \
-lX11 \
-ldl \
))
endif
ifeq ($(ENABLE_GTK),TRUE)
2012-01-07 05:54:16 -06:00
$(eval $(call gb_Executable_use_externals,pluginapp.bin,\
gthread \
gtk \
))
2011-12-17 15:11:57 -06:00
# the orignal dmakefile said: don't ask, it's ugly
2011-12-17 15:11:57 -06:00
ifeq ($(OS),SOLARIS)
$(eval $(call gb_Executable_set_ldflags,pluginapp.bin,\
-z nodefs \
))
endif
endif
# vim:set noet sw=4 ts=4: