Put the dependencies back.
[openssl.git] / crypto / bf / Makefile.ssl
1 #
2 # SSLeay/crypto/blowfish/Makefile
3 #
4
5 DIR=    bf
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=
10 CFLAG=-g
11 INSTALLTOP=/usr/local/ssl
12 MAKE=           make -f Makefile.ssl
13 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
14 MAKEFILE=       Makefile.ssl
15 AR=             ar r
16
17 BF_ENC=         bf_enc.o
18 # or use
19 #DES_ENC=       bx86-elf.o
20
21 CFLAGS= $(INCLUDES) $(CFLAG)
22
23 GENERAL=Makefile
24 TEST=bftest.c
25 APPS=
26
27 LIB=$(TOP)/libcrypto.a
28 LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c 
29 LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
30
31 SRC= $(LIBSRC)
32
33 EXHEADER= blowfish.h
34 HEADER= bf_pi.h bf_locl.h $(EXHEADER)
35
36 ALL=    $(GENERAL) $(SRC) $(HEADER)
37
38 top:
39         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
40
41 all:    lib
42
43 lib:    $(LIBOBJ)
44         $(AR) $(LIB) $(LIBOBJ)
45         sh $(TOP)/util/ranlib.sh $(LIB)
46         @touch lib
47
48 # elf
49 asm/bx86-elf.o: asm/bx86unix.cpp
50         $(CPP) -DELF asm/bx86unix.cpp | as -o asm/bx86-elf.o
51
52 # solaris
53 asm/bx86-sol.o: asm/bx86unix.cpp
54         $(CC) -E -DSOL asm/bx86unix.cpp | sed 's/^#.*//' > asm/bx86-sol.s
55         as -o asm/bx86-sol.o asm/bx86-sol.s
56         rm -f asm/bx86-sol.s
57
58 # a.out
59 asm/bx86-out.o: asm/bx86unix.cpp
60         $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o
61
62 # bsdi
63 asm/bx86bsdi.o: asm/bx86unix.cpp
64         $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
65
66 asm/bx86unix.cpp:
67         (cd asm; perl bf-586.pl cpp >bx86unix.cpp)
68
69 files:
70         perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
71
72 links:
73         @$(TOP)/util/point.sh Makefile.ssl Makefile
74         @$(TOP)/util/point.sh ../../doc/blowfish.doc blowfish.doc
75         @$(TOP)/util/mklink.sh ../../include $(EXHEADER)
76         @$(TOP)/util/mklink.sh ../../test $(TEST)
77         @$(TOP)/util/mklink.sh ../../apps $(APPS)
78
79 install:
80         @for i in $(EXHEADER) ; \
81         do  \
82         (cp $$i $(INSTALLTOP)/include/$$i; \
83         chmod 644 $(INSTALLTOP)/include/$$i ); \
84         done;
85
86 tags:
87         ctags $(SRC)
88
89 tests:
90
91 lint:
92         lint -DLINT $(INCLUDES) $(SRC)>fluff
93
94 depend:
95         $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC)
96
97 dclean:
98         perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
99         mv -f Makefile.new $(MAKEFILE)
100
101 clean:
102         rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
103
104 errors:
105
106 # DO NOT DELETE THIS LINE -- make depend depends on it.
107
108 bf_cfb64.o: bf_locl.h blowfish.h
109 bf_ecb.o: bf_locl.h blowfish.h
110 bf_enc.o: bf_locl.h blowfish.h
111 bf_ofb64.o: bf_locl.h blowfish.h
112 bf_skey.o: bf_locl.h bf_pi.h blowfish.h