⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 斯坦福大学密码学家Boneh的基于身份的公钥密码系统
💻
字号:
#Makefile for IBE System#Ben Lynn##Copyright (C) 2001 Benjamin Lynn (blynn@cs.stanford.edu)##This file is part of the Stanford IBE system.##This program is free software; you can redistribute it and/or#modify it under the terms of the GNU General Public License#as published by the Free Software Foundation; either version 2#of the License, or (at your option) any later version.##This program is distributed in the hope that it will be useful,#but WITHOUT ANY WARRANTY; without even the implied warranty of#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#GNU General Public License for more details.##You should have received a copy of the GNU General Public License#along with this program; if not, write to the Free Software#Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.ALLFILES=*.c *.h Makefile README NEWS *.cnf *.html LICENSE firstmessage.txt instructions.txt ibe_help.txt testscript testscript2SOFTLINKFILES=benchmark.[ch] netstuff.[ch] mm.[ch] get_time.cifdef WIN32#for cross-compiling the Debian GNU/Linux mingw packageCC=i586-mingw32msvc-gccCXX=i586-mingw32msvc-g++SSL_I=/home/ben/cross/ssl/includeSSL_L=/home/ben/cross/ssl/libGMP_I=/home/ben/cross/gmp/includeGMP_L=/home/ben/cross/gmp/libWIN_LIBS=-lwsock32 -lgdi32CFLAGS= -DNDEBUG -pipe -O2 -mcpu=i686 -Wall -I$(GMP_I) -I$(SSL_I)BINARIES=gen.exe ibe.exe #pkghtml.exeBINDISTFILES=$(BINARIES) gen.cnf ibe.cnf ibe_help.txtOSNAME=win32else#for Linux#gcc-3.0 seems faster#CC=gcc-3.0SSL_I=/usr/local/ssl/includeSSL_L=/usr/local/ssl/libGMP_I=/usr/local/includeGMP_L=/usr/local/libCFLAGS= -DNDEBUG -pipe -O3 -mcpu=i686 -Wall -I$(GMP_I) -I$(SSL_I) \-fomit-frame-pointer -ffast-math -funroll-loopsBINARIES=gen pkghtml ibe infectTESTBINS=bs_test fp2_test curve_test ibe_test bls_test sig_test tortureOSNAME=linuxendififdef MMMMSUFFIX=trueOPT_LIBS=mm.oelseMMSUFFIX=voidendififdef BENCHMARKBMSUFFIX=trueOPT_LIBS=benchmark.o get_time.oelseBMSUFFIX=voidendifCRYPTO_LIBS=-L$(SSL_L) -lcryptoSSL_LIBS=-L$(SSL_L) -lssl -lcryptoGMP_LIBS=-L$(GMP_L) -lgmpIBE_LIBS=ibe_lib.o curve.o fp2.o crypto.o byte_string.o $(OPT_LIBS)FMT_LIBS=$(IBE_LIBS) format.oIBE_PROGS=encrypt.o decrypt.o request.o netstuff.o combine.o \    imratio.o get_time.o debug_ibe.o.PHONY: target test dist cleantarget: mm.h benchmark.h $(BINARIES)test: mm.h benchmark.h $(TESTBINS)netstuff.c : netstuff.$(OSNAME).c	-ln -s $^ $@netstuff.h : netstuff.$(OSNAME).h	-ln -s $^ $@byte_string.o : byte_string.c byte_string.hconfig.o : config.c config.hcrypto.o : crypto.c crypto.hifdef MMmm.c : mm.$(MMSUFFIX).c	-ln -s $^ $@mm.o : mm.c mm.hendifmm.h : mm.$(MMSUFFIX).h	-ln -s $^ $@ifdef BENCHMARKbenchmark.c : benchmark.$(BMSUFFIX).c	-ln -s $^ $@benchmark.o : benchmark.c benchmark.hget_time.o : get_time.c get_time.hendifbenchmark.h : benchmark.$(BMSUFFIX).h	-ln -s $^ $@get_time.c : get_time.$(OSNAME).c	-ln -s $^ $@ibe_lib.o: ibe_lib.c ibe.h version.h benchmark.hibe.o: ibe.c ibe.hdecrypt.o: decrypt.c ibe.hencrypt.o: encrypt.c ibe.hrequest.o: request.c ibe.h netstuff.hnetstuff.o : netstuff.c netstuff.hcombine.o : combine.c ibe.himratio.o : imratio.c ibe.hdebug_ibe.o: debug_ibe.c ibe.hformat.o: format.c format.hgen.o : gen.c ibe.hpkghtml.o : pkghtml.c ibe.h netstuff.hbls_test.o : bls_test.csig_test.o : sig_test.cbs_test.o : bs_test.cibe_test.o : ibe_test.c ibe.htorture.o : torture.ccurve_test.o : curve_test.cfp2_test.o : fp2_test.ccurve.o: curve.c curve.hfp2.o: fp2.c fp2.hgen: gen.o $(FMT_LIBS) config.o	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(CRYPTO_LIBS)bs_test: bs_test.o byte_string.o $(OPT_LIBS)	$(CC) $(CFLAGS) -o $@ $^bls_test: bls_test.o $(IBE_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(CRYPTO_LIBS)sig_test: sig_test.o $(IBE_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(CRYPTO_LIBS)torture: torture.o $(IBE_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(CRYPTO_LIBS) -lpthreadibe_test: ibe_test.o $(IBE_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(CRYPTO_LIBS)infect: infect.o $(FMT_LIBS) config.o	$(CC) $(CFLAGS) -o $@ $^ $(SSL_LIBS) $(GMP_LIBS)pkghtml: pkghtml.o $(FMT_LIBS) config.o netstuff.o	    $(CC) $(CFLAGS) -o $@ $^ -lpthread $(SSL_LIBS) $(GMP_LIBS)ibe: ibe.o $(FMT_LIBS) $(IBE_PROGS) config.o	$(CC) $(CFLAGS) -o $@ $^ $(SSL_LIBS) $(GMP_LIBS)fp2_test: fp2_test.o fp2.o $(OPT_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS)curve_test: curve_test.o curve.o fp2.o $(OPT_LIBS)	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS)gen.exe: gen.o $(FMT_LIBS) config.o	$(CC) $(CFLAGS) -o $@ $^ $(GMP_LIBS) $(SSL_LIBS) $(WIN_LIBS)ibe.exe: ibe.o $(FMT_LIBS) $(IBE_PROGS) config.o	$(CC) $(CFLAGS) -o $@ $^ $(SSL_LIBS) $(GMP_LIBS) $(WIN_LIBS)projname := $(shell awk '/IBE_VERSION/ { print $$3 }' version.h )dist: $(ALLFILES)	-rm -f $(SOFTLINKFILES)	-rm -rf $(projname)	mkdir $(projname)	cp -rl --parents $(ALLFILES) $(projname)	tar chfz $(projname).tgz $(projname)	-rm -rf $(projname)clean:	-rm -rf *.o $(BINARIES) $(TESTBINS) $(SOFTLINKFILES)ifdef WIN32bindist: $(BINDISTFILES)	zip $(projname)-win.zip $(BINDISTFILES)endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -