]>
Commit | Line | Data |
---|---|---|
d02b48c6 RE |
1 | # |
2 | # SSLeay/crypto/sha/Makefile | |
3 | # | |
4 | ||
58964a49 RE |
5 | DIR= sha |
6 | TOP= ../.. | |
7 | CC= cc | |
d02b48c6 RE |
8 | INCLUDES= |
9 | CFLAG=-g | |
e5f3045f BM |
10 | INSTALL_PREFIX= |
11 | OPENSSLDIR= /usr/local/ssl | |
d02b48c6 | 12 | INSTALLTOP=/usr/local/ssl |
58964a49 | 13 | MAKE= make -f Makefile.ssl |
8039257d | 14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) |
58964a49 RE |
15 | MAKEFILE= Makefile.ssl |
16 | AR= ar r | |
17 | ||
18 | SHA1_ASM_OBJ= | |
d02b48c6 RE |
19 | |
20 | CFLAGS= $(INCLUDES) $(CFLAG) | |
21 | ||
22 | GENERAL=Makefile | |
23 | TEST=shatest.c sha1test.c | |
24 | APPS= | |
25 | ||
26 | LIB=$(TOP)/libcrypto.a | |
27 | LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c | |
58964a49 | 28 | LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ) |
d02b48c6 RE |
29 | |
30 | SRC= $(LIBSRC) | |
31 | ||
32 | EXHEADER= sha.h | |
58964a49 | 33 | HEADER= sha_locl.h $(EXHEADER) |
d02b48c6 RE |
34 | |
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | |
36 | ||
37 | top: | |
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | |
39 | ||
58964a49 | 40 | all: lib |
d02b48c6 | 41 | |
58964a49 | 42 | lib: $(LIBOBJ) |
d02b48c6 | 43 | $(AR) $(LIB) $(LIBOBJ) |
99aab161 | 44 | $(RANLIB) $(LIB) |
d02b48c6 RE |
45 | @touch lib |
46 | ||
58964a49 RE |
47 | # elf |
48 | asm/sx86-elf.o: asm/sx86unix.cpp | |
49 | $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o | |
50 | ||
51 | # solaris | |
52 | asm/sx86-sol.o: asm/sx86unix.cpp | |
53 | $(CC) -E -DSOL asm/sx86unix.cpp | sed 's/^#.*//' > asm/sx86-sol.s | |
54 | as -o asm/sx86-sol.o asm/sx86-sol.s | |
55 | rm -f asm/sx86-sol.s | |
56 | ||
57 | # a.out | |
58 | asm/sx86-out.o: asm/sx86unix.cpp | |
59 | $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o | |
60 | ||
61 | # bsdi | |
62 | asm/sx86bsdi.o: asm/sx86unix.cpp | |
dfeab068 | 63 | $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o |
58964a49 RE |
64 | |
65 | asm/sx86unix.cpp: | |
99aab161 | 66 | (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp) |
58964a49 | 67 | |
d02b48c6 | 68 | files: |
99aab161 | 69 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
d02b48c6 RE |
70 | |
71 | links: | |
bb8f3c58 | 72 | @$(TOP)/util/point.sh Makefile.ssl Makefile |
1314c344 BM |
73 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) |
74 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | |
75 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | |
d02b48c6 RE |
76 | |
77 | install: | |
78 | @for i in $(EXHEADER) ; \ | |
79 | do \ | |
e5f3045f BM |
80 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ |
81 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | |
d02b48c6 RE |
82 | done; |
83 | ||
84 | tags: | |
85 | ctags $(SRC) | |
86 | ||
87 | tests: | |
88 | ||
89 | lint: | |
90 | lint -DLINT $(INCLUDES) $(SRC)>fluff | |
91 | ||
92 | depend: | |
f5d7a031 | 93 | $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) |
d02b48c6 RE |
94 | |
95 | dclean: | |
99aab161 | 96 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new |
d02b48c6 RE |
97 | mv -f Makefile.new $(MAKEFILE) |
98 | ||
99 | clean: | |
bb8f3c58 | 100 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o |
d02b48c6 | 101 | |
d02b48c6 | 102 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
6242bb9c | 103 | |
bf57da07 BM |
104 | sha1_one.o: ../../include/openssl/sha.h |
105 | sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | |
106 | sha1dgst.o: sha_locl.h | |
107 | sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h | |
108 | sha_dgst.o: sha_locl.h | |
109 | sha_one.o: ../../include/openssl/sha.h |