open-src/lib/libXtsol/sun-src/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Tue, 23 Sep 2014 20:14:15 -0700
changeset 1472 c19b22da05b6
parent 1466 fbd4067be4c6
permissions -rw-r--r--
19674784 purge auditwrite code from libXtsol client library
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
     1
# Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     4
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     5
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     6
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     7
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     8
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
     9
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    10
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    11
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    12
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    15
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    16
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    17
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    19
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 907
diff changeset
    20
# DEALINGS IN THE SOFTWARE.
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
#
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
HEADERSPublic = Xtsol.h Xtsolproto.h
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
HEADERSPublic_dir = $(PREFIX)/include/X11/extensions
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
1472
c19b22da05b6 19674784 purge auditwrite code from libXtsol client library
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1466
diff changeset
    26
SRCS = Xtsol.c
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
OBJS = $(SRCS:.c=.o)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
1472
c19b22da05b6 19674784 purge auditwrite code from libXtsol client library
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1466
diff changeset
    29
REQUIREDLIBS = -lX11 -ltsol -lc
499
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
XLIB_CFLAGS:sh = pkg-config --cflags x11
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
libXtsol.so.1: $(OBJS) mapfile-vers
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
	$(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
    35
	  $(OBJS) $(REQUIREDLIBS)
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
.c.o:
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
	$(CC) -Kpic $(XLIB_CFLAGS) $(CFLAGS) $(CPPFLAGS) -c $<
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 963
diff changeset
    40
install: libXtsol.so.1 $(HEADERSPublic)
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
	mkdir -p $(DESTDIR)$(HEADERSPublic_dir)
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    42
	$(INSTALL) -m 0444 $(HEADERSPublic) $(DESTDIR)$(HEADERSPublic_dir)
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
	mkdir -p $(DESTDIR)$(libdir)
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
	-rm -f $(DESTDIR)$(libdir)/libXtsol.so \
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
	       $(DESTDIR)$(libdir)/libXtsol.so.1
963
7a4fced80e83 6962316 X proto area should more closely match packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    46
	$(INSTALL) -m 0555 libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so.1
499
8670a6ee6406 6736427 Move libXtsol sources to open-src
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
	ln -s libXtsol.so.1 $(DESTDIR)$(libdir)/libXtsol.so