1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
AUTOMAKE_OPTIONS = 1.6
# this WILL NOT WORK for you. only inhouse patched version of
# sapphire will omit enciphering code when set to yes, so leave
# as no, unless you really know what you're doing
legalexport := no
ACLOCAL_AMFLAGS = -I m4
##### Customizable stuff. Set it how you like it #####
# if building dll with gcc on windoze (www.mingw.org)
# note you must set need_local_regex and buildshare to yes
if MINGW
mingw = yes
need_local_regex := yes
else
# need regular expression stuff?
need_local_regex := no
# shared library - set to yes if you would like to build
#buildshare := @enable_shared@
endif
# Debugging options etc...
debug := @enable_debug@
profile := @enable_profile@
# endian, etc. support for other hardware
system := @target_system@
#system := intel
#system := sparc_solaris
#system := macosx
#system := arm
#system := gnu_bigendian
#system := beos
# SPARC Solaris users should define system as sparc_solaris; SPARC users running Linux or other OSes with glibc, like Debian GNU/Linux should use gnu_bigendian instead
# to build on FreeBSD, simply use gmake instead of make
# to build for Darwin on PPC, set system to macosx
# zLib support
zlib := @with_zlib@
# icu support
icu := @with_icu@
# Global config directory
globalconfdir := @sysconfdir@
SUBDIRS = lib . icu
if BUILDTESTS
TESTSDIR = tests
else
TESTSDIR =
endif
if BUILDUTILS
UTILSDIR = utilities
else
UTILSDIR =
endif
if BUILDEXAMPLES
EXAMPLESDIR = examples
else
EXAMPLESDIR =
endif
SUBDIRS += $(TESTSDIR) $(UTILSDIR) $(EXAMPLESDIR)
AM_CPPFLAGS = -I $(top_srcdir)/include
EXTRA_DIST = sword.spec sword.kdevprj sword.bmp usrinst.sh autogen.sh sword.pc.in
if USE_PKGCONF
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = sword.pc
$(pkgconfig_DATA): config.status
endif
if INSTCONF
sysconf_DATA = sword.conf
sword.conf:
@echo "[Install]" > sword.conf
@echo "DataPath=$(pkgdatadir)/" >> sword.conf
clean-generic:
-rm -f sword.conf
endif
noinst_PROGRAMS = buildtest
buildtest_SOURCES = buildtest.cpp
if ICU
iculibs = -licui18n -licuuc
endif
buildtest_LDADD = $(top_builddir)/lib/libsword.la
include locales.d/Makefile.am
include samples/Makefile.am
include doc/Makefile.am
restore:
cd $(top_srcdir) && ./scripts/restoremake.sh
install: install-recursive
@echo ""
@echo "sword is installed."
@echo ""
@echo "if this is your first time, you may need a basic global"
@echo "configuration file. one can be generated to $(DESTDIR)$(sysconfdir)/sword.conf"
@echo "by typing: \"make install_config\""
@echo ""
@echo "modules (Bibles, etc.), may then be unzipped to $(pkgdatadir)/"
@echo ""
@echo "type \"make register\" to help us keep track of how many"
@echo "people are using sword."
@echo "(you may consider exiting from 'root', first, to make this"
@echo "a little more personal)"
@echo ""
install-data-am: installlocaleDATA installmodsDATA install-pkgconfigDATA
uninstall-am: uninstall-info-am uninstalllocaleDATA \
uninstallmodsDATA uninstall-sysconfDATA uninstall-pkgconfigDATA
register:
@echo ""
echo "(***) $$USER@$$HOSTNAME, $$(date), $$(uname -m -r -s), SWORD @VERSION@, ${pkgdatadir}" | mail sword.users@crosswire.org
@echo ""
@echo "The output of this command has been sent to CrossWire-- thank you. Enjoy!"
@echo ""
install_config:
@echo "[Install]" > $(DESTDIR)$(sysconfdir)/sword.conf
@echo "DataPath=$(pkgdatadir)/" >> $(DESTDIR)$(sysconfdir)/sword.conf
@echo "sword.conf generated"
dist-hook:
(cd $(distdir) && ./autogen.sh)
rm -r $(distdir)/autom4te.cache
|