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