Makefile revision 142425
1# 2# crypto/ec/Makefile 3# 4 5DIR= ec 6TOP= ../.. 7CC= cc 8INCLUDES= -I.. -I$(TOP) -I../../include 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=ectest.c 22APPS= 23 24LIB=$(TOP)/libcrypto.a 25LIBSRC= ec_lib.c ecp_smpl.c ecp_mont.c ecp_recp.c ecp_nist.c ec_cvt.c ec_mult.c \ 26 ec_err.c 27 28LIBOBJ= ec_lib.o ecp_smpl.o ecp_mont.o ecp_recp.o ecp_nist.o ec_cvt.o ec_mult.o \ 29 ec_err.o 30 31SRC= $(LIBSRC) 32 33EXHEADER= ec.h 34HEADER= ec_lcl.h $(EXHEADER) 35 36ALL= $(GENERAL) $(SRC) $(HEADER) 37 38top: 39 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 40 41all: lib 42 43lib: $(LIBOBJ) 44 $(AR) $(LIB) $(LIBOBJ) 45 $(RANLIB) $(LIB) || echo Never mind. 46 @touch lib 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 56install: 57 @for i in $(EXHEADER) ; \ 58 do \ 59 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 60 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 61 done; 62 63tags: 64 ctags $(SRC) 65 66tests: 67 68lint: 69 lint -DLINT $(INCLUDES) $(SRC)>fluff 70 71depend: 72 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 73 74dclean: 75 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 76 mv -f Makefile.new $(MAKEFILE) 77 78clean: 79 rm -f *.o */*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 80 81# DO NOT DELETE THIS LINE -- make depend depends on it. 82 83ec_cvt.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h 84ec_cvt.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h 85ec_cvt.o: ../../include/openssl/symhacks.h ec_cvt.c ec_lcl.h 86ec_err.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 87ec_err.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 88ec_err.o: ../../include/openssl/ec.h ../../include/openssl/err.h 89ec_err.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 90ec_err.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 91ec_err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 92ec_err.o: ec_err.c 93ec_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 94ec_lib.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 95ec_lib.o: ../../include/openssl/ec.h ../../include/openssl/err.h 96ec_lib.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 97ec_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 98ec_lib.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 99ec_lib.o: ec_lcl.h ec_lib.c 100ec_mult.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 101ec_mult.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 102ec_mult.o: ../../include/openssl/ec.h ../../include/openssl/err.h 103ec_mult.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 104ec_mult.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 105ec_mult.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 106ec_mult.o: ec_lcl.h ec_mult.c 107ecp_mont.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 108ecp_mont.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 109ecp_mont.o: ../../include/openssl/ec.h ../../include/openssl/err.h 110ecp_mont.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 111ecp_mont.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 112ecp_mont.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 113ecp_mont.o: ec_lcl.h ecp_mont.c 114ecp_nist.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h 115ecp_nist.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h 116ecp_nist.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_nist.c 117ecp_recp.o: ../../include/openssl/bn.h ../../include/openssl/e_os2.h 118ecp_recp.o: ../../include/openssl/ec.h ../../include/openssl/opensslconf.h 119ecp_recp.o: ../../include/openssl/symhacks.h ec_lcl.h ecp_recp.c 120ecp_smpl.o: ../../include/openssl/bio.h ../../include/openssl/bn.h 121ecp_smpl.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 122ecp_smpl.o: ../../include/openssl/ec.h ../../include/openssl/err.h 123ecp_smpl.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 124ecp_smpl.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 125ecp_smpl.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 126ecp_smpl.o: ec_lcl.h ecp_smpl.c 127