--- Linux/Cli/Makefile.orig 2006-06-27 06:18:32.000000000 +1000 +++ Linux/Cli/Makefile 2006-07-11 21:24:07.000000000 +1000 @@ -9,22 +9,13 @@ -include ../Common/.platform endif -ifdef NO_WARNINGS -CFLAGS := -w -else -CFLAGS := -W -endif CFLAGS += -I../../Crypto -I../../Common -I../Kernel CFLAGS += -D_cdecl="" -DBOOL=int -DTRUE=1 -DFALSE=0 -DMAX_PATH=260 CFLAGS += $(TYPES) -ifndef DEBUG # Do not enable strict aliasing -CFLAGS += -O2 -fno-strict-aliasing -else -CFLAGS += -ggdb +CFLAGS += -fno-strict-aliasing NO_STRIP := 1 -endif KERNEL_OBJS_F := ../.kernel-objs USER_OBJS_F := ../.user-objs @@ -60,11 +51,11 @@ OBJS += $(TC_COMMON)/Tests.o OBJS += Cli.o -%.o: %.c +%.o: %.c $(USER_OBJS_F) @echo Compiling $(Man/truecrypt.1 -objclean: - @if [ -f $(KERNEL_OBJS_F) ]; then rm -f ${OBJS} $(KERNEL_OBJS_F); fi +$(USER_OBJS_F): + @if [ -f $(KERNEL_OBJS_F) ]; then rm -f $(OBJS) $(KERNEL_OBJS_F); fi @>$(USER_OBJS_F) clean: - -rm -f truecrypt ${OBJS} *.d $(TC_COMMON)/*.d $(TC_CRYPTO)/*.d ../Common/platform ../Common/.platform + -rm -f truecrypt $(OBJS) *.d $(TC_COMMON)/*.d $(TC_CRYPTO)/*.d ../Common/platform ../Common/.platform + +.PHONY: man clean all