diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-05-31 18:44:53 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:18:59 +0100 |
commit | 7ffce028d04a6b13ef762e2b89c34b688e8ca59d (patch) | |
tree | eefedb6e94de5b26fa963675969490c641c29077 /src/Build/Include/Makefile.inc | |
parent | 97011f179cfd3dcd12446ef4ccb6964c8e52c3db (diff) | |
download | VeraCrypt-7ffce028d04a6b13ef762e2b89c34b688e8ca59d.tar.gz VeraCrypt-7ffce028d04a6b13ef762e2b89c34b688e8ca59d.zip |
Add TrueCrypt 7.1a MacOSX/Linux specific source files.
Diffstat (limited to 'src/Build/Include/Makefile.inc')
-rw-r--r-- | src/Build/Include/Makefile.inc | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/Build/Include/Makefile.inc b/src/Build/Include/Makefile.inc new file mode 100644 index 00000000..39395e95 --- /dev/null +++ b/src/Build/Include/Makefile.inc @@ -0,0 +1,58 @@ +# +# Copyright (c) 2008 TrueCrypt Developers Association. All rights reserved. +# +# Governed by the TrueCrypt License 3.0 the full text of which is contained in +# the file License.txt included in TrueCrypt binary and source code distribution +# packages. +# + +$(NAME): $(NAME).a + +clean: + @echo Cleaning $(NAME) + rm -f $(APPNAME) $(NAME).a $(OBJS) $(OBJS:.o=.d) *.gch + +%.o: %.c + @echo Compiling $(<F) + $(CC) $(CFLAGS) -c $< -o $@ + +%.o: %.cpp + @echo Compiling $(<F) + $(CXX) $(CXXFLAGS) -c $< -o $@ + +%.o: %.asm + @echo Assembling $(<F) + $(AS) $(ASFLAGS) -o $@ $< + + +# Precompiled headers +%.h.gch: %.h + @echo Precompiling $(<F) + $(CXX) $(CXXFLAGS) -g0 -c $< || (rm -f $(<F).gch && exit 1) + + +# Embedded files +OD_BIN := od -v -t u1 -A n +TR_SED_BIN := tr '\n' ' ' | tr -s ' ' ',' | sed -e 's/^,//g' -e 's/,$$/n/' | tr 'n' '\n' + +%.xml.h: %.xml + @echo Converting $(<F) + $(OD_BIN) $< | $(TR_SED_BIN) >$@ + +%.txt.h: %.txt + @echo Converting $(<F) + $(OD_BIN) $< | $(TR_SED_BIN) >$@ + +%.bmp.h: %.bmp + @echo Converting $(<F) + $(OD_BIN) $< | $(TR_SED_BIN) >$@ + + +# Dependencies +-include $(OBJS:.o=.d) + + +$(NAME).a: $(OBJS) + @echo Updating library $@ + $(AR) $(AFLAGS) -rcu $@ $(OBJS) + $(RANLIB) $@ |