Makefile.ssl 3.3 KB
Newer Older
1 2 3 4
#
# SSLeay/crypto/sha/Makefile
#

5 6 7
DIR=    sha
TOP=    ../..
CC=     cc
8
CPP=    $(CC) -E
9 10
INCLUDES=
CFLAG=-g
11 12
INSTALL_PREFIX=
OPENSSLDIR=     /usr/local/ssl
13
INSTALLTOP=/usr/local/ssl
14
MAKE=           make -f Makefile.ssl
15 16
MAKEDEPPROG=	makedepend
MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17 18 19 20
MAKEFILE=       Makefile.ssl
AR=             ar r

SHA1_ASM_OBJ=
21 22

CFLAGS= $(INCLUDES) $(CFLAG)
23
ASFLAGS= $(INCLUDES) $(ASFLAG)
24 25 26 27 28 29 30

GENERAL=Makefile
TEST=shatest.c sha1test.c
APPS=

LIB=$(TOP)/libcrypto.a
LIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c
31
LIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o $(SHA1_ASM_OBJ)
32 33 34 35

SRC= $(LIBSRC)

EXHEADER= sha.h
36
HEADER= sha_locl.h $(EXHEADER)
37 38 39 40 41 42

ALL=    $(GENERAL) $(SRC) $(HEADER)

top:
	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)

43
all:    lib
44

45
lib:    $(LIBOBJ)
46
	$(AR) $(LIB) $(LIBOBJ)
47
	$(RANLIB) $(LIB) || echo Never mind.
48 49
	@touch lib

50
# elf
51 52
asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
	(cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
53 54 55 56 57 58 59

# a.out
asm/sx86-out.o: asm/sx86unix.cpp
	$(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o

# bsdi
asm/sx86bsdi.o: asm/sx86unix.cpp
60
	$(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
61

B
Bodo Möller 已提交
62
asm/sx86unix.cpp: asm/sha1-586.pl ../perlasm/x86asm.pl
63
	(cd asm; $(PERL) sha1-586.pl cpp $(PROCESSOR) >sx86unix.cpp)
64

65
files:
66
	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
67 68

links:
69
	@sh $(TOP)/util/point.sh Makefile.ssl Makefile
70 71 72
	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
73 74 75 76

install:
	@for i in $(EXHEADER) ; \
	do  \
77 78
	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
79 80 81 82 83 84 85 86 87 88 89
	done;

tags:
	ctags $(SRC)

tests:

lint:
	lint -DLINT $(INCLUDES) $(SRC)>fluff

depend:
90
	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
91 92

dclean:
93
	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
94 95 96
	mv -f Makefile.new $(MAKEFILE)

clean:
97
	rm -f asm/sx86unix.cpp asm/*-elf.* *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff asm/*.o
98 99

# DO NOT DELETE THIS LINE -- make depend depends on it.
B
Ben Laurie 已提交
100

R
Richard Levitte 已提交
101 102
sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
sha1_one.o: ../../include/openssl/opensslconf.h
103 104 105 106
sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
sha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
sha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
sha1_one.o: sha1_one.c
107
sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
108
sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
R
Richard Levitte 已提交
109
sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
110
sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
B
Bodo Möller 已提交
111
sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
R
Richard Levitte 已提交
112
sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
R
Richard Levitte 已提交
113 114
sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
115 116 117
sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
sha_one.o: ../../include/openssl/symhacks.h sha_one.c