summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/rc4/Makefile.uni
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/rc4/Makefile.uni')
-rw-r--r--src/lib/libcrypto/rc4/Makefile.uni103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/lib/libcrypto/rc4/Makefile.uni b/src/lib/libcrypto/rc4/Makefile.uni
index 855d9e50f3..e69de29bb2 100644
--- a/src/lib/libcrypto/rc4/Makefile.uni
+++ b/src/lib/libcrypto/rc4/Makefile.uni
@@ -1,103 +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= rc4
11TOP= .
12CC= gcc
13CFLAG= -O3 -fomit-frame-pointer
14
15CPP= $(CC) -E
16INCLUDES=
17INSTALLTOP=/usr/local/lib
18MAKE= make
19MAKEDEPEND= makedepend
20MAKEFILE= Makefile.uni
21AR= ar r
22RANLIB= ranlib
23
24RC4_ENC=rc4_enc.o
25# or use
26#RC4_ENC=asm/rx86-elf.o
27#RC4_ENC=asm/rx86-out.o
28#RC4_ENC=asm/rx86-sol.o
29#RC4_ENC=asm/rx86bdsi.o
30
31CFLAGS= $(INCLUDES) $(CFLAG)
32
33GENERAL=Makefile
34TEST=rc4test
35APPS=rc4speed
36
37LIB=librc4.a
38LIBSRC=rc4_skey.c rc4_enc.c
39LIBOBJ=rc4_skey.o $(RC4_ENC)
40
41SRC= $(LIBSRC)
42
43EXHEADER= rc4.h
44HEADER= $(EXHEADER) rc4_locl.h
45
46ALL= $(GENERAL) $(SRC) $(HEADER)
47
48all: $(LIB) $(TEST) $(APPS)
49
50$(LIB): $(LIBOBJ)
51 $(AR) $(LIB) $(LIBOBJ)
52 $(RANLIB) $(LIB)
53
54# elf
55asm/rx86-elf.o: asm/rx86unix.cpp
56 $(CPP) -DELF asm/rx86unix.cpp | as -o asm/rx86-elf.o
57
58# solaris
59asm/rx86-sol.o: asm/rx86unix.cpp
60 $(CC) -E -DSOL asm/rx86unix.cpp | sed 's/^#.*//' > asm/rx86-sol.s
61 as -o asm/rx86-sol.o asm/rx86-sol.s
62 rm -f asm/rx86-sol.s
63
64# a.out
65asm/rx86-out.o: asm/rx86unix.cpp
66 $(CPP) -DOUT asm/rx86unix.cpp | as -o asm/rx86-out.o
67
68# bsdi
69asm/rx86bsdi.o: asm/rx86unix.cpp
70 $(CPP) -DBSDI asm/rx86unix.cpp | as -o asm/rx86bsdi.o
71
72asm/rx86unix.cpp:
73 (cd asm; perl rc4-586.pl cpp >rx86unix.cpp)
74
75test: $(TEST)
76 ./$(TEST)
77
78$(TEST): $(TEST).c $(LIB)
79 $(CC) -o $(TEST) $(CFLAGS) $(TEST).c $(LIB)
80
81$(APPS): $(APPS).c $(LIB)
82 $(CC) -o $(APPS) $(CFLAGS) $(APPS).c $(LIB)
83
84lint:
85 lint -DLINT $(INCLUDES) $(SRC)>fluff
86
87depend:
88 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
89
90dclean:
91 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92 mv -f Makefile.new $(MAKEFILE)
93
94clean:
95 /bin/rm -f $(LIB) $(TEST) $(APPS) *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
96
97cc:
98 $(MAKE) CC="cc" CFLAG="-O" all
99
100gcc:
101 $(MAKE) CC="gcc" CFLAGS="-O3 -fomit-frame-pointer" all
102
103# DO NOT DELETE THIS LINE -- make depend depends on it.