Upload Tizen:Main source
[framework/uifw/xorg/util/xorg-x11-xauth.git] / Makefile.am
1
2 #  Copyright 2005  Red Hat, Inc.
3
4 #  Permission to use, copy, modify, distribute, and sell this software and its
5 #  documentation for any purpose is hereby granted without fee, provided that
6 #  the above copyright notice appear in all copies and that both that
7 #  copyright notice and this permission notice appear in supporting
8 #  documentation, and that the name of Red Hat not be used in
9 #  advertising or publicity pertaining to distribution of the software without
10 #  specific, written prior permission.  Red Hat makes no
11 #  representations about the suitability of this software for any purpose.  It
12 #  is provided "as is" without express or implied warranty.
13
14 #  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 #  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 #  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 #  PERFORMANCE OF THIS SOFTWARE.
21
22 bin_PROGRAMS = xauth
23
24 AM_CFLAGS = $(CWARNFLAGS) $(XAUTH_CFLAGS)
25 xauth_LDADD = $(XAUTH_LIBS)
26
27 xauth_SOURCES = \
28         gethost.c \
29         parsedpy.c \
30         process.c \
31         xauth.c \
32         xauth.h
33
34 appman_PRE = \
35         xauth.man
36
37 appmandir = $(APP_MAN_DIR)
38
39 appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
40
41 EXTRA_DIST = $(appman_PRE) 
42 MAINTAINERCLEANFILES = ChangeLog INSTALL
43 CLEANFILES = $(appman_DATA)
44
45 if LINT
46 ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
47                 $(AM_CPPFLAGS) $(CPPFLAGS) $(XAUTH_CFLAGS)
48
49 lint:
50         $(LINT) $(ALL_LINT_FLAGS) $(xauth_SOURCES) $(xauth_LDADD)
51 endif LINT
52
53
54 SUFFIXES = .$(APP_MAN_SUFFIX) .man
55
56 # String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
57 .man.$(APP_MAN_SUFFIX):
58         $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
59
60
61 .PHONY: ChangeLog INSTALL
62
63 INSTALL:
64         $(INSTALL_CMD)
65
66 ChangeLog:
67         $(CHANGELOG_CMD)
68
69 dist-hook: ChangeLog INSTALL