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

« back to all changes in this revision

Viewing changes to libtommath/makefile.shared

  • 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:
1
1
#Makefile for GCC
2
2
#
3
3
#Tom St Denis
4
 
VERSION=0:32
 
4
VERSION=0:35
5
5
 
6
6
CC = libtool --mode=compile gcc
7
 
 
8
7
CFLAGS  +=  -I./ -Wall -W -Wshadow -Wsign-compare
9
8
 
10
9
#for speed 
16
15
#x86 optimizations [should be valid for any GCC install though]
17
16
CFLAGS  += -fomit-frame-pointer
18
17
 
 
18
#install as this user
 
19
USER=root
 
20
GROUP=root
 
21
 
19
22
default: libtommath.la
20
23
 
21
24
#default files to install
22
25
LIBNAME=libtommath.la
23
 
HEADERS=tommath.h
 
26
HEADERS=tommath.h tommath_class.h tommath_superclass.h
24
27
 
25
28
#LIBPATH-The directory for libtommath to be installed to.
26
29
#INCPATH-The directory to install the header files for libtommath.
50
53
bn_mp_dr_is_modulus.o bn_mp_dr_setup.o bn_mp_reduce_setup.o \
51
54
bn_mp_toom_mul.o bn_mp_toom_sqr.o bn_mp_div_3.o bn_s_mp_exptmod.o \
52
55
bn_mp_reduce_2k.o bn_mp_reduce_is_2k.o bn_mp_reduce_2k_setup.o \
 
56
bn_mp_reduce_2k_l.o bn_mp_reduce_is_2k_l.o bn_mp_reduce_2k_setup_l.o \
53
57
bn_mp_radix_smap.o bn_mp_read_radix.o bn_mp_toradix.o bn_mp_radix_size.o \
54
58
bn_mp_fread.o bn_mp_fwrite.o bn_mp_cnt_lsb.o bn_error.o \
55
59
bn_mp_init_multi.o bn_mp_clear_multi.o bn_mp_exteuclid.o bn_mp_toradix_n.o \
56
60
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 \
57
 
bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o
 
61
bn_mp_init_set_int.o bn_mp_invmod_slow.o bn_mp_prime_rabin_miller_trials.o \
 
62
bn_mp_to_signed_bin_n.o bn_mp_to_unsigned_bin_n.o
 
63
 
58
64
 
59
65
libtommath.la:  $(OBJECTS)
60
66
        libtool --mode=link gcc *.lo -o libtommath.la -rpath $(LIBPATH) -version-info $(VERSION)
61
67
        libtool --mode=link gcc *.o -o libtommath.a 
62
68
        libtool --mode=install install -c libtommath.la $(LIBPATH)/libtommath.la
63
 
        install -d -g root -o root $(DESTDIR)$(INCPATH)
64
 
        install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH)
 
69
        install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
 
70
        install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
65
71
 
66
72
test: libtommath.a demo/demo.o
67
73
        gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o