Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / openssl / crypto / md5 / Makefile
1 #
2 # SSLeay/crypto/md5/Makefile
3 #
4
5 DIR=    md5
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=-I.. -I$(TOP) -I../../include
10 CFLAG=-g
11 INSTALL_PREFIX=
12 OPENSSLDIR=     /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKEDEPPROG=    makedepend
15 MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16 MAKEFILE=       Makefile
17 AR=             ar r
18
19 MD5_ASM_OBJ=
20
21 CFLAGS= $(INCLUDES) $(CFLAG)
22 ASFLAGS= $(INCLUDES) $(ASFLAG)
23
24 GENERAL=Makefile
25 TEST=md5test.c
26 APPS=
27
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC=md5_dgst.c md5_one.c
30 LIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ)
31
32 SRC= $(LIBSRC)
33
34 EXHEADER= md5.h
35 HEADER= md5_locl.h $(EXHEADER)
36
37 ALL=    $(GENERAL) $(SRC) $(HEADER)
38
39 top:
40         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
41
42 all:    lib
43
44 lib:    $(LIBOBJ)
45         $(AR) $(LIB) $(LIBOBJ)
46         $(RANLIB) $(LIB) || echo Never mind.
47         @touch lib
48
49 # elf
50 asm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl
51         (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s)
52
53 # a.out
54 asm/mx86-out.o: asm/mx86unix.cpp
55         $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o
56
57 # bsdi
58 asm/mx86bsdi.o: asm/mx86unix.cpp
59         $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o
60
61 asm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl
62         (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp)
63
64 asm/md5-sparcv8plus.o: asm/md5-sparcv9.S
65         $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
66                 -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S
67
68 # Old GNU assembler doesn't understand V9 instructions, so we
69 # hire /usr/ccs/bin/as to do the job. Note that option is called
70 # *-gcc27, but even gcc 2>=8 users may experience similar problem
71 # if they didn't bother to upgrade GNU assembler. Such users should
72 # not choose this option, but be adviced to *remove* GNU assembler
73 # or upgrade it.
74 asm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S
75         $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \
76                 /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o
77
78 asm/md5-sparcv9.o: asm/md5-sparcv9.S
79         $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \
80                 -o asm/md5-sparcv9.o asm/md5-sparcv9.S
81
82 files:
83         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
84
85 links:
86         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
87         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
88         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
89
90 install:
91         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
92         do  \
93         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
94         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
95         done;
96
97 tags:
98         ctags $(SRC)
99
100 tests:
101
102 lint:
103         lint -DLINT $(INCLUDES) $(SRC)>fluff
104
105 depend:
106         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
107
108 dclean:
109         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
110         mv -f Makefile.new $(MAKEFILE)
111
112 clean:
113         rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
114
115 # DO NOT DELETE THIS LINE -- make depend depends on it.
116
117 md5_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
118 md5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
119 md5_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
120 md5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
121 md5_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
122 md5_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
123 md5_dgst.o: ../md32_common.h md5_dgst.c md5_locl.h
124 md5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
125 md5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h
126 md5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
127 md5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
128 md5_one.o: md5_one.c