|
|
1.1.1.5 ! root 1: # ! 2: # Copyright (c) TrueCrypt Foundation. All rights reserved. ! 3: # ! 4: # Covered by the TrueCrypt License 2.2 the full text of which is contained ! 5: # in the file License.txt included in TrueCrypt binary and source code ! 6: # distribution packages. ! 7: # 1.1 root 8: 9: ifndef KERNEL_SRC 10: KERNEL_SRC := /usr/src/linux 11: endif 12: 13: TC_COMMON := ../../Common 14: TC_CRYPTO := ../../Crypto 15: 16: ifneq ($(MAKECMDGOALS),clean) 17: ifdef TC_BASE 18: -include $(TC_BASE)/Linux/Common/.platform 19: endif 20: endif 21: 22: ifdef NO_WARNINGS 23: EXTRA_CFLAGS += -w 24: else 25: EXTRA_CFLAGS += -Wno-strict-prototypes 26: endif 1.1.1.4 root 27: # Do not enable strict aliasing 28: EXTRA_CFLAGS += -fno-strict-aliasing 1.1 root 29: EXTRA_CFLAGS += $(TYPES) 1.1.1.5 ! root 30: EXTRA_CFLAGS += -DBOOL=int -DTRUE=1 -DFALSE=0 1.1 root 31: EXTRA_CFLAGS += -DLINUX_DRIVER 32: EXTRA_CFLAGS += -I$(KERNEL_SRC)/drivers/md 33: EXTRA_CFLAGS += -I$(TC_BASE)/Crypto 34: EXTRA_CFLAGS += -I$(TC_BASE)/Common 1.1.1.5 ! root 35: EXTRA_CFLAGS += -I$(TC_BASE) 1.1 root 36: 37: OBJS := $(TC_CRYPTO)/Aescrypt.o 38: OBJS += $(TC_CRYPTO)/Aeskey.o 39: OBJS += $(TC_CRYPTO)/Aestab.o 40: OBJS += $(TC_CRYPTO)/Bf_ecb.o 41: OBJS += $(TC_CRYPTO)/Bf_enc.o 42: OBJS += $(TC_CRYPTO)/Bf_skey.o 43: OBJS += $(TC_CRYPTO)/C_ecb.o 44: OBJS += $(TC_CRYPTO)/C_enc.o 45: OBJS += $(TC_CRYPTO)/C_skey.o 46: OBJS += $(TC_CRYPTO)/Des.o 47: OBJS += $(TC_CRYPTO)/Des_enc.o 48: OBJS += $(TC_CRYPTO)/Ecb3_enc.o 49: OBJS += $(TC_CRYPTO)/Serpent.o 50: OBJS += $(TC_CRYPTO)/Set_key.o 51: OBJS += $(TC_CRYPTO)/Twofish.o 52: OBJS += $(TC_COMMON)/Crc.o 53: OBJS += $(TC_COMMON)/Crypto.o 54: OBJS += $(TC_COMMON)/Endian.o 1.1.1.2 root 55: OBJS += $(TC_COMMON)/GfMul.o 1.1 root 56: OBJS += $(TC_COMMON)/Tests.o 57: OBJS += Dm-target.o 58: 59: truecrypt-objs := $(OBJS) 60: obj-m := truecrypt.o 61: 1.1.1.5 ! root 62: USER_OBJS_PRESENT := ../.user-objs ! 63: USER_OBJS_CLEAN := ../.kernel-objs 1.1 root 64: 1.1.1.5 ! root 65: .PHONY: clean install truecrypt ! 66: ! 67: truecrypt: $(USER_OBJS_CLEAN) platform 1.1 root 68: @$(MAKE) TC_BASE=$(PWD)/../.. -C $(KERNEL_SRC) SUBDIRS=$(PWD) M=$(PWD) modules 69: 1.1.1.3 root 70: CMN := ../../Linux/Common 71: 72: platform: $(CMN)/.platform 73: 74: $(CMN)/.platform: $(CMN)/Platform.c 75: @$(CC) -o $(CMN)/platform $< 76: @$(CMN)/platform >$(CMN)/.platform 1.1 root 77: 1.1.1.5 ! root 78: $(USER_OBJS_CLEAN): ! 79: @rm -f $(OBJS) $(USER_OBJS_PRESENT) ! 80: @>$(USER_OBJS_CLEAN) 1.1 root 81: 82: clean: 83: -rm -f $(OBJS) ../Common/.platform ../Common/platform 84: $(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) M=$(PWD) clean 85: 86: install: truecrypt 87: $(MAKE) -C $(KERNEL_SRC) SUBDIRS=$(PWD) M=$(PWD) modules_install 88: depmod -a
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.