Makefile revision 970
180319f572fb6c1ca7000d22ea79a8dd77ae3f91Evan Hunt###############################################################################
180319f572fb6c1ca7000d22ea79a8dd77ae3f91Evan Hunt# synergy 1.x Makefile
180319f572fb6c1ca7000d22ea79a8dd77ae3f91Evan Hunt# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
9ba4efa4ac6d2d687cf1377bc9733d08d84da64cMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
7c73ac5e130db18837724ab53d46b23ddb98ce6eMark Andrews# copy of this software and associated documentation files (the "Software"),
0c2313eb367de3b58801d643d52c0fd9bc0e5df7Evan Hunt# to deal in the Software without restriction, including without limitation
0c2313eb367de3b58801d643d52c0fd9bc0e5df7Evan Hunt# the rights to use, copy, modify, merge, publish, distribute, sublicense,
0c2313eb367de3b58801d643d52c0fd9bc0e5df7Evan Hunt# and/or sell copies of the Software, and to permit persons to whom the
0c2313eb367de3b58801d643d52c0fd9bc0e5df7Evan Hunt# Software is furnished to do so, subject to the following conditions:
11649973111d83027faf08ed4fb36a2b3c29c875Mark Andrews# The above copyright notice and this permission notice (including the next
11649973111d83027faf08ed4fb36a2b3c29c875Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
74745c760c8ac4462aceb2fa6e55bc545621c66dEvan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
905ba39e10a8f483d167b992ec31f4c0bf34326eMark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
905ba39e10a8f483d167b992ec31f4c0bf34326eMark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
087b3e8d90c482600c20f1bd6958697419c4e77dEvan Hunt# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
087b3e8d90c482600c20f1bd6958697419c4e77dEvan Hunt# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24aaa0440116357eef3ab3796ebe53318b03b1ecEvan Hunt# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24aaa0440116357eef3ab3796ebe53318b03b1ecEvan Hunt# DEALINGS IN THE SOFTWARE.
840d6a4614f6a561fc076d0797d144e9f28e06bcMark Andrews# Package name used in tarballs
d4859b0b2a0510d8c4f3c48c606a5568a3b0c1d8Mark Andrews# pkg(5) name we deliver the files in (override default)
eeb13c7cd2ddde29b8605b9444451ea6e235e06aEvan Hunt# Package classification (override default)
cef76ee5bd845a80e06da934edce4225bdba22a1Mark Andrews# Package metadata
d90344224afc80459778e4c3412fd1f9463e24d4Mark Andrews# Version number (used in path names)
f5695ad0e1a6cc8e19bfec7b71476e138de6cb6cMark Andrews# Checksums for upstream tarball
58f1ac8dadf2c1f215343a0b2d1df2df954c4b19Mark AndrewsTARBALL_SHA1 = 03113ec8aadfecaeba8e369b083f4fb5b44f5c62
58f1ac8dadf2c1f215343a0b2d1df2df954c4b19Mark Andrews# Where to install synergy files
cfe32752a66fe1f050d5ed7ddce75f6d58fe1637Evan Hunt# Source tarball
cfe32752a66fe1f050d5ed7ddce75f6d58fe1637Evan HuntSOURCE_TARBALL_NAME=synergy-$(MODULE_VERSION).tar.gz
c5734964e6400f9e6d8c3f057fcccab596929deaMark Andrews# Binaries built in tree
4499a6a3063eceb1c412f5165b9c5b47d32d5a62Evan HuntINSTALL_TARGETS=install_synergys install_synergyc install_doc
3e90f6c373d2e6c9c9909b112468975c4c86544eMark AndrewsSOURCE_URL=$(SF_DOWNLOADS_URL)/synergy2/$(SOURCE_TARBALL_NAME)
3e90f6c373d2e6c9c9909b112468975c4c86544eMark Andrews# Patches to apply to source after unpacking, in order
bc5db10d721aa9bf570578e52e17371e67bfcf5cMark Andrews# Man pages to apply Sun footer to & attributes to list
bc5db10d721aa9bf570578e52e17371e67bfcf5cMark Andrews#SUNTOUCHED_MANPAGES=man/*.man
2383eb527269d333df4222da20e4b422c3662daaEvan HuntMODULE_CXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
2383eb527269d333df4222da20e4b422c3662daaEvan HuntMODULE_CXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
586db4a3e4664109fe8ce31fdd6a1b9c5bb67cbfMukund SivaramanMODULE_CXXFLAGS += -xlang=c99 -xbuiltin=%none
586db4a3e4664109fe8ce31fdd6a1b9c5bb67cbfMukund SivaramanMODULE_CXXFLAGS += -Qoption ccfe -features=gcc
275a8affe74d29d5fa51c9ba7172b90e9968199aMark AndrewsMODULE_CXXFLAGS += -mt -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE
6a6838f97363c7f3abe47e1fb116be2593bc53a5Mark AndrewsMODULE_CXXFLAGS += -DPIC -KPIC -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1
89cf81b4625c574f60c21e0dce12b150f3c5583cMark AndrewsMODULE_LDFLAGS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
71ec6d09406771c0ad546d2d475a7f16c0198844Mark AndrewsLD_OPTIONS = -lc -lCrun -lCstd -lm -lsocket -lnsl -lgen -z combreloc -z ignore
d734818278966c45af997c7242e8cccd7a91a0b3Mark Andrews CPP="$(CC) -E $(MODULE_CPPFLAGS) $(CPPFLAGS)" \
d734818278966c45af997c7242e8cccd7a91a0b3Mark Andrews CXXCPP="$(CXX) -E $(MODULE_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS)" \
bf59efcf0ed41186a5f9c1ca61da15a3c99b46f3Mark Andrews cp -pf $(SYNERGYS_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin
cac2181160bdb3ccc89e3560addae5e38d4c05e3Evan Hunt cp -pf $(SYNERGYC_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin
b8a9632333a92d73a503afe1aaa7990016c8bee9Evan HuntDOC_AREA=$(DESTDIR)$(MODULE_PREFIX)/share/doc/synergy
b8a9632333a92d73a503afe1aaa7990016c8bee9Evan Hunt# Doc all in html format
f5bb5eb7f6640af4a94e666bf1d7f84a6a7f1f23Mark Andrews cp -pf $(SYNERGY_DOC)/autostart.html $(DOC_AREA)
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews cp -pf $(SYNERGY_DOC)/compiling.html $(DOC_AREA)
a0d411c05f12c36b298d811af3b4f2c9f08e86d4Mark Andrews cp -pf $(SYNERGY_DOC)/configuration.html $(DOC_AREA)
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman cp -pf $(SYNERGY_DOC)/contact.html $(DOC_AREA)
42782931073786f98d3d0a617351db40066949a4Mukund Sivaraman cp -pf $(SYNERGY_DOC)/developer.html $(DOC_AREA)
7c9d11b654028f9901183c076b37a5494635f447Evan Hunt cp -pf $(SYNERGY_DOC)/images/logo.gif $(DOC_AREA)/images