open-src/lib/libXtsol/sun-src/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Tue, 12 Aug 2008 14:14:17 -0700
changeset 499 8670a6ee6406
child 907 3c35d611cdaa
permissions -rw-r--r--
6736427 Move libXtsol sources to open-src
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
# Use subject to license terms.
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
#
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
# Permission is hereby granted, free of charge, to any person obtaining a
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# copy of this software and associated documentation files (the
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# "Software"), to deal in the Software without restriction, including
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# without limitation the rights to use, copy, modify, merge, publish,
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# distribute, and/or sell copies of the Software, and to permit persons
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# to whom the Software is furnished to do so, provided that the above
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# copyright notice(s) and this permission notice appear in all copies of
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# the Software and that both the above copyright notice(s) and this
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# permission notice appear in supporting documentation.
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# 
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# 
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# Except as contained in this notice, the name of a copyright holder
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# shall not be used in advertising or otherwise to promote the sale, use
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# or other dealings in this Software without prior written authorization
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# of the copyright holder.
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
#
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# @(#)Makefile	1.1	08/08/12
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
HEADERSPublic = Xtsol.h Xtsolproto.h
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
HEADERSPublic_dir = $(PREFIX)/include/X11/extensions
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
SRCS = Xtsol.c auditwrite.c
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
OBJS = $(SRCS:.c=.o)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
REQUIREDLIBS = -lX11 -lbsm -ltsol -lc
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
XLIB_CFLAGS:sh = pkg-config --cflags x11
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
libXtsol.so.1: $(OBJS) mapfile-vers
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
	$(CC) -G -o $@ -h $@ $(CFLAGS) $(LDFLAGS) -M mapfile-vers \
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
	  $(OBJS) $(REQUIREDLIBS)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
.c.o:
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
	$(CC) -Kpic $(XLIB_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c $<
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
install: libXtsol.so.1
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
	mkdir -p $(DESTDIR)$(HEADERSPublic_dir)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
	for i in $(HEADERSPublic) ; do \
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
		$(INSTALL) $$i $(DESTDIR)$(HEADERSPublic_dir) ; \
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
	done
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
	mkdir -p $(DESTDIR)$(libdir)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
	-rm -f $(DESTDIR)$(libdir)/libXtsol.so \
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
	       $(DESTDIR)$(libdir)/libXtsol.so.1
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
	$(INSTALL) libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so.1
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
	ln -s libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so