~ubuntu-branches/ubuntu/utopic/dropbear/utopic-proposed

« back to all changes in this revision

Viewing changes to libtommath/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matt Johnston
  • Date: 2005-12-08 19:20:21 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208192021-nyp9rwnt77nsg6ty
Tags: 0.47-1
* New upstream release.
* SECURITY: Fix incorrect buffer sizing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#Tom St Denis
4
4
 
 
5
#version of library 
 
6
VERSION=0.35
 
7
 
5
8
VPATH=@srcdir@
6
9
srcdir=@srcdir@
7
10
 
11
14
#CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
12
15
 
13
16
#for speed 
14
 
#CFLAGS += -O3 -funroll-loops
 
17
#CFLAGS += -O3 -funroll-all-loops
15
18
 
16
19
#for size 
17
20
#CFLAGS += -Os
22
25
#debug
23
26
#CFLAGS += -g3
24
27
 
25
 
VERSION=0.32
 
28
#install as this user
 
29
USER=root
 
30
GROUP=root
26
31
 
27
32
default: libtommath.a
28
33
 
29
34
#default files to install
30
35
LIBNAME=libtommath.a
31
 
HEADERS=tommath.h
 
36
HEADERS=tommath.h tommath_class.h tommath_superclass.h
32
37
 
33
38
#LIBPATH-The directory for libtommath to be installed to.
34
39
#INCPATH-The directory to install the header files for libtommath.
58
63
bn_mp_dr_is_modulus.o bn_mp_dr_setup.o bn_mp_reduce_setup.o \
59
64
bn_mp_toom_mul.o bn_mp_toom_sqr.o bn_mp_div_3.o bn_s_mp_exptmod.o \
60
65
bn_mp_reduce_2k.o bn_mp_reduce_is_2k.o bn_mp_reduce_2k_setup.o \
 
66
bn_mp_reduce_2k_l.o bn_mp_reduce_is_2k_l.o bn_mp_reduce_2k_setup_l.o \
61
67
bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_toradix.o bn_mp_radix_size.o \
62
68
bn_mp_fread.o bn_mp_fwrite.o bn_mp_cnt_lsb.o bn_error.o \
63
69
bn_mp_init_multi.o bn_mp_clear_multi.o bn_mp_exteuclid.o bn_mp_toradix_n.o \
64
70
bn_mp_prime_random_ex.o bn_mp_get_int.o bn_mp_sqrt.o bn_mp_is_square.o bn_mp_init_set.o \
65
 
bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o
 
71
bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \
 
72
bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
66
73
 
67
74
libtommath.a:  $(OBJECTS)
68
75
        $(AR) $(ARFLAGS) libtommath.a $(OBJECTS)
69
76
        $(RANLIB) libtommath.a
70
77
 
71
 
 
72
78
#make a profiled library (takes a while!!!)
73
79
#
74
80
# This will build the library with profile generation
93
99
        ranlib libtommath.a     
94
100
 
95
101
install: libtommath.a
96
 
        install -d -g root -o root $(DESTDIR)$(LIBPATH)
97
 
        install -d -g root -o root $(DESTDIR)$(INCPATH)
98
 
        install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH)
99
 
        install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH)
 
102
        install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
 
103
        install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
 
104
        install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
 
105
        install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
100
106
 
101
107
test: libtommath.a demo/demo.o
102
 
        $(CC) demo/demo.o libtommath.a -o test
 
108
        $(CC) $(CFLAGS) demo/demo.o libtommath.a -o test
103
109
        
104
110
mtest: test     
105
 
        cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest -s
 
111
        cd mtest ; $(CC) $(CFLAGS) mtest.c -o mtest
106
112
        
107
113
timing: libtommath.a
108
 
        $(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o ltmtest -s
 
114
        $(CC) $(CFLAGS) -DTIMER demo/timing.c libtommath.a -o ltmtest
109
115
 
110
116
# makes the LTM book DVI file, requires tetex, perl and makeindex [part of tetex I think]
111
117
docdvi: tommath.src
145
151
        perl pretty.build
146
152
 
147
153
clean:
148
 
        -rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \
149
 
        *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.da *.dyn *.dpi tommath.tex `find . -type f | grep [~] | xargs` *.lo *.la
150
 
        -rm -rf .libs
151
 
        -cd etc && make clean
152
 
        -cd pics && make clean
 
154
        rm -f *.bat *.pdf *.o *.a *.obj *.lib *.exe *.dll etclib/*.o demo/demo.o test ltmtest mpitest mtest/mtest mtest/mtest.exe \
 
155
        *.idx *.toc *.log *.aux *.dvi *.lof *.ind *.ilg *.ps *.log *.s mpi.c *.da *.dyn *.dpi tommath.tex *.lo *.la
 
156
        rm -rf .libs
 
157
        cd etc && make clean
 
158
        cd pics && make clean
153
159
 
154
160
zipup: clean manual poster docs
155
161
        perl gen.pl ; mv mpi.c pre_gen/ ; \