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 13MAKEDEPPROG= makedepend 14MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) 15MAKEFILE= Makefile 16AR= ar r 17 18CFLAGS= $(INCLUDES) $(CFLAG) 19 20GENERAL=Makefile 21TEST=ideatest.c 22APPS= 23 24LIB=$(TOP)/libcrypto.a 25LIBSRC=i_cbc.c i_cfb64.c i_ofb64.c i_ecb.c i_skey.c 26LIBOBJ=i_cbc.o i_cfb64.o i_ofb64.o i_ecb.o i_skey.o 27 28SRC= $(LIBSRC) 29 30EXHEADER= idea.h 31HEADER= idea_lcl.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 45files: 46 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 47 48links: 49 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 50 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 51 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 52 53install: 54 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 55 do \ 56 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 57 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 58 done; 59 60tags: 61 ctags $(SRC) 62 63tests: 64 65lint: 66 lint -DLINT $(INCLUDES) $(SRC)>fluff 67 68depend: 69 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 70 71dclean: 72 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 73 mv -f Makefile.new $(MAKEFILE) 74 75clean: 76 rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 77 78# DO NOT DELETE THIS LINE -- make depend depends on it. 79 80i_cbc.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h 81i_cbc.o: i_cbc.c idea_lcl.h 82i_cfb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h 83i_cfb64.o: i_cfb64.c idea_lcl.h 84i_ecb.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h 85i_ecb.o: ../../include/openssl/opensslv.h i_ecb.c idea_lcl.h 86i_ofb64.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h 87i_ofb64.o: i_ofb64.c idea_lcl.h 88i_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 89i_skey.o: ../../include/openssl/idea.h ../../include/openssl/opensslconf.h 90i_skey.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 91i_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 92i_skey.o: i_skey.c idea_lcl.h 93