-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (31 loc) · 1.35 KB
/
Makefile
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
# successfully compiled with gcc version 4.6.3 on Debian 6 in GT.M user
# environment for openssl 0.9.8o (libssl-dev package must be installed)
#
all:
gcc -Wall -Werror -pedantic -fPIC -shared -o libdigest.so digest.c -I$(gtm_dist) -lcrypto
# Example installation procedure
#
# See http://tinco.pair.com/bhaskar/gtm/doc/books/pg/UNIX_manual/ch11s04.html#examples_fo_using_ext_calls
# for details
#
# NOTES:
# The $(gtm_dist)/plugin directory and the plugins functionality is
# available since GT.M V5.5-000, for older GT.M versions place digest.m
# in your routines directory, and digest.env and libdigest.so in a
# directory of your choice, and update digest.xc and .profile
# accordingly to point the those files.
#
# The $(gtm_dist)/plugin/o directory should be writable the GT.M user.
#
# The script will succeed if your version of GT.M is V5.5-000 or above,
# and the GT.M user has an access to recursively modify the default
# permissions for $(gtm_dist)/plugin, you can simply run
# chown -R gtm $(gtm_dist)/plugin
# as root to achieve that (change the "gtm" to your GT.M system user).
#
install:
chmod u+w -R $(gtm_dist)/plugin
cp digest.m $(gtm_dist)/plugin/r/
cp libdigest.so digest.xc digest.env $(gtm_dist)/plugin/
sed -i "s|gtm_dist|$(gtm_dist)|" $(gtm_dist)/plugin/digest.xc $(gtm_dist)/plugin/digest.env
echo ". $(gtm_dist)/plugin/digest.env" >> ~/.profile