annotate tomsfastmath/Makefile.in @ 647:939cd3e22c87 dropbear-tfm

- Fix constraints so we don't get warned about uninitialised variable (it isn't used as input by the asm)
author Matt Johnston <matt@ucc.asn.au>
date Wed, 30 Nov 2011 23:15:21 +0800
parents ff5cc422ba40
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
644
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 #makefile for TomsFastMath
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 #
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 #
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 VERSION=0.12
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 VPATH=@srcdir@
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
7 srcdir=@srcdir@
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 # Dropbear takes flags from the toplevel makefile
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 CFLAGS += -I$(srcdir)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12 CFLAGS += -I$(srcdir)/src/headers/ -I$(srcdir)/../
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14 ifndef MAKE
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15 MAKE=make
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
17
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
18 ifndef IGNORE_SPEED
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
19
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
20 CFLAGS += -O3 -funroll-loops
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
21
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
22 #profiling
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
23 #PROF=-pg -g
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
24 #CFLAGS += $(PROF)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
25
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
26 #speed
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
27 CFLAGS += -fomit-frame-pointer
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
28
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
29 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
30
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
31 #START_INS
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
32 OBJECTS=src/addsub/fp_add.o src/addsub/fp_add_d.o src/addsub/fp_addmod.o src/addsub/fp_cmp.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
33 src/addsub/fp_cmp_d.o src/addsub/fp_cmp_mag.o src/addsub/fp_sub.o src/addsub/fp_sub_d.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
34 src/addsub/fp_submod.o src/addsub/s_fp_add.o src/addsub/s_fp_sub.o src/bin/fp_radix_size.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35 src/bin/fp_read_radix.o src/bin/fp_read_signed_bin.o src/bin/fp_read_unsigned_bin.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
36 src/bin/fp_reverse.o src/bin/fp_s_rmap.o src/bin/fp_signed_bin_size.o src/bin/fp_to_signed_bin.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
37 src/bin/fp_to_unsigned_bin.o src/bin/fp_toradix.o src/bin/fp_unsigned_bin_size.o src/bit/fp_cnt_lsb.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
38 src/bit/fp_count_bits.o src/bit/fp_div_2.o src/bit/fp_div_2d.o src/bit/fp_lshd.o src/bit/fp_mod_2d.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
39 src/bit/fp_rshd.o src/divide/fp_div.o src/divide/fp_div_d.o src/divide/fp_mod.o src/divide/fp_mod_d.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
40 src/exptmod/fp_2expt.o src/exptmod/fp_exptmod.o src/misc/fp_ident.o src/misc/fp_set.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
41 src/mont/fp_montgomery_calc_normalization.o src/mont/fp_montgomery_reduce.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
42 src/mont/fp_montgomery_setup.o src/mul/fp_mul.o src/mul/fp_mul_2.o src/mul/fp_mul_2d.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
43 src/mul/fp_mul_comba.o src/mul/fp_mul_comba_12.o src/mul/fp_mul_comba_17.o src/mul/fp_mul_comba_20.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 src/mul/fp_mul_comba_24.o src/mul/fp_mul_comba_28.o src/mul/fp_mul_comba_3.o src/mul/fp_mul_comba_32.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 src/mul/fp_mul_comba_4.o src/mul/fp_mul_comba_48.o src/mul/fp_mul_comba_6.o src/mul/fp_mul_comba_64.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
46 src/mul/fp_mul_comba_7.o src/mul/fp_mul_comba_8.o src/mul/fp_mul_comba_9.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
47 src/mul/fp_mul_comba_small_set.o src/mul/fp_mul_d.o src/mul/fp_mulmod.o src/numtheory/fp_gcd.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
48 src/numtheory/fp_invmod.o src/numtheory/fp_isprime.o src/numtheory/fp_lcm.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
49 src/numtheory/fp_prime_miller_rabin.o src/numtheory/fp_prime_random_ex.o src/sqr/fp_sqr.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
50 src/sqr/fp_sqr_comba.o src/sqr/fp_sqr_comba_12.o src/sqr/fp_sqr_comba_17.o src/sqr/fp_sqr_comba_20.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
51 src/sqr/fp_sqr_comba_24.o src/sqr/fp_sqr_comba_28.o src/sqr/fp_sqr_comba_3.o src/sqr/fp_sqr_comba_32.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
52 src/sqr/fp_sqr_comba_4.o src/sqr/fp_sqr_comba_48.o src/sqr/fp_sqr_comba_6.o src/sqr/fp_sqr_comba_64.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
53 src/sqr/fp_sqr_comba_7.o src/sqr/fp_sqr_comba_8.o src/sqr/fp_sqr_comba_9.o \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
54 src/sqr/fp_sqr_comba_generic.o src/sqr/fp_sqr_comba_small_set.o src/sqr/fp_sqrmod.o
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
55
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
56 HEADERS=src/headers/tfm.h
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
57
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
58 #END_INS
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
59
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
60 ifndef LIBPATH
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
61 LIBPATH=/usr/lib
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
62 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
63
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
64 ifndef INCPATH
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
65 INCPATH=/usr/include
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
66 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
67
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
68 ifndef INSTALL_GROUP
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
69 GROUP=wheel
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
70 else
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
71 GROUP=$(INSTALL_GROUP)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
72 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
73
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
74 ifndef INSTALL_USER
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
75 USER=root
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
76 else
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
77 USER=$(INSTALL_USER)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
78 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
79
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
80 ifndef LIBNAME
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
81 LIBNAME=libtfm.a
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
82 endif
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
83
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
84 default: $(LIBNAME)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
85
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
86 $(LIBNAME): $(OBJECTS)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
87 $(AR) $(ARFLAGS) $@ $(OBJECTS)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
88 ranlib $@
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
89
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
90 install: $(LIBNAME)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
91 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
92 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
93 install -g $(GROUP) -o $(USER) $(LIBNAME) $(DESTDIR)$(LIBPATH)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
94 install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
95
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
96 mtest/mtest: mtest/mtest.o
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
97 cd mtest ; CFLAGS="$(CFLAGS) -I../" MAKE=${MAKE} ${MAKE} mtest
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
98
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
99 test: $(LIBNAME) demo/test.o mtest/mtest
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
100 $(CC) $(CFLAGS) demo/test.o $(LIBNAME) $(PROF) -o test
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
101
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
102 timing: $(LIBNAME) demo/test.o
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
103 $(CC) $(CFLAGS) demo/test.o $(LIBNAME) $(PROF) -o test
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
104
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
105 profiled:
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
106 CFLAGS="${CFLAGS} -fprofile-generate" MAKE=${MAKE} ${MAKE} timing
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
107 ./test
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
108 rm -f `find . -type f | grep "[.]o" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
109 rm -f `find . -type f | grep "[.]a" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
110 rm -f test
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
111 CFLAGS="${CFLAGS} -fprofile-use" MAKE=${MAKE} ${MAKE} timing
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
112
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
113 stest: $(LIBNAME) demo/stest.o
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
114 $(CC) $(CFLAGS) demo/stest.o $(LIBNAME) -o stest
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
115
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
116 rsatest: $(LIBNAME) demo/rsa.o
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
117 $(CC) $(CFLAGS) demo/rsa.o $(LIBNAME) -o rsatest
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
118
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
119 docdvi: tfm.tex
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
120 touch tfm.ind
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
121 latex tfm >/dev/null
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
122 latex tfm >/dev/null
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
123 makeindex tfm
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
124 latex tfm >/dev/null
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
125
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
126 docs: docdvi
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
127 latex tfm >/dev/null
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
128 dvipdf tfm
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
129 mv -f tfm.pdf doc
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
130
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
131 #This rule cleans the source tree of all compiled code, not including the pdf
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
132 #documentation.
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
133 clean:
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
134 rm -f `find . -type f | grep "[.]o" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
135 rm -f `find . -type f | grep "[.]lo" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
136 rm -f `find . -type f | grep "[.]a" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
137 rm -f `find . -type f | grep "[.]la" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
138 rm -f `find . -type f | grep "[.]obj" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
139 rm -f `find . -type f | grep "[.]lib" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
140 rm -f `find . -type f | grep "[.]exe" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
141 rm -f `find . -type f | grep "[.]gcda" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
142 rm -f `find . -type f | grep "[.]gcno" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
143 rm -f `find . -type f | grep "[.]il" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
144 rm -f `find . -type f | grep "[.]dyn" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
145 rm -f `find . -type f | grep "[.]dpi" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
146 rm -rf `find . -type d | grep "[.]libs" | xargs`
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
147 rm -f tfm.aux tfm.dvi tfm.idx tfm.ilg tfm.ind tfm.lof tfm.log tfm.toc test mtest/mtest
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
148 cd mtest ; MAKE=${MAKE} ${MAKE} clean
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
149
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
150 no_oops: clean
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
151 cd .. ; cvs commit
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
152 echo Scanning for scratch/dirty files
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
153 find . -type f | grep -v CVS | xargs -n 1 bash mess.sh
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
154
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
155 zipup: no_oops docs clean
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
156 perl gen.pl ; mv mpi.c pre_gen/ ; \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
157 cd .. ; rm -rf tfm* tomsfastmath-$(VERSION) ; mkdir tomsfastmath-$(VERSION) ; \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
158 cp -R ./tomsfastmath/* ./tomsfastmath-$(VERSION)/ ; \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
159 tar -c tomsfastmath-$(VERSION)/* | bzip2 -9vvc > tfm-$(VERSION).tar.bz2 ; \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
160 zip -9r tfm-$(VERSION).zip tomsfastmath-$(VERSION)/* ; \
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
161 mv -f tfm* ~ ; rm -rf tomsfastmath-$(VERSION)
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
162
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
163 # $Source: /cvs/libtom/tomsfastmath/makefile,v $
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
164 # $Revision: 1.38 $
ff5cc422ba40 Somehow Makefile.in went missing
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
165 # $Date: 2007/03/13 01:23:03 $