summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bf/Makefile')
-rw-r--r--src/lib/libcrypto/bf/Makefile45
1 files changed, 18 insertions, 27 deletions
diff --git a/src/lib/libcrypto/bf/Makefile b/src/lib/libcrypto/bf/Makefile
index 42e2c050f8..8441954a8d 100644
--- a/src/lib/libcrypto/bf/Makefile
+++ b/src/lib/libcrypto/bf/Makefile
@@ -8,11 +8,6 @@ CC= cc
8CPP= $(CC) -E 8CPP= $(CC) -E
9INCLUDES= 9INCLUDES=
10CFLAG=-g 10CFLAG=-g
11INSTALL_PREFIX=
12OPENSSLDIR= /usr/local/ssl
13INSTALLTOP=/usr/local/ssl
14MAKEDEPPROG= makedepend
15MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE= Makefile 11MAKEFILE= Makefile
17AR= ar r 12AR= ar r
18 13
@@ -22,6 +17,7 @@ BF_ENC= bf_enc.o
22 17
23CFLAGS= $(INCLUDES) $(CFLAG) 18CFLAGS= $(INCLUDES) $(CFLAG)
24ASFLAGS= $(INCLUDES) $(ASFLAG) 19ASFLAGS= $(INCLUDES) $(ASFLAG)
20AFLAGS= $(ASFLAGS)
25 21
26GENERAL=Makefile 22GENERAL=Makefile
27TEST=bftest.c 23TEST=bftest.c
@@ -48,20 +44,15 @@ lib: $(LIBOBJ)
48 $(RANLIB) $(LIB) || echo Never mind. 44 $(RANLIB) $(LIB) || echo Never mind.
49 @touch lib 45 @touch lib
50 46
51# elf 47# ELF
52asm/bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 48bx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
53 (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > bx86-elf.s) 49 (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@)
54 50# COFF
51bx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
52 (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@)
55# a.out 53# a.out
56asm/bx86-out.o: asm/bx86unix.cpp 54bx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
57 $(CPP) -DOUT asm/bx86unix.cpp | as -o asm/bx86-out.o 55 (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@)
58
59# bsdi
60asm/bx86bsdi.o: asm/bx86unix.cpp
61 $(CPP) -DBSDI asm/bx86unix.cpp | sed 's/ :/:/' | as -o asm/bx86bsdi.o
62
63asm/bx86unix.cpp: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
64 (cd asm; $(PERL) bf-586.pl cpp $(PROCESSOR) >bx86unix.cpp)
65 56
66files: 57files:
67 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 58 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
@@ -71,9 +62,11 @@ links:
71 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 62 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
72 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 63 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
73 64
74install: installs 65# We need to use force because 'install' matches 'INSTALL' on case
75 66# insensitive systems
76installs: 67FRC.install:
68install: FRC.install
69 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
77 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 70 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
78 do \ 71 do \
79 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 72 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
@@ -89,6 +82,7 @@ lint:
89 lint -DLINT $(INCLUDES) $(SRC)>fluff 82 lint -DLINT $(INCLUDES) $(SRC)>fluff
90 83
91depend: 84depend:
85 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
92 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 86 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
93 87
94dclean: 88dclean:
@@ -96,7 +90,7 @@ dclean:
96 mv -f Makefile.new $(MAKEFILE) 90 mv -f Makefile.new $(MAKEFILE)
97 91
98clean: 92clean:
99 rm -f asm/bx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 93 rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
100 94
101# DO NOT DELETE THIS LINE -- make depend depends on it. 95# DO NOT DELETE THIS LINE -- make depend depends on it.
102 96
@@ -109,8 +103,5 @@ bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
109bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h 103bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
110bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h 104bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
111bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c 105bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
112bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h 106bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
113bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h 107bf_skey.o: ../../include/openssl/opensslconf.h bf_locl.h bf_pi.h bf_skey.c
114bf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
115bf_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
116bf_skey.o: ../../include/openssl/symhacks.h bf_locl.h bf_pi.h bf_skey.c