Makefile revision 472
7d238ed0c71ca817fd1582295c6027c6b925af51Mark Andrews###############################################################################
7d238ed0c71ca817fd1582295c6027c6b925af51Mark Andrews#
82a50a619afa73ae9a212399505b9f1b327128cdMark Andrews# winsysck 1.x Makefile
82a50a619afa73ae9a212399505b9f1b327128cdMark Andrews#
82a50a619afa73ae9a212399505b9f1b327128cdMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2f1c460beaa1e372255e7a1b8aad8996f011816dMark Andrews# Use subject to license terms.
2f1c460beaa1e372255e7a1b8aad8996f011816dMark Andrews#
9ee66e3a5b45654235472711439f9db1766c82caMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
9ee66e3a5b45654235472711439f9db1766c82caMark Andrews# copy of this software and associated documentation files (the
9ee66e3a5b45654235472711439f9db1766c82caMark Andrews# "Software"), to deal in the Software without restriction, including
9ee66e3a5b45654235472711439f9db1766c82caMark Andrews# without limitation the rights to use, copy, modify, merge, publish,
9ee66e3a5b45654235472711439f9db1766c82caMark Andrews# distribute, and/or sell copies of the Software, and to permit persons
8b2b41ba4f8cabed897f2d852a6c07abfb23231eMark Andrews# to whom the Software is furnished to do so, provided that the above
8b2b41ba4f8cabed897f2d852a6c07abfb23231eMark Andrews# copyright notice(s) and this permission notice appear in all copies of
47f8b47b8df05aade51e35b31c3df46fb121a098Mark Andrews# the Software and that both the above copyright notice(s) and this
47f8b47b8df05aade51e35b31c3df46fb121a098Mark Andrews# permission notice appear in supporting documentation.
fcadf0b3205be950da14c80fedbf088fc8fd2190Evan Hunt#
fcadf0b3205be950da14c80fedbf088fc8fd2190Evan Hunt# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
fcadf0b3205be950da14c80fedbf088fc8fd2190Evan Hunt# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
fcadf0b3205be950da14c80fedbf088fc8fd2190Evan Hunt# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
fcadf0b3205be950da14c80fedbf088fc8fd2190Evan Hunt# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
47f8b47b8df05aade51e35b31c3df46fb121a098Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
47f8b47b8df05aade51e35b31c3df46fb121a098Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
47f8b47b8df05aade51e35b31c3df46fb121a098Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
d9a713819621972af4f90dfaa9e2bc72aad54d48Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8269f06a0fdaf5f4f03ffb20a3c0effd557c794cMark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
31c7bf574e6e1b296c5cfa5699e4f2007fbd61cdMark Andrews#
31c7bf574e6e1b296c5cfa5699e4f2007fbd61cdMark Andrews# Except as contained in this notice, the name of a copyright holder
6f2752da7a1036cd59be17236ca66630d00f11cdMukund Sivaraman# shall not be used in advertising or otherwise to promote the sale, use
6f2752da7a1036cd59be17236ca66630d00f11cdMukund Sivaraman# or other dealings in this Software without prior written authorization
700d3cb7895b5da2543282d18735d2176d1aff86Mark Andrews# of the copyright holder.
f0244761611dc4d0f80b36c0c0ccdb26fa6cf830Mark Andrews#
f0244761611dc4d0f80b36c0c0ccdb26fa6cf830Mark Andrews# @(#)Makefile 1.1 08/04/11
f0244761611dc4d0f80b36c0c0ccdb26fa6cf830Mark Andrews#
48ec547968d7da5b1240222c53a90efce25157a2Mark Andrews
48ec547968d7da5b1240222c53a90efce25157a2Mark Andrews# Package name used in tarballs
48ec547968d7da5b1240222c53a90efce25157a2Mark AndrewsAPP_NAME=winsysck
095c47be5456c17087d7b39dfc97ebee65e0dfbbMark Andrews
095c47be5456c17087d7b39dfc97ebee65e0dfbbMark Andrews# Version number (used in path names)
178dc0e1d617a6ef6387e9942ba9cdb370d1bde2Mark AndrewsAPP_VERS=1.0.1
178dc0e1d617a6ef6387e9942ba9cdb370d1bde2Mark Andrews
178dc0e1d617a6ef6387e9942ba9cdb370d1bde2Mark Andrews# Patches to apply to source after unpacking, in order
6aaf3d01a1a9829802498c5772b22d649d012181Mark AndrewsSOURCE_PATCHES =
6aaf3d01a1a9829802498c5772b22d649d012181Mark Andrews
6aaf3d01a1a9829802498c5772b22d649d012181Mark Andrews#AUTORECONF=true
e51ba2650025460b26092fb2500e0b6dfbf6d548Mark Andrews
e51ba2650025460b26092fb2500e0b6dfbf6d548Mark Andrews# Man pages to apply Sun footer to & attributes to list
e51ba2650025460b26092fb2500e0b6dfbf6d548Mark Andrews#SUNTOUCHED_MANPAGES=*.man
143526179e5965921e1bd17a4759c3993854b4f4Mark Andrews#SUNTOUCH_MAN_FLAGS= \
143526179e5965921e1bd17a4759c3993854b4f4Mark Andrews# -a '{Availability, SUNWxwdem} {Interface Stability, Committed}'
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews
15bee593e70faca91a00331184fbbbc66080d422Mark Andrewsinclude ../Makefile.inc
15bee593e70faca91a00331184fbbbc66080d422Mark Andrews
af326c2e3f90d86a8966a1298d7aa157667f97cdEvan HuntLIB_ADD_LD_OPTIONS += -lX11
af326c2e3f90d86a8966a1298d7aa157667f97cdEvan Hunt
af326c2e3f90d86a8966a1298d7aa157667f97cdEvan HuntSOURCE_DIR=$(BUILD_DIR)/winsysck-$(APP_VERS)
af326c2e3f90d86a8966a1298d7aa157667f97cdEvan Hunt
ce786900292468e465fb74df8712a625ce10e103Mukund Sivaramansource_gen:: $(LNDIR)
ce786900292468e465fb74df8712a625ce10e103Mukund Sivaraman mkdir -p $(SOURCE_DIR)
ce786900292468e465fb74df8712a625ce10e103Mukund Sivaraman (cd $(SOURCE_DIR) && $(LNDIR) ../../sun-src)
d102ab1b847716b045640faebf074a8092e0b023Mark Andrews
d102ab1b847716b045640faebf074a8092e0b023Mark AndrewsAPP_BIN=$(SOURCE_DIR)
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrewsbuild_gen: $(APP_BIN)
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews
f503aa345b451f94875a5bab637223bcbbd93b6dEvan Hunt$(APP_BIN): $(SOURCE_DIR)/Makefile $(LIB_ADD_BUILD_DEPS)
f503aa345b451f94875a5bab637223bcbbd93b6dEvan Hunt (cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) )
f503aa345b451f94875a5bab637223bcbbd93b6dEvan Hunt
f503aa345b451f94875a5bab637223bcbbd93b6dEvan Huntinstall_gen:: $(APP_BIN)
7df3f06c0bf0b78a88221348d6af6704d9ece7efMark Andrews (cd $(SOURCE_DIR); $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)
7df3f06c0bf0b78a88221348d6af6704d9ece7efMark Andrews
a3253fb44c15a52bbb19bb38592b4dc02a004527Tinderbox User