|
|
1.1 root 1: #
2: # Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3: #
4: # Governed by the TrueCrypt License 2.4 the full text of which is contained
5: # in the file License.txt included in TrueCrypt binary and source code
6: # distribution packages.
7: #
8:
9: OBJS :=
10: OBJS += Application.o
11: OBJS += CommandLineInterface.o
12: OBJS += FavoriteVolume.o
13: OBJS += FatalErrorHandler.o
14: OBJS += GraphicUserInterface.o
15: OBJS += LanguageStrings.o
16: OBJS += Hotkey.o
17: OBJS += StringFormatter.o
18: OBJS += TextUserInterface.o
19: OBJS += UserInterface.o
20: OBJS += UserPreferences.o
21: OBJS += VolumeHistory.o
22: OBJS += Xml.o
23: OBJS += Unix/Main.o
24: OBJS += Forms/AboutDialog.o
25: OBJS += Forms/ChangePasswordDialog.o
26: OBJS += Forms/DeviceSelectionDialog.o
27: OBJS += Forms/EncryptionOptionsWizardPage.o
28: OBJS += Forms/FavoriteVolumesDialog.o
29: OBJS += Forms/Forms.o
30: OBJS += Forms/InfoWizardPage.o
31: OBJS += Forms/KeyfilesDialog.o
32: OBJS += Forms/KeyfilesPanel.o
33: OBJS += Forms/LegalNoticesDialog.o
34: OBJS += Forms/MainFrame.o
35: OBJS += Forms/MountOptionsDialog.o
36: OBJS += Forms/PreferencesDialog.o
37: OBJS += Forms/ProgressWizardPage.o
38: OBJS += Forms/SelectDirectoryWizardPage.o
39: OBJS += Forms/SingleChoiceWizardPage.o
40: OBJS += Forms/VolumePasswordPanel.o
41: OBJS += Forms/VolumePropertiesDialog.o
42: OBJS += Forms/VolumeCreationIntroWizardPage.o
43: OBJS += Forms/VolumeCreationProgressWizardPage.o
44: OBJS += Forms/VolumeCreationWizard.o
45: OBJS += Forms/VolumeFormatOptionsWizardPage.o
46: OBJS += Forms/VolumeLocationWizardPage.o
47: OBJS += Forms/VolumePasswordWizardPage.o
48: OBJS += Forms/VolumeSizeWizardPage.o
49: OBJS += Forms/WizardFrame.o
50: OBJS += Resources.o
51:
52: PCH := SystemPrecompiled.h.gch
53:
54: RESOURCES :=
55: RESOURCES += ../License.txt.h
56: RESOURCES += ../Common/Language.xml.h
57: RESOURCES += ../Common/Textual_logo_96dpi.bmp.h
58: RESOURCES += ../Format/TrueCrypt_Wizard.bmp.h
59: RESOURCES += ../Mount/Drive_icon_96dpi.bmp.h
60: RESOURCES += ../Mount/Drive_icon_mask_96dpi.bmp.h
61: RESOURCES += ../Mount/Logo_96dpi.bmp.h
62:
63: CXXFLAGS += -I$(BASE_DIR)/Main
64:
65:
66: #------ wxWidgets configuration ------
67:
68: ifeq "$(TC_BUILD_CONFIG)" "Release"
69:
70: CXXFLAGS += $(shell $(WX_BUILD_DIR)/wx-config --unicode --static --cxxflags)
71: WX_LIBS = $(shell $(WX_BUILD_DIR)/wx-config --unicode --static --libs adv,core,base)
72:
73: else
74:
75: CXXFLAGS += $(shell $(WX_BUILD_DIR)/wx-config --debug --unicode --static --cxxflags)
76: WX_LIBS = $(shell $(WX_BUILD_DIR)/wx-config --debug --unicode --static --libs adv,core,base)
77:
78: endif
79:
80:
81: #------ FUSE configuration ------
82:
83: FUSE_LIBS = $(shell pkg-config fuse --libs)
84:
85:
86: #------ Executable ------
87:
88: TC_VERSION = $(shell grep VERSION_STRING ../Common/Tcdefs.h | head -n 1 | cut -d'"' -f 2)
89:
90: $(APPNAME): $(LIBS) $(OBJS)
91: @echo Linking $@
92: $(CXX) -o $(APPNAME) $(LFLAGS) $(OBJS) $(LIBS) $(FUSE_LIBS) $(WX_LIBS)
93:
94: ifeq "$(TC_BUILD_CONFIG)" "Release"
95: ifndef NOSTRIP
96: strip $(APPNAME)
97: endif
98:
99: ifndef ARCH
100: ./$(APPNAME) --text --test >/dev/null
101: endif
102: endif
103:
104: ifeq "$(PLATFORM)" "MacOSX"
105: mkdir -p $(APPNAME).app/Contents/MacOS $(APPNAME).app/Contents/Resources
106: -rm -f $(APPNAME).app/Contents/MacOS/$(APPNAME)
107:
108: ifeq "$(TC_BUILD_CONFIG)" "Release"
109: cp $(PWD)/Main/$(APPNAME) $(APPNAME).app/Contents/MacOS/$(APPNAME)
110: else
111: -ln -sf $(PWD)/Main/$(APPNAME) $(APPNAME).app/Contents/MacOS/$(APPNAME)
112: endif
113:
114: cp $(PWD)/Resources/Icons/TrueCrypt.icns $(APPNAME).app/Contents/Resources
1.1.1.2 ! root 115:
1.1 root 116: echo -n APPLTRUE >$(APPNAME).app/Contents/PkgInfo
1.1.1.2 ! root 117: sed -e 's/_VERSION_/$(patsubst %a,%.1,$(patsubst %b,%.2,$(TC_VERSION)))/' ../Build/Resources/MacOSX/Info.plist.xml >$(APPNAME).app/Contents/Info.plist
1.1 root 118: endif
119:
120: $(OBJS): $(PCH)
121:
122: Resources.o: $(RESOURCES)
123:
124: include $(BUILD_INC)/Makefile.inc
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.