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