summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:27:03 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:27:03 +1200
commit3cb7fdea950dd2d0377f0d9ad8a88fcb7c48b842 (patch)
treecedbfc08a6bf0bd8cb6ec6c8d8dd94a4e715439b /Build
Initial mirror commitHEADmaster
Diffstat (limited to 'Build')
-rw-r--r--Build/Include/Makefile.inc58
-rw-r--r--Build/Resources/MacOSX/Info.plist.xml44
2 files changed, 102 insertions, 0 deletions
diff --git a/Build/Include/Makefile.inc b/Build/Include/Makefile.inc
new file mode 100644
index 0000000..39395e9
--- /dev/null
+++ b/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) $@
diff --git a/Build/Resources/MacOSX/Info.plist.xml b/Build/Resources/MacOSX/Info.plist.xml
new file mode 100644
index 0000000..29e114f
--- /dev/null
+++ b/Build/Resources/MacOSX/Info.plist.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+
+ <key>CFBundleIdentifier</key>
+ <string>org.TrueCryptFoundation.TrueCrypt</string>
+
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+
+ <key>CFBundleExecutable</key>
+ <string>TrueCrypt</string>
+
+ <key>CFBundleIconFile</key>
+ <string>TrueCrypt.icns</string>
+
+ <key>CFBundleName</key>
+ <string>TrueCrypt</string>
+
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+
+ <key>CFBundleSignature</key>
+ <string>TRUE</string>
+
+ <key>CFBundleVersion</key>
+ <string>0</string>
+
+ <key>CFBundleShortVersionString</key>
+ <string>_VERSION_</string>
+
+ <key>CFBundleLongVersionString</key>
+ <string>TrueCrypt _VERSION_</string>
+
+ <key>LSRequiresCarbon</key>
+ <true/>
+
+ <key>CSResourcesFileMapped</key>
+ <true/>
+</dict>
+</plist>