1## Copyright (C) 2001-2007 Artifex Software, Inc.
2##
3## Permission is hereby granted, free of charge, to any person
4## obtaining a copy of this software and associated documentation
5## files (the "Software"), to deal in the Software without
6## restriction, including without limitation the rights to use, copy,
7## modify, merge, publish, distribute, sublicense, and/or sell copies
8## of the Software, and to permit persons to whom the Software is
9## furnished to do so, subject to the following conditions:
10##
11## The above copyright notice and this permission notice shall be
12## included in all copies or substantial portions of the Software.
13##
14## THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15## EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16## MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17## NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
18## BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19## ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20## CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21## SOFTWARE.
22
23## $Id: Makefile.am 8371 2007-11-16 02:10:56Z giles $
24
25## Process this file with automake to produce Makefile.in.
26
27AUTOMAKE_OPTIONS = 1.6 foreign dist-bzip2 no-dependencies
28
29@SET_MAKE@
30
31MAINT_CHARSET = latin1
32
33## Variables
34
35pkgincludedir=$(includedir)/ijs
36m4datadir = $(datadir)/aclocal
37pkgconfigdir = $(libdir)/pkgconfig
38
39lib_LTLIBRARIES = libijs.la
40
41pkginclude_HEADERS = \
42	ijs_client.h \
43	ijs.h \
44	ijs_server.h
45
46noinst_HEADERS = unistd_.h
47
48bin_PROGRAMS = ijs_client_example ijs_server_example
49
50bin_SCRIPTS = ijs-config
51
52
53libijs_la_SOURCES = \
54	ijs.c \
55	ijs_client.c \
56	ijs_server.c
57#ijs_version.c
58EXTRA_libijs_la_SOURCES = ijs_exec_unix.c ijs_exec_win.c
59if SYSDEPS_WINDOWS
60libijs_la_LIBADD = ijs_exec_win.lo $(IJS_DEPLIBS)
61else
62libijs_la_LIBADD = ijs_exec_unix.lo $(IJS_DEPLIBS)
63endif
64# Uncommment to build an unversioned library (version in soname)
65libijs_la_LDFLAGS = -release $(IJS_VERSION) -rpath $(libdir)
66# Uncomment to build a versioned library
67#libijs_la_LDFLAGS = \
68# -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
69# -rpath $(libdir)
70
71
72ijs_client_example_SOURCES = ijs_client_example.c
73ijs_client_example_LDADD = libijs.la
74
75ijs_server_example_SOURCES = ijs_server_example.c
76ijs_server_example_LDADD = libijs.la
77
78
79## Data
80
81pkgconfig_DATA = ijs.pc
82
83man_MANS = ijs-config.1
84
85EXTRA_DIST = \
86	common.mak unix.mak windows.mak \
87	ijs_spec.sgml state.eps state.fig ijs_spec.pdf \
88	$(man_MANS)
89
90## Rules
91
92# Libtool dependency
93libtool: $(LIBTOOL_DEPS)
94	$(SHELL) ./config.status --recheck
95
96doc: ijs_spec.ps ijs_spec.pdf
97
98# We don't use db2pdf because it can't handle embedded .eps
99ijs_spec.ps: ijs_spec.sgml
100	$(DB2PS) ijs_spec.sgml
101
102ijs_spec.pdf: ijs_spec.ps
103	$(PS2PDF) ijs_spec.ps
104
105# Note that ijs_spec.pdf is included in the dist list above,
106# so the 'doc' target needs to be build for 'make dist' to work.
107
108## Clean
109
110CLEANSCRIPTS = \
111	depcomp \
112	install-sh \
113	ltconfig \
114	mdate-sh \
115	missing \
116	mkinstalldirs \
117	config.guess \
118	config.sub \
119	ltmain.sh
120
121CLEANFILES = gmon.out core ijs_spec.log ijs_spec.tex ijs_spec.aux ijs_spec.ps ijs_spec.pdf
122DISTCLEANFILES = ijs-config config.cache config.log config.status
123# ijs-config.in ijs.pc ijs.pc.in ijs.m4 ijs.h
124MAINTAINERCLEANFILES = INSTALL aclocal.m4 config.h.in configure Makefile.in stamp-h.in $(CLEANSCRIPTS)
125
126