Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7e / crypto / sha / Makefile
blob2cf0e68f32ba83efec8cfe2b9246d433b0e482ac
2 # SSLeay/crypto/sha/Makefile
5 DIR= sha
6 TOP= ../..
7 CC= cc
8 CPP= $(CC) -E
9 INCLUDES=
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
19 SHA1_ASM_OBJ=
21 CFLAGS= $(INCLUDES) $(CFLAG)
22 ASFLAGS= $(INCLUDES) $(ASFLAG)
24 GENERAL=Makefile
25 TEST=shatest.c sha1test.c
26 APPS=
28 LIB=$(TOP)/libcrypto.a
29 LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
30 LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
32 SRC= $(LIBSRC)
34 EXHEADER= sha.h
35 HEADER= sha_locl.h $(EXHEADER)
37 ALL= $(GENERAL) $(SRC) $(HEADER)
39 top:
40 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42 all: lib
44 lib: $(LIBOBJ)
45 $(AR) $(LIB) $(LIBOBJ)
46 $(RANLIB) $(LIB) || echo Never mind.
47 @touch lib
49 # elf
50 asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
51 (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
53 # a.out
54 asm/sx86-out.o: asm/sx86unix.cpp
55 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
57 # bsdi
58 asm/sx86bsdi.o: asm/sx86unix.cpp
59 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
61 asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
62 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
64 files:
65 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
67 links:
68 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
69 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
70 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
72 install:
73 @for i in $(EXHEADER) ; \
74 do \
75 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
76 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
77 done;
79 tags:
80 ctags $(SRC)
82 tests:
84 lint:
85 lint -DLINT $(INCLUDES) $(SRC)>fluff
87 depend:
88 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
90 dclean:
91 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
92 mv -f Makefile.new $(MAKEFILE)
94 clean:
95 rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
97 # DO NOT DELETE THIS LINE -- make depend depends on it.
99 sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
100 sha1_one.o: ../../include/openssl/opensslconf.h
101 sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
102 sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
103 sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c
104 sha1dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
105 sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
106 sha1dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
107 sha1dgst.o: ../../include/openssl/opensslconf.h
108 sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
109 sha1dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
110 sha1dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha1dgst.c
111 sha1dgst.o: sha_locl.h
112 sha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
113 sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
114 sha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h
115 sha_dgst.o: ../../include/openssl/opensslconf.h
116 sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
117 sha_dgst.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
118 sha_dgst.o: ../../include/openssl/symhacks.h ../md32_common.h sha_dgst.c
119 sha_dgst.o: sha_locl.h
120 sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
121 sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
122 sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
123 sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
124 sha_one.o: sha_one.c