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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 207 - (show annotations) (download)
Sun Jul 15 21:50:56 2018 UTC (6 years ago) by dashley
File size: 2785 byte(s)
Change keyword/EOL properties.
Correct tab characters and end-of-line whitespace.
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 auxiliary CGI-BIN which gives data to the script.
36 gcc -Wimplicit -static -o dtats_cgi_aux_arith_large \
37 dtats_cgi_aux_arith_large.c auxfuncs.c cf_decomp.c \
38 rat_num.c sieve_eratosthenes.c subfunc_cfbrap.c \
39 subfunc_gcd.c subfunc_gmp_prob_prime.c \
40 subfunc_pfact_18.c -lgmp
41 #
42 #Copy the executable to the right location.
43 cp dtats_cgi_aux_arith_large /hl/cgibin/aux_progs
44 #
45 #********************************************************************************
46 #End of file BUILD.
47 #********************************************************************************

Properties

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

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25