]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/sha/Makefile.ssl
Support INSTALL_PREFIX for packagers.
[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
e5f3045f
BM
10INSTALL_PREFIX=
11OPENSSLDIR= /usr/local/ssl
d02b48c6 12INSTALLTOP=/usr/local/ssl
58964a49 13MAKE= make -f Makefile.ssl
8039257d 14MAKEDEPEND= $(TOP)/util/domd $(TOP)
58964a49
RE
15MAKEFILE= Makefile.ssl
16AR= ar r
17
18SHA1_ASM_OBJ=
d02b48c6
RE
19
20CFLAGS= $(INCLUDES) $(CFLAG)
21
22GENERAL=Makefile
23TEST=shatest.c sha1test.c
24APPS=
25
26LIB=$(TOP)/libcrypto.a
27LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
58964a49 28LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
d02b48c6
RE
29
30SRC= $(LIBSRC)
31
32EXHEADER= sha.h
58964a49 33HEADER= sha_locl.h $(EXHEADER)
d02b48c6
RE
34
35ALL= $(GENERAL) $(SRC) $(HEADER)
36
37top:
38 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
39
58964a49 40all: lib
d02b48c6 41
58964a49 42lib: $(LIBOBJ)
d02b48c6 43 $(AR) $(LIB) $(LIBOBJ)
99aab161 44 $(RANLIB) $(LIB)
d02b48c6
RE
45 @touch lib
46
58964a49
RE
47# elf
48asm/sx86-elf.o: asm/sx86unix.cpp
49 $(CPP) -DELF asm/sx86unix.cpp | as -o asm/sx86-elf.o
50
51# solaris
52asm/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
58asm/sx86-out.o: asm/sx86unix.cpp
59 $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
60
61# bsdi
62asm/sx86bsdi.o: asm/sx86unix.cpp
dfeab068 63 $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
58964a49
RE
64
65asm/sx86unix.cpp:
99aab161 66 (cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
58964a49 67
d02b48c6 68files:
99aab161 69 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
d02b48c6
RE
70
71links:
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
77install:
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
84tags:
85 ctags $(SRC)
86
87tests:
88
89lint:
90 lint -DLINT $(INCLUDES) $(SRC)>fluff
91
92depend:
f5d7a031 93 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
d02b48c6
RE
94
95dclean:
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
99clean:
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
104sha1_one.o: ../../include/openssl/sha.h
105sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
106sha1dgst.o: sha_locl.h
107sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
108sha_dgst.o: sha_locl.h
109sha_one.o: ../../include/openssl/sha.h