summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
commit8d3fc864d094eeadc721f8e93436b37a5fab173e (patch)
tree05e201c67dca55b4ccdf90ad479a25d95e3b1e63 /Makefile.am
Imported Upstream version 1.5.3
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am121
1 files changed, 121 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..bc4cf1d
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,121 @@
+AUTOMAKE_OPTIONS = 1.5
+# General defines
+
+version := 1.5.3
+
+
+# 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
+
+##### 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
+
+# VCL library- set to yes if you would like to build
+buildvcl := @enable_vcl@
+
+
+# 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 . tests utilities examples apps
+INCLUDES = -I $(top_srcdir)/include
+EXTRA_DIST = sword.spec sword.kdevprj sword.bmp options.conf
+
+if INSTCONF
+sysconf_DATA = sword.conf
+sword.conf:
+ @echo "[Install]" > sword.conf
+ @echo "DataPath=$(pkgdatadir)/" >> sword.conf
+endif
+
+noinst_PROGRAMS = testlib
+testlib_SOURCES = testlib.cpp
+testlib_LDADD = -L./lib -lsword
+
+include locales.d/Makefile.am
+include samples/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 /etc/sword.conf"
+ @echo "by typing: \"make install_config\""
+ @echo ""
+ @echo "modules (Bible, 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
+
+uninstall-am: uninstall-info-am uninstalllocaleDATA \
+ uninstallmodsDATA uninstall-sysconfDATA
+
+
+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]" > /etc/sword.conf
+ @echo "DataPath=$(pkgdatadir)/" >> /etc/sword.conf
+ @echo "sword.conf generated"
+