1#
2# SSLeay/crypto/idea/Makefile
3#
4
5DIR=	idea
6TOP=	../..
7CC=	cc
8INCLUDES=
9CFLAG=-g
10INSTALL_PREFIX=
11OPENSSLDIR=     /usr/local/ssl
12INSTALLTOP=/usr/local/ssl
13MAKE=		make -f Makefile.ssl
14MAKEDEPPROG=	makedepend
15MAKEDEPEND=	$(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
16MAKEFILE=	Makefile.ssl
17AR=		ar r
18
19CFLAGS= $(INCLUDES) $(CFLAG)
20
21GENERAL=Makefile
22TEST=ideatest.c
23APPS=
24
25LIB=$(TOP)/libcrypto.a
26LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c
27LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o
28
29SRC= $(LIBSRC)
30
31EXHEADER= idea.h
32HEADER=	idea_lcl.h $(EXHEADER)
33
34ALL=    $(GENERAL) $(SRC) $(HEADER)
35
36top:
37	(cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
38
39all:	lib
40
41lib:	$(LIBOBJ)
42	$(AR) $(LIB) $(LIBOBJ)
43	$(RANLIB) $(LIB) || echo Never mind.
44	@touch lib
45
46files:
47	$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
48
49links:
50	@sh $(TOP)/util/point.sh Makefile.ssl Makefile
51	@$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
52	@$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
53	@$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
54
55install:
56	@for i in $(EXHEADER) ; \
57	do  \
58	(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
59	chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
60	done;
61
62tags:
63	ctags $(SRC)
64
65tests:
66
67lint:
68	lint -DLINT $(INCLUDES) $(SRC)>fluff
69
70depend:
71	$(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
72
73dclean:
74	$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
75	mv -f Makefile.new $(MAKEFILE)
76
77clean:
78	rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
79
80# DO NOT DELETE THIS LINE -- make depend depends on it.
81
82i_cbc.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
83i_cbc.o: i_cbc.c idea_lcl.h
84i_cfb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
85i_cfb64.o: i_cfb64.c idea_lcl.h
86i_ecb.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
87i_ecb.o: ../../include/openssl/opensslv.h i_ecb.c idea_lcl.h
88i_ofb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
89i_ofb64.o: i_ofb64.c idea_lcl.h
90i_skey.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h
91i_skey.o: i_skey.c idea_lcl.h
92