1142425Snectar#
2160814Ssimon# OpenSSL/crypto/blowfish/Makefile
3142425Snectar#
4142425Snectar
5142425SnectarDIR=	bf
6142425SnectarTOP=	../..
7142425SnectarCC=	cc
8142425SnectarCPP=	$(CC) -E
9142425SnectarINCLUDES=
10142425SnectarCFLAG=-g
11142425SnectarMAKEFILE=	Makefile
12142425SnectarAR=		ar r
13142425Snectar
14142425SnectarBF_ENC=		bf_enc.o
15142425Snectar
16142425SnectarCFLAGS= $(INCLUDES) $(CFLAG)
17142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG)
18160814SsimonAFLAGS= $(ASFLAGS)
19142425Snectar
20142425SnectarGENERAL=Makefile
21142425SnectarTEST=bftest.c
22142425SnectarAPPS=
23142425Snectar
24142425SnectarLIB=$(TOP)/libcrypto.a
25142425SnectarLIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c 
26142425SnectarLIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
27142425Snectar
28142425SnectarSRC= $(LIBSRC)
29142425Snectar
30142425SnectarEXHEADER= blowfish.h
31142425SnectarHEADER=	bf_pi.h bf_locl.h $(EXHEADER)
32142425Snectar
33142425SnectarALL=    $(GENERAL) $(SRC) $(HEADER)
34142425Snectar
35142425Snectartop:
36142425Snectar	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37142425Snectar
38142425Snectarall:	lib
39142425Snectar
40142425Snectarlib:	$(LIBOBJ)
41238405Sjkim	$(AR) $(LIB) $(LIBOBJ)
42142425Snectar	$(RANLIB) $(LIB) || echo Never mind.
43142425Snectar	@touch lib
44142425Snectar
45238405Sjkimbf-586.s:	asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
46238405Sjkim	$(PERL) asm/bf-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
47142425Snectar
48142425Snectarfiles:
49142425Snectar	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50142425Snectar
51142425Snectarlinks:
52142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54142425Snectar	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55142425Snectar
56160814Ssimon# We need to use force because 'install' matches 'INSTALL' on case
57160814Ssimon# insensitive systems
58160814SsimonFRC.install:
59160814Ssimoninstall: FRC.install
60160814Ssimon	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
61160814Ssimon	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
62142425Snectar	do  \
63142425Snectar	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64142425Snectar	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65142425Snectar	done;
66142425Snectar
67142425Snectartags:
68142425Snectar	ctags $(SRC)
69142425Snectar
70142425Snectartests:
71142425Snectar
72142425Snectarlint:
73142425Snectar	lint -DLINT $(INCLUDES) $(SRC)>fluff
74142425Snectar
75284283Sjkimupdate: depend
76284283Sjkim
77142425Snectardepend:
78160814Ssimon	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
79142425Snectar	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
80142425Snectar
81142425Snectardclean:
82142425Snectar	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
83142425Snectar	mv -f Makefile.new $(MAKEFILE)
84142425Snectar
85142425Snectarclean:
86160814Ssimon	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
87142425Snectar
88142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it.
89142425Snectar
90142425Snectarbf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
91142425Snectarbf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
92142425Snectarbf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
93142425Snectarbf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
94142425Snectarbf_ecb.o: bf_ecb.c bf_locl.h
95142425Snectarbf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
96142425Snectarbf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
97142425Snectarbf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
98142425Snectarbf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
99194206Ssimonbf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h
100238405Sjkimbf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
101238405Sjkimbf_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102238405Sjkimbf_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
103238405Sjkimbf_skey.o: ../../include/openssl/symhacks.h bf_locl.h bf_pi.h bf_skey.c
104