summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/md5/Makefile.uni
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/md5/Makefile.uni')
-rw-r--r--src/lib/libcrypto/md5/Makefile.uni110
1 files changed, 0 insertions, 110 deletions
diff --git a/src/lib/libcrypto/md5/Makefile.uni b/src/lib/libcrypto/md5/Makefile.uni
index d21c72f3ea..e69de29bb2 100644
--- a/src/lib/libcrypto/md5/Makefile.uni
+++ b/src/lib/libcrypto/md5/Makefile.uni
@@ -1,110 +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= md5
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
24MD5_ASM_OBJ=
25
26CFLAGS= $(INCLUDES) $(CFLAG)
27
28GENERAL=Makefile
29TEST=md5test
30APPS=md5
31
32LIB=libmd5.a
33LIBSRC=md5_dgst.c md5_one.c
34LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
35
36SRC= $(LIBSRC)
37
38EXHEADER= md5.h
39HEADER= md5_locl.h $(EXHEADER)
40
41ALL= $(GENERAL) $(SRC) $(HEADER)
42
43all: $(LIB) $(TEST) $(APPS)
44
45$(LIB): $(LIBOBJ)
46 $(AR) $(LIB) $(LIBOBJ)
47 $(RANLIB) $(LIB)
48
49# elf
50asm/mx86-elf.o: asm/mx86unix.cpp
51 $(CPP) -DELF asm/mx86unix.cpp | as -o asm/mx86-elf.o
52
53# solaris
54asm/mx86-sol.o: asm/mx86unix.cpp
55 $(CC) -E -DSOL asm/mx86unix.cpp | sed 's/^#.*//' > asm/mx86-sol.s
56 as -o asm/mx86-sol.o asm/mx86-sol.s
57 rm -f asm/mx86-sol.s
58
59# a.out
60asm/mx86-out.o: asm/mx86unix.cpp
61 $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o
62
63# bsdi
64asm/mx86bsdi.o: asm/mx86unix.cpp
65 $(CPP) -DBSDI asm/mx86unix.cpp | as -o asm/mx86bsdi.o
66
67asm/mx86unix.cpp:
68 (cd asm; perl md5-586.pl cpp >mx86unix.cpp)
69
70test: $(TEST)
71 ./$(TEST)
72
73$(TEST): $(TEST).c $(LIB)
74 $(CC) -o $(TEST) $(CFLAGS) $(TEST).c $(LIB)
75
76$(APPS): $(APPS).c $(LIB)
77 $(CC) -o $(APPS) $(CFLAGS) $(APPS).c $(LIB)
78
79lint:
80 lint -DLINT $(INCLUDES) $(SRC)>fluff
81
82depend:
83 $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
84
85dclean:
86 perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
87 mv -f Makefile.new $(MAKEFILE)
88
89clean:
90 /bin/rm -f $(LIB) $(TEST) $(APPS) *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
91
92cc:
93 $(MAKE) MD5_ASM_OBJ="" CC="cc" CFLAG="-O" all
94
95gcc:
96 $(MAKE) MD5_ASM_OBJ="" CC="gcc" CFLAGS="-O3 -fomit-frame-pointer" all
97
98x86-elf:
99 $(MAKE) MD5_ASM_OBJ="asm/mx86-elf.o" CFLAG="-DELF -DMD5_ASM -DL_ENDIAN $(CFLAGS)" all
100
101x86-out:
102 $(MAKE) MD5_ASM_OBJ="asm/mx86-out.o" CFLAG="-DOUT -DMD5_ASM -DL_ENDIAN $(CFLAGS)" all
103
104x86-solaris:
105 $(MAKE) MD5_ASM_OBJ="asm/mx86-sol.o" CFLAG="-DSOL -DMD5_ASM -DL_ENDIAN $(CFLAGS)" all
106
107x86-bdsi:
108 $(MAKE) MD5_ASM_OBJ="asm/mx86-bdsi.o" CFLAG="-DBDSI -DMD5_ASM -DL_ENDIAN $(CFLAGS)" all
109
110# DO NOT DELETE THIS LINE -- make depend depends on it.