# Makefile.am - main makefile for WinPT # Copyright (C) 2005 g10 Code GmbH # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ## Process this file with automake to produce Makefile.in bin_PROGRAMS = WinPT EXTRA_DIST = versioninfo.rc.in StringBuffer.h AM_CPPFLAGS = -I$(top_srcdir)/Include \ -I$(top_srcdir)/Gnupg -I$(top_srcdir)/PTD \ -DWIN32 -D_WINDOWS -D_MBCS # Stack protector sometimes causes crashes and this is disabled by now # -fstack-protector-all AM_CFLAGS = -fexceptions $(GPGME_CFLAGS) AM_CXXFLAGS = -fexceptions $(GPGME_CFLAGS) # To enable ASLR and DEP (data execution prevention) we use # -Wl,--nxcompat -Wl,--dynamicbase AM_LDFLAGS = -Wl,--nxcompat -Wl,--dynamicbase -mwindows resource_files = \ resource.h \ WinPTRes.rc \ versioninfo.rc dialog_files = \ wptAboutDlgs.cpp \ wptCardDlg.cpp \ wptClipDecryptDlg.cpp \ wptClipEditDlg.cpp \ wptClipEncryptDlg.cpp \ wptClipImportDlg.cpp \ wptClipSignDlg.cpp \ wptClipSignEncDlg.cpp \ wptClipVerifyDlg.cpp \ wptCommonDlg.cpp \ wptDateDlg.cpp \ wptFileManagerDlg.cpp \ wptFileSaveDlg.cpp \ wptFileStatDlg.cpp \ wptFileVerifyDlg.cpp \ wptFirstRunDlg.cpp \ wptGPGOptDlg.cpp \ wptGPGPrefsDlg.cpp \ wptKeyCacheDlg.cpp \ wptKeyEditDlgs.cpp \ wptKeyEditOwnertrustDlg.cpp \ wptKeyeditSetPrefDlg.cpp \ wptKeygenCBDlg.cpp \ wptKeygenDlg.cpp \ wptKeyImportStatusDlg.cpp \ wptKeyManagerDlg.cpp \ wptKeyPropsDlg.cpp \ wptKeyRevokeDlg.cpp \ wptKeyRevokersDlg.cpp \ wptKeyserverDlg.cpp \ wptKeyserverSearchDlg.cpp \ wptKeysigDlg.cpp \ wptKeysignDlg.cpp \ wptOwnertrustDlg.cpp \ wptPassphraseDlg.cpp \ wptPINDlg.cpp \ wptPreferencesDlg.cpp \ wptProgressDlg.cpp \ wptProxySettingsDlg.cpp \ wptTextInputDlg.cpp \ wptSigTreeDlg.cpp code_files = \ WinPT.cpp \ StringBuffer.cpp \ wptJPG.cpp \ wptBalloonPop.cpp \ wptCardManager.cpp \ wptCardPCSC.cpp \ wptCurrWnd.cpp \ wptErrors.cpp \ wptFileManager.cpp \ wptGPG.cpp \ wptGPGME.cpp \ wptGPGParser.cpp \ wptHotkey.cpp \ wptHTTP.cpp \ wptImagelist.cpp \ wptImportList.cpp \ wptKeylist.cpp \ wptKeyManager.cpp \ wptKeyserver.cpp \ wptListView.cpp \ wptMainProc.cpp \ wptMAPI.cpp \ wptNLS.cpp \ wptPassCache.cpp \ wptPassphraseCB.cpp \ wptRegistry.cpp \ wptSigList.cpp \ wptSymEnc.cpp \ wptTrayPop.cpp \ wptUTF8.cpp \ wptVerifyList.cpp \ wptW32API.cpp \ wptGPGUtil.cpp \ wptCardEdit.cpp \ wptCardEditCB.cpp \ wptKeyEdit.cpp \ wptKeyEditCB.cpp \ wptFileCBS.cpp \ wptKeyCache.cpp \ wptUtil.cpp \ wptClipboard.cpp \ wptGPGMEData.cpp \ wptGPGMEWrapper.cpp \ wptSafeEditCtrl.cpp \ wptMisc.c WinPT_SOURCES = $(resource_files) $(dialog_files) $(code_files) WinPT_LDADD = WinPTRes.o -L../Gnupg\ -lgnupg ../PTD/PTD.dll \ $(GPGME_LIBS) $(W32LIBS) \ -lcomctl32 -lkernel32 -luser32 -lcomdlg32 -ladvapi32 \ -lshell32 -lgdi32 -lversion -lole32 -loleaut32 \ -luuid -lssp WinPTRes.o: $(resource_files) .rc.o: $(WINDRES) -I $(srcdir) -I . -I $(top_srcdir)/Ico \ -I $(top_srcdir)/icons `test -f '$<' || echo '$(srcdir)/'`$< $@