Makefile revision 911
619bd403265ce0880989ba6f8324b010949851bcSumit Bose###############################################################################
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# synergy 1.x Makefile
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Use is subject to license terms.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Permission is hereby granted, free of charge, to any person obtaining a
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# copy of this software and associated documentation files (the
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# "Software"), to deal in the Software without restriction, including
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# without limitation the rights to use, copy, modify, merge, publish,
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# distribute, and/or sell copies of the Software, and to permit persons
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# to whom the Software is furnished to do so, provided that the above
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# copyright notice(s) and this permission notice appear in all copies of
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# the Software and that both the above copyright notice(s) and this
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# permission notice appear in supporting documentation.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Except as contained in this notice, the name of a copyright holder
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# shall not be used in advertising or otherwise to promote the sale, use
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# or other dealings in this Software without prior written authorization
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# of the copyright holder.
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Package name used in tarballs
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Version number (used in path names)
a530a96721d8106a6839b6b643b0abc5d7a7b9e0Sumit Bose# Checksums for upstream tarball
619bd403265ce0880989ba6f8324b010949851bcSumit BoseTARBALL_SHA1 = 03113ec8aadfecaeba8e369b083f4fb5b44f5c62
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Where to install synergy files
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Source tarball
619bd403265ce0880989ba6f8324b010949851bcSumit BoseSOURCE_TARBALL_NAME=synergy-$(MODULE_VERSION).tar.gz
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Binaries built in tree
619bd403265ce0880989ba6f8324b010949851bcSumit BoseINSTALL_TARGETS=install_synergys install_synergyc install_doc
619bd403265ce0880989ba6f8324b010949851bcSumit BoseSOURCE_URL=$(SF_DOWNLOADS_URL)/synergy2/$(SOURCE_TARBALL_NAME)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Patches to apply to source after unpacking, in order
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Man pages to apply Sun footer to & attributes to list
619bd403265ce0880989ba6f8324b010949851bcSumit Bose#SUNTOUCHED_MANPAGES=man/*.man
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen GallagherMODULE_CXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen GallagherMODULE_CXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
85e8cbdd79359ae1f330c8b84f7b58d4fc6fda6eStephen GallagherMODULE_CXXFLAGS += -Qoption ccfe -features=zla
619bd403265ce0880989ba6f8324b010949851bcSumit BoseMODULE_CXXFLAGS += -mt -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE
619bd403265ce0880989ba6f8324b010949851bcSumit BoseMODULE_CXXFLAGS += -DPIC -KPIC -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1
619bd403265ce0880989ba6f8324b010949851bcSumit BoseMODULE_LDFLAGS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
619bd403265ce0880989ba6f8324b010949851bcSumit BoseLD_OPTIONS = -lc -lCrun -lCstd -lm -lsocket -lnsl -lgen -z combreloc -z ignore
619bd403265ce0880989ba6f8324b010949851bcSumit Bose CXXCPP="$(CXX) -E $(MODULE_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS)" \
619bd403265ce0880989ba6f8324b010949851bcSumit Bose cp -pf $(SYNERGYS_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin
619bd403265ce0880989ba6f8324b010949851bcSumit Bose cp -pf $(SYNERGYC_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin
619bd403265ce0880989ba6f8324b010949851bcSumit BoseDOC_AREA=$(DESTDIR)$(MODULE_PREFIX)/share/doc/synergy
619bd403265ce0880989ba6f8324b010949851bcSumit Bose# Doc all in html format
fd94a375467ade9233e34513863571fc51fec2edStephen Gallagher cp -pf $(SYNERGY_DOC)/configuration.html $(DOC_AREA)
619bd403265ce0880989ba6f8324b010949851bcSumit Bose cp -pf $(SYNERGY_DOC)/images/logo.gif $(DOC_AREA)/images