summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bf/Makefile.uni
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bf/Makefile.uni')
-rw-r--r--src/lib/libcrypto/bf/Makefile.uni157
1 files changed, 0 insertions, 157 deletions
diff --git a/src/lib/libcrypto/bf/Makefile.uni b/src/lib/libcrypto/bf/Makefile.uni
index f67e5ca23b..e69de29bb2 100644
--- a/src/lib/libcrypto/bf/Makefile.uni
+++ b/src/lib/libcrypto/bf/Makefile.uni
@@ -1,157 +0,0 @@
1# Targets
2# make - twidle the options yourself :-)
3# make cc - standard cc options
4# make gcc - standard gcc options
5# make x86-elf - linux-elf etc
6# make x86-out - linux-a.out, FreeBSD etc
7# make x86-solaris
8# make x86-bdsi
9
10DIR= bf
11TOP= .
12# use BF_PTR2 for intel boxes,
13# BF_PTR for sparc and MIPS/SGI
14# use nothing for Alpha and HP.
15
16# There are 3 possible performance options, experiment :-)
17#OPTS= -DBF_PTR # usr for sparc and MIPS/SGI
18#OPTS= -DBF_PTR2 # use for pentium
19OPTS= # use for pentium pro, Alpha and HP
20
21MAKE=make -f Makefile
22#CC=cc
23#CFLAG= -O
24
25CC=gcc
26#CFLAG= -O4 -funroll-loops -fomit-frame-pointer
27CFLAG= -O3 -fomit-frame-pointer
28
29CFLAGS=$(OPTS) $(CFLAG)
30CPP=$(CC) -E
31AS=as
32RANLIB=ranlib
33
34# Assember version of bf_encrypt().
35BF_ENC=bf_enc.o # normal C version
36#BF_ENC=asm/bx86-elf.o # elf format x86
37#BF_ENC=asm/bx86-out.o # a.out format x86
38#BF_ENC=asm/bx86-sol.o # solaris format x86
39#BF_ENC=asm/bx86bsdi.o # bsdi format x86
40
41LIBDIR=/usr/local/lib
42BINDIR=/usr/local/bin
43INCDIR=/usr/local/include
44MANDIR=/usr/local/man
45MAN1=1
46MAN3=3
47SHELL=/bin/sh
48LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
49LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c
50
51GENERAL=Makefile Makefile.ssl Makefile.uni asm bf_locl.org README \
52 COPYRIGHT blowfish.doc INSTALL
53
54TESTING= bftest bfspeed bf_opts
55TESTING_SRC=bftest.c bfspeed.c bf_opts.c
56HEADERS=bf_locl.h blowfish.h bf_pi.h
57
58ALL= $(GENERAL) $(TESTING_SRC) $(LIBSRC) $(HEADERS)
59
60BLIB= libblowfish.a
61
62all: $(BLIB) $(TESTING)
63
64cc:
65 $(MAKE) CC=cc CFLAGS="-O $(OPTS) $(CFLAG)" all
66
67gcc:
68 $(MAKE) CC=gcc CFLAGS="-O3 -fomit-frame-pointer $(OPTS) $(CFLAG)" all
69
70x86-elf:
71 $(MAKE) BF_ENC='asm/bx86-elf.o' CC=$(CC) CFLAGS="-DELF $(OPTS) $(CFLAG)" all
72
73x86-out:
74 $(MAKE) BF_ENC='asm/bx86-out.o' CC=$(CC) CFLAGS="-DOUT $(OPTS) $(CFLAG)" all
75
76x86-solaris:
77 $(MAKE) BF_ENC='asm/bx86-sol.o' CC=$(CC) CFLAGS="-DSOL $(OPTS) $(CFLAG)" all
78
79x86-bsdi:
80 $(MAKE) BF_ENC='asm/bx86bsdi.o' CC=$(CC) CFLAGS="-DBSDI $(OPTS) $(CFLAG)" all
81
82# elf
83asm/bx86-elf.o: asm/bx86unix.cpp
84 $(CPP) -DELF asm/bx86unix.cpp | $(AS) -o asm/bx86-elf.o
85
86# solaris
87asm/bx86-sol.o: asm/bx86unix.cpp
88 $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s
89 as -o asm/bx86-sol.o asm/bx86-sol.s
90 rm -f asm/bx86-sol.s
91
92# a.out
93asm/bx86-out.o: asm/bx86unix.cpp
94 $(CPP) -DOUT asm/bx86unix.cpp | $(AS) -o asm/bx86-out.o
95
96# bsdi
97asm/bx86bsdi.o: asm/bx86unix.cpp
98 $(CPP) -DBSDI asm/bx86unix.cpp | $(AS) -o asm/bx86bsdi.o
99
100asm/bx86unix.cpp:
101 (cd asm; perl bf-586.pl cpp >bx86unix.cpp)
102
103test: all
104 ./bftest
105
106$(BLIB): $(LIBOBJ)
107 /bin/rm -f $(BLIB)
108 ar cr $(BLIB) $(LIBOBJ)
109 $(RANLIB) $(BLIB)
110
111bftest: bftest.o $(BLIB)
112 $(CC) $(CFLAGS) -o bftest bftest.o $(BLIB)
113
114bfspeed: bfspeed.o $(BLIB)
115 $(CC) $(CFLAGS) -o bfspeed bfspeed.o $(BLIB)
116
117bf_opts: bf_opts.o $(BLIB)
118 $(CC) $(CFLAGS) -o bf_opts bf_opts.o $(BLIB)
119
120tags:
121 ctags $(TESTING_SRC) $(LIBBF)
122
123tar:
124 tar chf libbf.tar $(ALL)
125
126shar:
127 shar $(ALL) >libbf.shar
128
129depend:
130 makedepend $(LIBBF) $(TESTING_SRC)
131
132clean:
133 /bin/rm -f *.o tags core $(TESTING) $(BLIB) .nfs* *.old *.bak asm/*.o
134
135dclean:
136 sed -e '/^# DO NOT DELETE THIS LINE/ q' Makefile >Makefile.new
137 mv -f Makefile.new Makefile
138
139# Eric is probably going to choke when he next looks at this --tjh
140install: $(BLIB)
141 if test $(INSTALLTOP); then \
142 echo SSL style install; \
143 cp $(BLIB) $(INSTALLTOP)/lib; \
144 $(RANLIB) $(BLIB); \
145 chmod 644 $(INSTALLTOP)/lib/$(BLIB); \
146 cp blowfish.h $(INSTALLTOP)/include; \
147 chmod 644 $(INSTALLTOP)/include/blowfish.h; \
148 else \
149 echo Standalone install; \
150 cp $(BLIB) $(LIBDIR)/$(BLIB); \
151 $(RANLIB) $(BLIB); \
152 chmod 644 $(LIBDIR)/$(BLIB); \
153 cp blowfish.h $(INCDIR)/blowfish.h; \
154 chmod 644 $(INCDIR)/blowfish.h; \
155 fi
156
157# DO NOT DELETE THIS LINE -- make depend depends on it.