~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to crypto/sha/Makefile.ssl

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Martin
  • Date: 2004-12-16 18:41:29 UTC
  • mto: (11.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041216184129-z7xjkul57mh1jiha
Tags: upstream-0.9.7e
ImportĀ upstreamĀ versionĀ 0.9.7e

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# SSLeay/crypto/sha/Makefile
3
 
#
4
 
 
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
 
MAKE=           make -f Makefile.ssl
15
 
MAKEDEPPROG=    makedepend
16
 
MAKEDEPEND=     $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
17
 
MAKEFILE=       Makefile.ssl
18
 
AR=             ar r
19
 
 
20
 
SHA1_ASM_OBJ=
21
 
 
22
 
CFLAGS= $(INCLUDES) $(CFLAG)
23
 
ASFLAGS= $(INCLUDES) $(ASFLAG)
24
 
 
25
 
GENERAL=Makefile
26
 
TEST=shatest.c sha1test.c
27
 
APPS=
28
 
 
29
 
LIB=$(TOP)/libcrypto.a
30
 
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
 
SRC= $(LIBSRC)
34
 
 
35
 
EXHEADER= sha.h
36
 
HEADER= sha_locl.h $(EXHEADER)
37
 
 
38
 
ALL=    $(GENERAL) $(SRC) $(HEADER)
39
 
 
40
 
top:
41
 
        (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
42
 
 
43
 
all:    lib
44
 
 
45
 
lib:    $(LIBOBJ)
46
 
        $(AR) $(LIB) $(LIBOBJ)
47
 
        $(RANLIB) $(LIB) || echo Never mind.
48
 
        @touch lib
49
 
 
50
 
# elf
51
 
asm/sx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl
52
 
        (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > sx86-elf.s)
53
 
 
54
 
# a.out
55
 
asm/sx86-out.o: asm/sx86unix.cpp
56
 
        $(CPP) -DOUT asm/sx86unix.cpp | as -o asm/sx86-out.o
57
 
 
58
 
# bsdi
59
 
asm/sx86bsdi.o: asm/sx86unix.cpp
60
 
        $(CPP) -DBSDI asm/sx86unix.cpp | sed 's/ :/:/' | as -o asm/sx86bsdi.o
61
 
 
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
 
        @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
71
 
        @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
72
 
        @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
73
 
 
74
 
install:
75
 
        @for i in $(EXHEADER) ; \
76
 
        do  \
77
 
        (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
78
 
        chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
79
 
        done;
80
 
 
81
 
tags:
82
 
        ctags $(SRC)
83
 
 
84
 
tests:
85
 
 
86
 
lint:
87
 
        lint -DLINT $(INCLUDES) $(SRC)>fluff
88
 
 
89
 
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
 
        mv -f Makefile.new $(MAKEFILE)
95
 
 
96
 
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.
100
 
 
101
 
sha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
102
 
sha1_one.o: ../../include/openssl/opensslconf.h
103
 
sha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
104
 
sha1_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
105
 
sha1_one.o: ../../include/openssl/symhacks.h sha1_one.c
106
 
sha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
107
 
sha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
108
 
sha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h
109
 
sha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
110
 
sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h
111
 
sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h
112
 
sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h
113
 
sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
114
 
sha_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
115
 
sha_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
116
 
sha_one.o: sha_one.c