Fix xstrncpy usage, also fixes etags. From Nelson
[sxemacs] / modules / dbus / Makefile.am
1 ## This file is part of SXEmacs.
2
3 ## Redistribution and use in source and binary forms, with or without
4 ## modification, are permitted provided that the following conditions
5 ## are met:
6 ##
7 ## 1. Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ##
10 ## 2. Redistributions in binary form must reproduce the above copyright
11 ##    notice, this list of conditions and the following disclaimer in the
12 ##    documentation and/or other materials provided with the distribution.
13 ##
14 ## 3. Neither the name of the author nor the names of any contributors
15 ##    may be used to endorse or promote products derived from this
16 ##    software without specific prior written permission.
17 ##
18 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
19 ## IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 ## WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 ## DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 ## BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 ## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27 ## OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
28 ## IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 ## Process this file with automake to produce Makefile.in
31
32 # Help the Developers and yourself. Just use the C locale and settings
33 # for the compilation. They can still be overriden by make LANG=<whatever>
34 # but that is general a not very good idea
35 LANG=C
36 LC_ALL=C
37
38 MODVER=0.0.1
39
40 builddir = @builddir@
41 srcdir = @srcdir@
42 top_builddir = @top_builddir@
43 top_build_prefix = $(top_builddir)/
44 top_srcdir = @top_srcdir@
45 abs_builddir = @abs_builddir@
46 abs_top_builddir = @abs_top_builddir@
47 abs_top_srcdir = @abs_top_srcdir@
48 headerdir = $(includedir)/$(instvarsepdir)
49
50 AM_CFLAGS = $(dll_cflags) -DIMA_MODULE -DUSE_SXEMACS_CONFIG_H \
51         @DBUS_CFLAGS@
52 AM_CPPFLAGS = -I$(srcdir) -I$(builddir)  -I$(top_srcdir)/src \
53         -I$(top_builddir)/src $(SXEMACS_INCLUDES) $(c_switch_all)
54 AM_LDFLAGS = -module $(XCCLDFLAGS) @DBUS_LIBS@
55
56 ## mods
57 module_LTLIBRARIES = dbusbind.la
58
59 BUILT_SOURCES = dbusbind.doc.c
60
61 header_HEADERS = dbusbind.h
62
63 dbusbind_la_SOURCES = dbusbind.c
64
65 nodist_dbusbind_la_SOURCES = dbusbind.doc.c
66
67 dbusbind_la_CFLAGS = $(AM_CFLAGS) -DEMOD_SXE_DBUS
68
69 CLEANFILES = $(BUILT_SOURCES) auto-autoloads.el{,c} libsxe-dbus.a
70
71 ## custom rules
72 SXEMACS = $(top_builddir)/src/sxemacs
73 make_docfile = $(MAKE_DOCFILE)
74 BITCH = $(SXEMACS) -batch
75 BITCHENV = EMACSPACKAGEPATH= SOURCE_TREE_ROOT=$(abs_top_srcdir) BUILD_TREE_ROOT=$(abs_top_builddir)
76 BATCH = $(BITCHENV) $(BITCH)
77 RM = rm -f
78
79 #
80 # Help the SXEmacs developers get nice post-processed source files
81
82 ## the libtool approach
83 SUFFIXES = .doc.c
84 .c.doc.c: $(MAKE_DOCFILE)
85         $(make_docfile) --modname $* -E $@ $<
86
87 ## Create preprocessor output (debugging purposes only)
88 .c.i:
89         $(COMPILE) -E -o $@ $<
90
91 ## Create assembler output (debugging purposes only)
92 .c.s:
93         $(COMPILE) -S -c $(cflags) $<