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

📄 makefile

📁 Fast and transparent file system and swap encryption package for linux. No source code changes to li
💻
📖 第 1 页 / 共 2 页
字号:
	cd $(LS) && make SUBDIRS=$(TD)/tmp-d-kbuild modules_install $(OD2)ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -eq 260 -a "$(SUBLEVEL)0" -lt 170 ]; then echo y; fi),y)	cd $(LS) && make SUBDIRS=$(TD) modules Q='@cd $(TD) && if [ "$$@" = "modules" ]; then make old-k26-depmod; fi; exit; # ' $(OD2)endifendififeq ($(BUILD_LOOP),y)	ln -s tmp-d-kbuild/loop.ko .endififeq ($(EXTRA_CIPHERS),y)	ln -s tmp-d-kbuild/loop_twofish.ko tmp-d-kbuild/loop_serpent.ko tmp-d-kbuild/loop_blowfish.ko .endif	syncelse	cd $(LS) && make SUBDIRS=$(TD) modules	syncendif# 2.6 kernels older than 2.6.17 do not run depmod in "modules_install" stage,# but above "make modules Q=..." hack calls this target so we can run depmod here.old-k26-depmod:ifeq ($(RUNDM),y)	$(DEPMOD) -a $(DMOPTS)endif# build stuff after this line is for 2.4 and older kernels onlyMLIST:=ifeq ($(BUILD_LOOP),y)	MLIST += loop.oendififeq ($(EXTRA_CIPHERS),y)ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -ge 220 ]; then echo y; fi),y)	MLIST += loop_twofish.o loop_serpent.o loop_blowfish.oendifendifmodules: clean $(MLIST)ifeq ($(MODINST),y)ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -ge 240 ]; then echo y; fi),y)	rm -f $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE_clean)/kernel/drivers/block/loop.oendif	mkdir -p $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE_clean)/blockifneq "$(strip $(MLIST))" ""	cp -p $(MLIST) $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE_clean)/blockendififeq ($(RUNDM),y)	$(DEPMOD) -a $(DMOPTS)endifendifloop.o: patched-loop.o glue.o $(AES_OBJ_CODE) $(MD5_OBJ_CODE)	$(LD) $(LF) patched-loop.o glue.o $(AES_OBJ_CODE) $(MD5_OBJ_CODE) -o loop.opatched-loop.o:	rm -f patched-loop.[ch]ifeq ($(shell if [ "$(VERSION)$(PATCHLEVEL)0" -ge 240 ]; then echo y; fi),y)	cp $(PREPATCHED) patched-loop.celse	cp $(LS)/drivers/block/loop.c patched-loop.c	@echo "*** BEGINNING OF SECTION TO IGNORE PATCH ERRORS ***"	patch -p0 -l -f --dry-run < $(PATCHNAME) || cp $(ORIGNAME) patched-loop.c	@echo "*** END OF SECTION TO IGNORE PATCH ERRORS ***"	patch -p0 -l -f < $(PATCHNAME)endif	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=patched_loop -DEXPORT_SYMTAB -c patched-loop.c -o patched-loop.oglue.o: glue.c aes.h md5.h	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=glue -c glue.c -o glue.oaes.o: aes.c aes.h	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=aes -DDATA_ALWAYS_ALIGNED=1 -c aes.c -o aes.oaes-x86.o: aes-x86.S	$(CC) $(AFLAGS) -c aes-x86.S -o aes-x86.oaes-amd64.o: aes-amd64.S	$(CC) $(AFLAGS) -c aes-amd64.S -o aes-amd64.omd5.o: md5.c md5.h	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=md5 -c md5.c -o md5.omd5-x86.o: md5-x86.S	$(CC) $(AFLAGS) -c md5-x86.S -o md5-x86.omd5-amd64.o: md5-amd64.S	$(CC) $(AFLAGS) -c md5-amd64.S -o md5-amd64.oloop_twofish.o: loop_twofish.c	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=loop_twofish -c loop_twofish.c -o loop_twofish.oloop_serpent.o: loop_serpent.c	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=loop_serpent -c loop_serpent.c -o loop_serpent.oloop_blowfish.o: loop_blowfish.c	$(CC) $(CFLAGS) $(EF) -DKBUILD_BASENAME=loop_blowfish -c loop_blowfish.c -o loop_blowfish.oclean:	rm -f *.o *.ko *.orig *.rej patched-loop.[ch] test-file[1234]	rm -f -r test-dir1 tmp-d-kbuild# tests can be run after loop.o and losetup are compiled and installedTLD:=/dev/loop7TEST_GPG_TYPES:=yTEST_UNHASHED_AES_TYPES:=yTEST_PARTITION_TO_TRASH:=noneTEST_LE_BLOWFISH_TYPES:=ntests:	@if /sbin/losetup $(TLD) >/dev/null 2>&1; then echo "ERROR: Loop device $(TLD) appears to be in use. You can override"; echo "default test device by adding TLD=/dev/loop0 parameter to make command."; exit 1; fi	dd if=/dev/zero of=test-file1 bs=1024 count=33	cp test-file1 test-file3	echo 09876543210987654321 | /sbin/losetup -p 0 -e AES128 $(TLD) test-file3	dd if=/dev/zero of=$(TLD) bs=1024 count=33 conv=notrunc	/sbin/losetup -d $(TLD)	make test-part2 PAR="-e XOR" MD=d28220a1737763260f6e0109f141814a TF=test-file1 PSW=12345678901234567890	make test-part2 PAR= MD=0b08ceeb8b609b0885471ba25a23f5a5 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES128" MD=7c1cfd4fdd0d7cc847dd0942a2d48e48 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES192" MD=51c91bcc04ee2a4ca00310b519b3228c TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256" MD=1bf92ee337b653cdb32838047dec00fc TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256 -H rmd160" MD=c85eb59da18876ae71ebd838675c6ef4 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256 -C 10" MD=dadad48a6d3d9b9914199626ed7b710c TF=test-file1 PSW=12345678901234567890ifeq ($(TEST_GPG_TYPES),y)	mkdir test-dir1	make test-part2 PAR="-e AES128 -K gpgkey1.asc -G test-dir1" MD=fa5c9a84bc8f6257830c3cbe60294c69 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES192 -K gpgkey1.asc -G test-dir1" MD=ddec9544a36100156aef353ec2bf9740 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256 -K gpgkey1.asc -G test-dir1" MD=cb38b603f96f0deac1891d423983d69c TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES128 -K gpgkey2.asc -G test-dir1" MD=f9825b79873f5c439ae9371c1a929a6c TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES192 -K gpgkey2.asc -G test-dir1" MD=489991b779213f60219f09c575c08247 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256 -K gpgkey2.asc -G test-dir1" MD=2a1d0d3fce83fbe5f3edcca95fbab3b7 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES128 -K gpgkey3.asc -G test-dir1" MD=fabe7422f534820838dfd4571ba14ade TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES192 -K gpgkey3.asc -G test-dir1" MD=3eadc976525f9df7e18d56676ec730c8 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e AES256 -K gpgkey3.asc -G test-dir1" MD=3be488a60dd77bcab9fbeba4a428c3d5 TF=test-file1 PSW=12345678901234567890endififeq ($(TEST_UNHASHED_AES_TYPES),y)	make test-part2 PAR="-e AES -H unhashed1" MD=293b09053055af7ca5235dc6a5bc0b74 TF=test-file1 PSW=1234567890123456789012345678901	make test-part2 PAR="-e AES -H unhashed1" MD=6b157917570250ef4370bf9acae49279 TF=test-file1 PSW=12345678901234567890123456789012	make test-part2 PAR="-e AES -H unhashed1" MD=6b157917570250ef4370bf9acae49279 TF=test-file1 PSW=123456789012345678901234567890123456789012	make test-part2 PAR="-e AES -H unhashed1" MD=e12fd55fbae9fc0e03517593e253e239 TF=test-file1 PSW=1234567890123456789012345678901234567890123endififneq ($(TEST_PARTITION_TO_TRASH),none)	make test-part2 PAR="-e AES128" MD=7c1cfd4fdd0d7cc847dd0942a2d48e48 TF=$(TEST_PARTITION_TO_TRASH) PSW=12345678901234567890	make test-part2 PAR= MD=0b08ceeb8b609b0885471ba25a23f5a5 TF=$(TEST_PARTITION_TO_TRASH) PSW=12345678901234567890endififeq ($(EXTRA_CIPHERS),y)	/sbin/modprobe loop_twofish	make test-part2 PAR="-e twofish128" MD=763ebf26964b3202e4740ced21018f19 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish192" MD=6d5868395e2bf9de5b5bc9e036646061 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish256" MD=65332bb73af9ae564d452a21e053f1c5 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish128 -I 1" MD=1a814ea93ec65bf0a321177c8f2afbb0 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish192 -I 1" MD=941c708664436917cfa2301aac900164 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish256 -I 1" MD=5c4ca27adacce34b22d4ffdad9086309 TF=test-file1 PSW=12345678901234567890	/sbin/modprobe loop_serpent	make test-part2 PAR="-e serpent128" MD=7d7bc9de37b30179a164e7f9e9361557 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent192" MD=5c7623e041530f6647ae0b72a78c41fd TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent256" MD=31851a69091fc7681bfb8bbea4663f3f TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent128 -I 2" MD=54bf141d4571bae5b954cd34df09e9a9 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent192 -I 2" MD=e48ce972d02749284ae018749821e425 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent256 -I 2" MD=260a96d831cfa4c89975327cea217e07 TF=test-file1 PSW=12345678901234567890	/sbin/modprobe loop_blowfish	make test-part2 PAR="-e blowfish128" MD=0decbfdab73dea75b7bf14afbc3181b9 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish192" MD=031669b257da3e6dc9cf4aba140ef1ad TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish256" MD=c7ed54673dedc02a1d30abe4ebec2753 TF=test-file1 PSW=12345678901234567890ifeq ($(TEST_LE_BLOWFISH_TYPES),y)	# these md5 sums can only be produced on little endian boxes	make test-part2 PAR="-e blowfish128 -I 1" MD=22c8593065df1250306bfed05c0b486a TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish192 -I 1" MD=31c964f6e830f74a02a90905aa8efb2c TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish256 -I 1" MD=74ada888670d7278be00eb133feae2f5 TF=test-file1 PSW=12345678901234567890endififeq ($(TEST_GPG_TYPES),y)	make test-part2 PAR="-e twofish128 -K gpgkey1.asc -G test-dir1" MD=ddf13c7d8e98e2e811c909521dc14509 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish192 -K gpgkey1.asc -G test-dir1" MD=b6903ab3c6edcfb7d4304536ede5a7eb TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish256 -K gpgkey1.asc -G test-dir1" MD=da58adcd6354578dfda581239a1e045f TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish128 -K gpgkey2.asc -G test-dir1" MD=9ade662b89929151f9addadb1c50c473 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish192 -K gpgkey2.asc -G test-dir1" MD=6282fcb36094212a88ca4e2f3b1d5df3 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish256 -K gpgkey2.asc -G test-dir1" MD=c9cfd9ede40efc7786c4d20ee64da245 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish128 -K gpgkey3.asc -G test-dir1" MD=318869c1f51d86912d5784a1dc717b08 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish192 -K gpgkey3.asc -G test-dir1" MD=ffe7e80743edc5120be7bbcb8076b368 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e twofish256 -K gpgkey3.asc -G test-dir1" MD=345b77d2e3d318ba27214bbc8313ae0f TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent128 -K gpgkey1.asc -G test-dir1" MD=ac78f204e993e7141baaa30cd1e24221 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent192 -K gpgkey1.asc -G test-dir1" MD=c2a724f1973694cb898996dba3182c55 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent256 -K gpgkey1.asc -G test-dir1" MD=7c2d2f438129e1084cb41a622fb77ca4 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent128 -K gpgkey2.asc -G test-dir1" MD=b3992dd60a999a3cba18fad15492b8aa TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent192 -K gpgkey2.asc -G test-dir1" MD=e6cfc39e113943db1d03797dbf5cd5cd TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent256 -K gpgkey2.asc -G test-dir1" MD=f111de9256b5adf0f12fe1c75c261feb TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent128 -K gpgkey3.asc -G test-dir1" MD=96f3d5321b00f5bf25852627dc2d48a8 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent192 -K gpgkey3.asc -G test-dir1" MD=cb9729cb56a8358198dc61995b3a3cd2 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e serpent256 -K gpgkey3.asc -G test-dir1" MD=b4d9758d5d387fce43a1d436a01d3d68 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish128 -K gpgkey1.asc -G test-dir1" MD=d1cca0dc44e7af8a628a0978ac0fe26d TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish192 -K gpgkey1.asc -G test-dir1" MD=e5bbb6648b893d1e1db08423e8806b53 TF=test-file1 PSW=12345678901234567890	make test-part2 PAR="-e blowfish256 -K gpgkey1.asc -G test-dir1" MD=fdf78c384eb14215061f81e0c098b777 TF=test-file1 PSW=12345678901234567890endifendif	rm -f -r test-file[1234] test-dir1	@echo "*** Test results ok ***"test-part2:	echo $(PSW) | /sbin/losetup -p 0 $(PAR) $(TLD) $(TF)	dd if=test-file3 of=$(TLD) bs=1024 count=33 conv=notrunc	/sbin/losetup -d $(TLD)	echo $(PSW) | /sbin/losetup -p 0 $(PAR) $(TLD) $(TF)	dd if=$(TLD) of=test-file4 bs=33792 count=1	/sbin/losetup -d $(TLD)ifneq ($(TF),test-file1)	dd if=$(TF) of=test-file1 bs=33792 count=1endif	md5sum test-file1 >test-file2	echo "$(MD)  test-file1" | cmp test-file2 -	cmp test-file3 test-file4.PHONY: all old-k26-depmod clean tests test-part2

⌨️ 快捷键说明

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