Remove debian packaging stuff
[platform/upstream/libijs.git] / Makefile.am
1 ## Copyright (c) 2001-2004 artofcode LLC.
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,v 1.4 2004/02/11 11:46:29 giles Exp $
24
25 ## Process this file with automake to produce Makefile.in.
26
27 AUTOMAKE_OPTIONS = 1.6 foreign dist-bzip2 no-dependencies 
28
29 @SET_MAKE@
30
31 MAINT_CHARSET = latin1
32
33 ## Variables
34
35 pkgincludedir=$(includedir)/ijs
36 m4datadir = $(datadir)/aclocal
37 pkgconfigdatadir = $(libdir)/pkgconfig
38
39 lib_LTLIBRARIES = libijs.la
40
41 pkginclude_HEADERS = \
42         ijs_client.h \
43         ijs.h \
44         ijs_server.h
45
46 noinst_HEADERS = unistd_.h
47
48 bin_PROGRAMS = ijs_client_example ijs_server_example
49
50 bin_SCRIPTS = ijs-config
51
52
53 libijs_la_SOURCES = \
54         ijs.c \
55         ijs_client.c \
56         ijs_server.c
57 #ijs_version.c
58 EXTRA_libijs_la_SOURCES = ijs_exec_unix.c ijs_exec_win.c
59 if SYSDEPS_WINDOWS
60 libijs_la_LIBADD = ijs_exec_win.lo $(IJS_DEPLIBS)
61 else
62 libijs_la_LIBADD = ijs_exec_unix.lo $(IJS_DEPLIBS)
63 endif
64 # Uncommment to build an unversioned library (version in soname)
65 libijs_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
72 ijs_client_example_SOURCES = ijs_client_example.c
73 ijs_client_example_LDADD = libijs.la
74
75 ijs_server_example_SOURCES = ijs_server_example.c
76 ijs_server_example_LDADD = libijs.la
77
78
79 ## Data
80
81 pkgconfigdata_DATA = ijs.pc
82
83 man_MANS = ijs-config.1
84
85 EXTRA_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
93 libtool: $(LIBTOOL_DEPS)
94         $(SHELL) ./config.status --recheck
95
96 doc: ijs_spec.ps ijs_spec.pdf
97
98 # We don't use db2pdf because it can't handle embedded .eps
99 ijs_spec.ps: ijs_spec.sgml
100         $(DB2PS) ijs_spec.sgml
101
102 ijs_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
110 CLEANSCRIPTS = \
111         depcomp \
112         install-sh \
113         ltconfig \
114         mdate-sh \
115         missing \
116         mkinstalldirs \
117         config.guess \
118         config.sub \
119         ltmain.sh
120
121 CLEANFILES = gmon.out core ijs_spec.log ijs_spec.tex ijs_spec.aux ijs_spec.ps ijs_spec.pdf
122 DISTCLEANFILES = ijs-config config.cache config.log config.status
123 # ijs-config.in ijs.pc ijs.pc.in ijs.m4 ijs.h
124 MAINTAINERCLEANFILES = INSTALL aclocal.m4 config.h.in configure Makefile.in stamp-h.in $(CLEANSCRIPTS)
125