/[dtapublic]/projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/build
ViewVC logotype

Contents of /projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/build

Parent Directory Parent Directory | Revision Log Revision Log


Revision 176 - (show annotations) (download)
Mon Jul 9 00:04:34 2018 UTC (5 years, 10 months ago) by dashley
File size: 5186 byte(s)
Add continuation character to break up long line.
1 #!/bin/bash
2 #$Header$
3 #********************************************************************************
4 #Copyright (c) 2003, 2018 David T. Ashley.
5 #********************************************************************************
6 #This file is part of "arith_large_cgi", a program that is designed to be
7 #invoked by a PHP script as part of serving a web page that performs
8 #calculations involving large integers. (A secondary compiled program is
9 #used because a compiled program can perform certain calculation-intensive
10 #tasks far more efficiently than a PHP script.) This program is provided by
11 #David T. Ashley (dashley@gmail.com) under the MIT License (reproduced
12 #immediately below).
13 #********************************************************************************
14 #Permission is hereby granted, free of charge, to any person obtaining a copy
15 #of this software and associated documentation files (the "Software"), to deal
16 #in the Software without restriction, including without limitation the rights
17 #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18 #copies of the Software, and to permit persons to whom the Software is
19 #furnished to do so, subject to the following conditions:
20 #
21 #The above copyright notice and this permission notice shall be included in all
22 #copies or substantial portions of the Software.
23 #
24 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25 #IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 #FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27 #AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 #LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29 #OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 #SOFTWARE.
31 #********************************************************************************
32 #This BASH script just builds the executable. If there is any trouble in porting the
33 #executable, it might be wise to use the -static option on the compile.
34 #
35 #Build the general purpose CGI-BIN which gives data to the script.
36 gcc -Wimplicit -static -o arith_large_cgi arith_large_cgi.c auxfuncs.c cf_decomp.c rat_num.c sieve_eratosthenes.c \
37 subfunc_cfbrap.c subfunc_gcd.c subfunc_gmp_prob_prime.c subfunc_pfact_18.c -lgmp
38 #
39 #Copy all the source files to the right locations so they will be publicly available
40 #to meet the license terms of the GMP.
41 #cp arith_large_cgi.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/arith_large_cgi.c.txt
42 #cp auxfuncs.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/auxfuncs.c.txt
43 #cp auxfuncs.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/auxfuncs.h.txt
44 #cp build /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/build.txt
45 #cp sieve_eratosthenes.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_eratosthenes.c.txt
46 #cp sieve_eratosthenes.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_eratosthenes.h.txt
47 #cp sieve_gen.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/sieve_gen.c.txt
48 #cp subfunc_gcd.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gcd.c.txt
49 #cp subfunc_gcd.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gcd.h.txt
50 #cp subfunc_gmp_prob_prime.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gmp_prob_prime.c.txt
51 #cp subfunc_gmp_prob_prime.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_gmp_prob_prime.h.txt
52 #cp subfunc_pfact_18.c /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_pfact_18.c.txt
53 #cp subfunc_pfact_18.h /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/subfunc_pfact_18.h.txt
54 #
55 #Also copy the PHP scripts.
56 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/Cpuusagestatclock.inc /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/Cpuusagestatclock.inc.txt
57 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/pfact18digit.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/pfact18digit.php.txt
58 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/euclid_gcd.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/euclid_gcd.php.txt
59 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/miller_rabin.php /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/miller_rabin.php.txt
60 #cp /web_root/daveashley_com/esrg_sourceforge_mirror/phpcgibin/Stdnwpstyle.inc /web_root/daveashley_com/esrg_sourceforge_mirror/howtos/nth_web_gmp_src_code_dist/Stdnwpstyle.inc.txt
61 #
62 #********************************************************************************
63 #End of file BUILD.
64 #********************************************************************************

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Header

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25