Annotation of truecrypt/linux/cli/makefile, revision 1.1.1.4

1.1.1.4 ! root        1: # TrueCrypt Linux CLI Makefile
1.1       root        2: 
                      3: TC_COMMON := ../../Common
                      4: TC_CRYPTO := ../../Crypto
                      5: 
1.1.1.4 ! root        6: CC ?= gcc
1.1       root        7: 
                      8: ifneq ($(MAKECMDGOALS),clean)
                      9: -include ../Common/.platform
                     10: endif
                     11: 
                     12: ifdef NO_WARNINGS
                     13: CFLAGS := -w
                     14: else
                     15: CFLAGS := -W
                     16: endif
                     17: CFLAGS += -I../../Crypto -I../../Common -I../Kernel
                     18: CFLAGS += -D_cdecl="" -DBOOL=int -DTRUE=1 -DFALSE=0 -DMAX_PATH=260
                     19: CFLAGS += $(TYPES)
                     20: 
                     21: ifndef DEBUG
1.1.1.4 ! root       22: # Do not enable strict aliasing
1.1       root       23: CFLAGS += -O2 -fno-strict-aliasing
                     24: else
                     25: CFLAGS += -ggdb
1.1.1.4 ! root       26: NO_STRIP := 1
1.1       root       27: endif
                     28: 
                     29: KERNEL_OBJS_F := ../.kernel-objs
                     30: USER_OBJS_F := ../.user-objs
                     31: 
                     32: OBJS := $(TC_CRYPTO)/Aescrypt.o
                     33: OBJS += $(TC_CRYPTO)/Aeskey.o
                     34: OBJS += $(TC_CRYPTO)/Aestab.o
                     35: OBJS += $(TC_CRYPTO)/Bf_ecb.o
                     36: OBJS += $(TC_CRYPTO)/Bf_enc.o
                     37: OBJS += $(TC_CRYPTO)/Bf_skey.o
                     38: OBJS += $(TC_CRYPTO)/C_ecb.o
                     39: OBJS += $(TC_CRYPTO)/C_enc.o
                     40: OBJS += $(TC_CRYPTO)/C_skey.o
                     41: OBJS += $(TC_CRYPTO)/Des.o
                     42: OBJS += $(TC_CRYPTO)/Des_enc.o
                     43: OBJS += $(TC_CRYPTO)/Ecb3_enc.o
                     44: OBJS += $(TC_CRYPTO)/Rmd160.o
                     45: OBJS += $(TC_CRYPTO)/Serpent.o
                     46: OBJS += $(TC_CRYPTO)/Set_key.o
                     47: OBJS += $(TC_CRYPTO)/Sha1.o
                     48: OBJS += $(TC_CRYPTO)/Twofish.o
                     49: OBJS += $(TC_CRYPTO)/Whirlpool.o
                     50: OBJS += $(TC_COMMON)/Crc.o
                     51: OBJS += $(TC_COMMON)/Crypto.o
                     52: OBJS += $(TC_COMMON)/Endian.o
1.1.1.2   root       53: OBJS += $(TC_COMMON)/GfMul.o
1.1.1.3   root       54: OBJS += $(TC_COMMON)/Fat.o
                     55: OBJS += $(TC_COMMON)/Format.o
1.1       root       56: OBJS += $(TC_COMMON)/Keyfiles.o
                     57: OBJS += $(TC_COMMON)/Pkcs5.o
1.1.1.4 ! root       58: OBJS += $(TC_COMMON)/Random.o
1.1       root       59: OBJS += $(TC_COMMON)/Volumes.o
                     60: OBJS += $(TC_COMMON)/Tests.o
                     61: OBJS += Cli.o 
                     62: 
                     63: %.o: %.c
                     64:        @echo Compiling $(<F)
1.1.1.2   root       65:        @$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -MMD -o $@ -c $<
1.1       root       66: 
                     67: all: objclean truecrypt
                     68:        @echo Done.
                     69: 
                     70: ../Common/.platform: ../Common/Platform.c
                     71:        @$(CC) -o ../Common/platform $<
                     72:        @../Common/platform >../Common/.platform
                     73: 
1.1.1.2   root       74: -include $(OBJS:.o=.d)
1.1       root       75: 
                     76: truecrypt: $(OBJS)
1.1.1.2   root       77:        @echo Linking $@
                     78:        @$(CC) -o $@ $(OBJS)
1.1.1.4 ! root       79: ifndef NO_STRIP
1.1.1.2   root       80:        @strip $@
1.1       root       81: endif
                     82: 
                     83: man: truecrypt.1
                     84: 
                     85: truecrypt.1: objclean truecrypt
                     86:        help2man -N -i Man/help2man.inc ./truecrypt >Man/truecrypt.1
                     87:        
                     88: objclean:
                     89:        @if [ -f $(KERNEL_OBJS_F) ]; then rm -f ${OBJS} $(KERNEL_OBJS_F); fi
                     90:        @>$(USER_OBJS_F)
                     91: 
                     92: clean:
1.1.1.2   root       93:        -rm -f truecrypt ${OBJS} *.d $(TC_COMMON)/*.d $(TC_CRYPTO)/*.d ../Common/platform ../Common/.platform

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.