Makefile revision 296341
1#
2# OpenSSL/crypto/blowfish/Makefile
3#
4
5DIR=	bf
6TOP=	../..
7CC=	cc
8CPP=	$(CC) -E
9INCLUDES=
10CFLAG=-g
11MAKEFILE=	Makefile
12AR=		ar r
13
14BF_ENC=		bf_enc.o
15
16CFLAGS= $(INCLUDES) $(CFLAG)
17ASFLAGS= $(INCLUDES) $(ASFLAG)
18AFLAGS= $(ASFLAGS)
19
20GENERAL=Makefile
21TEST=bftest.c
22APPS=
23
24LIB=$(TOP)/libcrypto.a
25LIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c 
26LIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o
27
28SRC= $(LIBSRC)
29
30EXHEADER= blowfish.h
31HEADER=	bf_pi.h bf_locl.h $(EXHEADER)
32
33ALL=    $(GENERAL) $(SRC) $(HEADER)
34
35top:
36	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
37
38all:	lib
39
40lib:	$(LIBOBJ)
41	$(AR) $(LIB) $(LIBOBJ)
42	$(RANLIB) $(LIB) || echo Never mind.
43	@touch lib
44
45bf-586.s:	asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
46	$(PERL) asm/bf-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@
47
48files:
49	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
50
51links:
52	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
53	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
54	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
55
56# We need to use force because 'install' matches 'INSTALL' on case
57# insensitive systems
58FRC.install:
59install: FRC.install
60	@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
61	@headerlist="$(EXHEADER)"; for i in $$headerlist ; \
62	do  \
63	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
64	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
65	done;
66
67tags:
68	ctags $(SRC)
69
70tests:
71
72lint:
73	lint -DLINT $(INCLUDES) $(SRC)>fluff
74
75update: depend
76
77depend:
78	@[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
79	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
80
81dclean:
82	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
83	mv -f Makefile.new $(MAKEFILE)
84
85clean:
86	rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
87
88# DO NOT DELETE THIS LINE -- make depend depends on it.
89
90bf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
91bf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h
92bf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
93bf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
94bf_ecb.o: bf_ecb.c bf_locl.h
95bf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
96bf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h
97bf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h
98bf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c
99bf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h
100bf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
101bf_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
102bf_skey.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
103bf_skey.o: ../../include/openssl/symhacks.h bf_locl.h bf_pi.h bf_skey.c
104