1142425Snectar# 2160814Ssimon# OpenSSL/crypto/cast/Makefile 3142425Snectar# 4142425Snectar 5142425SnectarDIR= cast 6142425SnectarTOP= ../.. 7142425SnectarCC= cc 8142425SnectarCPP= $(CC) -E 9142425SnectarINCLUDES= 10142425SnectarCFLAG=-g 11142425SnectarMAKEFILE= Makefile 12142425SnectarAR= ar r 13142425Snectar 14142425SnectarCAST_ENC=c_enc.o 15142425Snectar 16142425SnectarCFLAGS= $(INCLUDES) $(CFLAG) 17142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG) 18160814SsimonAFLAGS= $(ASFLAGS) 19142425Snectar 20142425SnectarGENERAL=Makefile 21142425SnectarTEST=casttest.c 22142425SnectarAPPS= 23142425Snectar 24142425SnectarLIB=$(TOP)/libcrypto.a 25142425SnectarLIBSRC=c_skey.c c_ecb.c c_enc.c c_cfb64.c c_ofb64.c 26142425SnectarLIBOBJ=c_skey.o c_ecb.o $(CAST_ENC) c_cfb64.o c_ofb64.o 27142425Snectar 28142425SnectarSRC= $(LIBSRC) 29142425Snectar 30142425SnectarEXHEADER= cast.h 31142425SnectarHEADER= cast_s.h cast_lcl.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 45238405Sjkimcast-586.s: asm/cast-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 46238405Sjkim $(PERL) asm/cast-586.pl $(PERLASM_SCHEME) $(CLAGS) $(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 56142425Snectarinstall: 57160814Ssimon @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 58160814Ssimon @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 59142425Snectar do \ 60142425Snectar (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 61142425Snectar chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 62142425Snectar done; 63142425Snectar 64142425Snectartags: 65142425Snectar ctags $(SRC) 66142425Snectar 67142425Snectartests: 68142425Snectar 69142425Snectarlint: 70142425Snectar lint -DLINT $(INCLUDES) $(SRC)>fluff 71142425Snectar 72284285Sjkimupdate: depend 73284285Sjkim 74142425Snectardepend: 75160814Ssimon @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 76142425Snectar $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 77142425Snectar 78142425Snectardclean: 79142425Snectar $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 80142425Snectar mv -f Makefile.new $(MAKEFILE) 81142425Snectar 82142425Snectarclean: 83160814Ssimon rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 84142425Snectar 85142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it. 86142425Snectar 87142425Snectarc_cfb64.o: ../../e_os.h ../../include/openssl/cast.h 88142425Snectarc_cfb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 89142425Snectarc_cfb64.o: c_cfb64.c cast_lcl.h 90142425Snectarc_ecb.o: ../../e_os.h ../../include/openssl/cast.h 91142425Snectarc_ecb.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 92142425Snectarc_ecb.o: ../../include/openssl/opensslv.h c_ecb.c cast_lcl.h 93142425Snectarc_enc.o: ../../e_os.h ../../include/openssl/cast.h 94142425Snectarc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 95142425Snectarc_enc.o: c_enc.c cast_lcl.h 96142425Snectarc_ofb64.o: ../../e_os.h ../../include/openssl/cast.h 97142425Snectarc_ofb64.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 98142425Snectarc_ofb64.o: c_ofb64.c cast_lcl.h 99142425Snectarc_skey.o: ../../e_os.h ../../include/openssl/cast.h 100194206Ssimonc_skey.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 101238405Sjkimc_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 102238405Sjkimc_skey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 103238405Sjkimc_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 104238405Sjkimc_skey.o: c_skey.c cast_lcl.h cast_s.h 105