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