File: makefile

package info (click to toggle)
lrslib 0.42c-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,220 kB
  • ctags: 922
  • sloc: ansic: 7,531; xml: 555; makefile: 91
file content (121 lines) | stat: -rw-r--r-- 5,382 bytes parent folder | download
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
# Makefile for lrslib including lrs and redund 
# 2008.1.15
#
# choose one of the first 4 and gmp if applicable - see README
#
# make all      normal version for 32bit machines with timing/signals handling
# make all64    for machines with 64bit integers, eg. DEC Alpha
# make ansi     ansi standard version for 32bit machines without signals handling
# make nosigs   ansi standard version for 32bit machines without timing/signals handling

# make demo     compile the demo programs (vanilla machine)

# make gmp      uses gmp arithmetic, set paths for include files *first*

# make clean    to clean all executables


#Select one of the following INCLUDE,LIB paths only needed for gmp version

#linux at mcgill with gmp version 3
#INCLUDEDIR = /usr/local/include
#LIBDIR     = /usr/local/lib

#linux at mcgill with gmp version 2
#INCLUDEDIR = /labs/cgm/gmp2/include
#LIBDIR     = /labs/cgm/gmp2/lib


#TRUE64 at mcgill gmp version 3
INCLUDEDIR = /labs/cgm/include
LIBDIR     = /labs/cgm/lib

#TRUE64 at mcgill gmp version 2
#INCLUDEDIR = /labs/cgm/gmp2/include
#LIBDIR     = /labs/cgm/gmp2/lib


all:	lrs.c lrslib.c lrslib.h lrsmp.c lrsmp.h lrslong.c lrslong.h redund.c buffer.c nash.c 2nash.c 
	gcc -O3 -DTIMES -DSIGNALS -o lrs  lrs.c lrslib.c lrsmp.c
	gcc -O3 -DTIMES -DSIGNALS -o redund  redund.c lrslib.c lrsmp.c
	gcc -O3 -DTIMES -DSIGNALS -DLONG -o lrs1  lrs.c lrslib.c lrslong.c
	gcc -O3 -DTIMES -DSIGNALS -DLONG -o redund1  redund.c lrslib.c lrslong.c
	gcc -O3 -DLRS_QUIET  -DTIMES -DSIGNALS -o nash nash.c lrslib.c lrsmp.c
	gcc -O3 -o setupnash setupnash.c lrslib.c lrsmp.c
	gcc -O3 -o setupnash2 setupnash2.c lrslib.c lrsmp.c
	gcc -Wall -O3 -o fourier  fourier.c lrslib.c lrsmp.c
	gcc -O3 -o buffer buffer.c
	gcc -O3 -o 2nash 2nash.c

gmp:	fourier.c 2gnash.c lrs.c redund.c lrslib.h lrslib.c lrsgmp.h lrsgmp.c nash.c
	gcc -O3 -static -DTIMES -DSIGNALS  -DGMP -I${INCLUDEDIR} lrs.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o glrs
	gcc -O3 -static -DTIMES -DSIGNALS -DGMP -I${INCLUDEDIR} redund.c lrslib.c lrsgmp.c -L${LIBDIR} -lgmp -o gredund
	gcc -O3 -static -DLRS_QUIET -DTIMES -DSIGNALS -DGMP -I${INCLUDEDIR} nash.c lrslib.c lrsgmp.c -L${LIBDIR} -lgmp -o gnash
	gcc -O3 -static -DTIMES -DSIGNALS  -DGMP -I${INCLUDEDIR} fourier.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfourier
	gcc -O3 -o buffer buffer.c
	gcc -O3 -o 2gnash 2gnash.c
	gcc -O3 -static -DTIMES -DSIGNALS  -DGMP -I${INCLUDEDIR} fourier.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfourier
gnash:	lrslib.h lrslib.c lrsgmp.h lrsgmp.c nash.c 2gnash.c
	gcc -O3 -static -DLRS_QUIET -DTIMES -DSIGNALS -DGMP -I${INCLUDEDIR} nash.c lrslib.c lrsgmp.c -L${LIBDIR} -lgmp -o gnash
	gcc -O3 -o 2gnash 2gnash.c

all64:	lrs.c lrslib.c lrslib.h lrsmp.c lrsmp.h lrslong.c lrslong.h redund.c buffer.c
	gcc -DTIMES -DSIGNALS -DB64 -O3 -o lrs  lrs.c lrslib.c lrsmp.c
	gcc -DTIMES -DSIGNALS -DB64 -O3 -o redund  redund.c lrslib.c lrsmp.c
	gcc -DTIMES -DSIGNALS -DLONG -DB64 -O3 -o lrs1  lrs.c lrslib.c lrslong.c
	gcc -DTIMES -DSIGNALS -DLONG -DB64 -O3 -o redund1  redund.c lrslib.c lrslong.c
	gcc -O3 -o buffer buffer.c

ansi:	lrs.c lrslib.c lrslib.h lrsmp.c lrsmp.h lrslong.c lrslong.h redund.c buffer.c nash.c
	gcc -ansi -DTIMES   -O3 -o lrs  lrs.c lrslib.c lrsmp.c
	gcc -ansi -DTIMES   -O3 -o redund redund.c lrslib.c lrsmp.c
	gcc -ansi -DTIMES  -DLONG  -O3 -o lrs1  lrs.c lrslib.c lrslong.c
	gcc -ansi -DTIMES  -DLONG  -O3 -o redund1 redund.c lrslib.c lrslong.c
	gcc -O3 -o buffer buffer.c
	gcc -Wall -ansi -O3 -o nash nash.c lrslib.c lrsmp.c

nosigs:	lrs.c lrslib.c lrslib.h lrsmp.c lrsmp.h lrslong.c lrslong.h redund.c buffer.c
	gcc -ansi  -O3 -o lrs  lrs.c lrslib.c lrsmp.c
	gcc -ansi  -O3 -o redund redund.c lrslib.c lrsmp.c
	gcc -ansi  -O3 -DLONG -o lrs1  lrs.c lrslib.c lrslong.c
	gcc -ansi  -O3 -DLONG -o redund1 redund.c lrslib.c lrslong.c
	gcc -ansi -O3 -o buffer buffer.c

lrs:    lrs.c lrslib.c lrslong.c lrsmp.c
	gcc -Wall -ansi -O3 -o lrs  lrs.c lrslib.c lrsmp.c

redund:    redund.c lrslib.c lrslong.c lrsmp.c
	gcc -Wall -ansi -O3 -o redund redund.c lrslib.c lrsmp.c

nash:    setupnash2.c setupnash.c nash.c lrslib.c  lrsmp.c 2nash.c
	gcc -Wall -DTIMES -ansi -O3 -o nash nash.c lrslib.c lrsmp.c
	gcc -Wall -o setupnash setupnash.c lrslib.c lrsmp.c
	gcc -Wall -o setupnash2 setupnash2.c lrslib.c lrsmp.c
	gcc -O3 -o 2nash 2nash.c

fourier:    fourier.c lrslib.c lrslong.c lrsmp.c
	gcc -Wall -O3 -o fourier  fourier.c lrslib.c lrsmp.c
	gcc -O3 -static -DTIMES -DSIGNALS  -DGMP -I${INCLUDEDIR} fourier.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfourier

demo:	lpdemo.c chdemo.c vedemo.c lrslib.c lrslong.c lrsmp.c
	gcc -Wall -ansi -O3 -o lpdemo lpdemo.c lrslib.c lrsmp.c
	gcc -Wall -ansi -O3 -o vedemo vedemo.c lrslib.c lrsmp.c
	gcc -Wall -ansi -O3 -o chdemo chdemo.c lrslib.c lrsmp.c

float: float2rat.c rat2float.c lrsmp.c 
	gcc -DLRSMP -Wall -ansi -o float2rat float2rat.c lrsmp.c
	gcc -DLRSMP -Wall -ansi -o rat2float rat2float.c lrsmp.c

clean:
	rm -rf lrs lrs1 redund redund1 buffer glrs gredund
	rm -rf foo gfoo
	rm -rf lpdemo vedemo chdemo
	rm -rf fourier gfourier                   
	rm -rf nash gnash setupnash setupnash2

foo:	foo.c lrslib.h lrslib.c lrsmp.h lrsmp.c
	gcc -O3 -static -DTIMES -DSIGNALS  foo.c lrslib.c lrsmp.c -L${LIBDIR} -o foo

gfoo:	foo.c lrslib.h lrslib.c lrsgmp.h lrsgmp.c
	gcc -O3 -static -DTIMES -DSIGNALS  -DGMP -I${INCLUDEDIR} foo.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfoo