From d08d22cb5d75a32c9a9ffdd904affadf5b1bcf6f Mon Sep 17 00:00:00 2001 From: Chase Date: Wed, 23 Oct 2019 14:44:03 -0500 Subject: [PATCH] programs/dtmail: add automake files --- cde/programs/dtmail/Makefile.am | 3 + cde/programs/dtmail/MotifApp/Makefile.am | 58 +++++++++++++++ cde/programs/dtmail/dtmail/Makefile.am | 71 +++++++++++++++++++ cde/programs/dtmail/dtmailpr/Makefile.am | 51 +++++++++++++ .../dtmail/libDtMail/Common/Makefile.am | 63 ++++++++++++++++ cde/programs/dtmail/libDtMail/Makefile.am | 9 +++ cde/programs/dtmail/libDtMail/RFC/Makefile.am | 34 +++++++++ 7 files changed, 289 insertions(+) create mode 100644 cde/programs/dtmail/Makefile.am create mode 100644 cde/programs/dtmail/MotifApp/Makefile.am create mode 100644 cde/programs/dtmail/dtmail/Makefile.am create mode 100644 cde/programs/dtmail/dtmailpr/Makefile.am create mode 100644 cde/programs/dtmail/libDtMail/Common/Makefile.am create mode 100644 cde/programs/dtmail/libDtMail/Makefile.am create mode 100644 cde/programs/dtmail/libDtMail/RFC/Makefile.am diff --git a/cde/programs/dtmail/Makefile.am b/cde/programs/dtmail/Makefile.am new file mode 100644 index 00000000..a82b4edc --- /dev/null +++ b/cde/programs/dtmail/Makefile.am @@ -0,0 +1,3 @@ +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = libDtMail MotifApp dtmail dtmailpr diff --git a/cde/programs/dtmail/MotifApp/Makefile.am b/cde/programs/dtmail/MotifApp/Makefile.am new file mode 100644 index 00000000..1b9d7fd0 --- /dev/null +++ b/cde/programs/dtmail/MotifApp/Makefile.am @@ -0,0 +1,58 @@ +MAINTAINERCLEANFILES = Makefile.in + +noinst_LIBRARIES = libMotifApp.a + +libMotifApp_a_CXXFLAGS = -I../include/MotifApp -I../include -I../include/utils \ + $(TIRPCINC) +if SUN + + if USE_SPRO_V3 + libMotifApp_a_CXXFLAGS += -noex -xO0 -USPRO_V2 + if DEBUGTREE + libMotifApp_a_CXXFLAGS += -xsb + endif + endif + +libMotifApp_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2 + + if I386 + libMotifApp_a_CXXFLAGS += -DBIG_ENDIAN + endif + +endif + +if HPUX +libMotifApp_a_CXXFLAGS += -DUSE_SOCKSTREAM -DBIG_ENDIAN -DDO_ANONYMOUS_MAP \ + -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS +p \ + -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\" +endif + +if AIX +libMotifApp_a_CXXFLAGS += -DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H -DBIG_ENDIAN \ + -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP \ + -DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \ + -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\" +endif + +libMotifApp_a_SOURCES = Application.C AskFirstCmd.C \ + BasicComponent.C BusyPixmap.C \ + ButtonInterface.C Cmd.C \ + CmdInterface.C CmdList.C \ + DialogManager.C Help.C \ + IconifyCmd.C InfoDialogManager.C \ + InterruptibleCmd.C Main.C \ + MainWindow.C ManageCmd.C \ + MenuBar.C MenuWindow.C \ + MotifCmds.C NoUndoCmd.C \ + PixmapCycler.C PromptDialogManager.C \ + QuestionDialogManager.C QuitCmd.C \ + ScrollingList.C SelectFileCmd.C \ + ToggleButtonInterface.C UIComponent.C \ + UndoCmd.C WarnNoUndoCmd.C \ + WorkingDialogManager.C + +if SUN +clean:: + $(RM) -r .sb + $(RM) .make.state* +endif diff --git a/cde/programs/dtmail/dtmail/Makefile.am b/cde/programs/dtmail/dtmail/Makefile.am new file mode 100644 index 00000000..4cb9c430 --- /dev/null +++ b/cde/programs/dtmail/dtmail/Makefile.am @@ -0,0 +1,71 @@ +MAINTAINERCLEANFILES = Makefile.in + +bin_PROGRAMS = dtmail + +dtmail_CXXFLAGS = -I../include -I../include/MotifApp -I../include/utils \ + -I../include/DtMail -I../libDtMail/RFC -I$(x_includes) \ + $(TIRPCINC) -I$(srcdir)/lib -I../../dthelp -DRELEASE_NOTES \ + -DDTMAIL_TOOLTALK -DDTEDITOR + +dtmail_LDADD = ../libDtMail/libDtMail.a ../MotifApp/libMotifApp.a + +if SUN +dtmail_LDADD += -lw +if SUNPRODIR +SUNPRO_DIR = SUNPRODIR +else +SUNPRO_DIR = /opt/SUNWspro +endif +C++LIBPATH = -L$(SUNPRO_DIR)/lib + +if USE_SPRO_V3 +SPRO_V3_OPTIONS = -noex -USPRO_V2 +if DEBUGTREE +SPRO_V3_OPTIONS += -xsb +endif +else +EXTRA_CCOPTIONS += -DSPRO_V2 +endif + +EXTRA_C++OPTIONS = -xF +w $(SPRO_V3_OPTIONS) +EXTRA_CCOPTIONS = -xF -xstrconst -Xa -v +if USE_EDITRES +EXTRA_LIBRARIES = $(XMULIB) ExtraLibraries +endif +endif + + + +dtmail_SOURCES = AliasListUiItem.C AlternatesListUiItem.C \ + AntiCheckBoxUiItem.C AttachArea.C \ + Attachment.C CheckBoxUiItem.C \ + CheckForMailUiItem.C ComposeCmds.C \ + CustomListUiItem.C Dialog.C \ + DialogShell.C DmxMailbox.C \ + DmxMessage.C DmxPrintJob.C \ + DmxPrintOptions.C DmxPrintOutput.C \ + DmxPrintSetup.C DmxUtils.C \ + DtEditor.C DtMailEditor.C \ + DtMailGenDialog.C DtMailWDM.C \ + Editor.C EncryptedTextFieldUiItem.C \ + FindDialog.C Fonts.C \ + Icon.C IgnoreListUiItem.C \ + Image.C InboxTextFieldUiItem.C \ + IndexedOptionMenu.C IndexedOptionMenuUiItem.C \ + ListUiItem.C MailRcSource.C \ + MailRetrievalOptions.C MailSession.C \ + MoveMenuListUiItem.C MsgHndArray.C \ + MsgScrollingList.C NoOpCmd.C \ + OptCmd.C PasswordDialogManager.C \ + PropUi.C QueryDialogManager.C \ + RoamApp.C RoamCmds.C \ + RoamInterruptibleCmd.C RoamMenuWindow.C \ + ScaleUiItem.C SendMsgDialog.C \ + Sort.C SortCmd.C \ + SpinBoxUiItem.C StringTab.c \ + TemplateListUiItem.C TextFieldUiItem.C \ + Undelete.C ViewMsgDialog.C \ + WMSaveSession.C XmStrCollector.C \ + XmTextEditor.C XtArgCollector.C \ + dtb_utils.C options_stubs.C \ + options_ui.C options_util.C diff --git a/cde/programs/dtmail/dtmailpr/Makefile.am b/cde/programs/dtmail/dtmailpr/Makefile.am new file mode 100644 index 00000000..6b5305ef --- /dev/null +++ b/cde/programs/dtmail/dtmailpr/Makefile.am @@ -0,0 +1,51 @@ +MAINTAINERCLEANFILES = Makefile.in + +bin_PROGRAMS = dtmailpr + +dtmailpr_CXXFLAGS = -I../include -I../../dtcompat -I../../../. \ + -I$(srcdir)/lib $(TIRPCINC) + +dtmailpr_LDADD = ../libDtMail/libDtMail.a $(LIBPRINT) $(LIBHELP) $(LIBWIDGET) \ + $(LIBSVC) $(LIBTT) -lXm $(XTOOLLIB) ${X_LIBS} -lm + +if FREEBSD +dtmailpr_LDADD += -liconv +endif + +if AIX +dtmailpr_CXXFLAGS += -DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H \ + -DBIG_ENDIAN -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP \ + -DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \ + -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\" + +dtmailpr_LDADD += -ldl -liconv -lgen +endif + +if HPUX +dtmailpr_CXXFLAGS += -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER \ + -DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \ + -DMAIL_SPOOL_PATH=\"/var/mail/%s\" +endif + +if SUN + if SUNPRODIR + SUNPRO_DIR = /opt/SUNWspro + else + SUNPRO_DIR = SUNPRODIR +endif + if I386 + dtmailpr_CXXFLAGS += -DBIG_ENDIAN + endif + if USE_SPRO_V3 + dtmailpr_CXXFLAGS += -noex -USPRO_V2 + if DEBUGTREE + dtmailpr_CXXFLAGS += -xsb + endif + endif +dtmailpr_CXXFLAGS += -L$(SUNPRO_DIR)/lib -xstrconst -Xc -v -DMMAP_NORESERVE \ + -DSPRO_V2 +p +w +dtmailpr_LDADD += -Bstatic -lC -Bdynamic -lc -Bstatic -ldl -lgen -lm -lw \ + -lintl -lnsl +endif + +dtmailpr_SOURCES = main.C message.C mailbox.C utils.C diff --git a/cde/programs/dtmail/libDtMail/Common/Makefile.am b/cde/programs/dtmail/libDtMail/Common/Makefile.am new file mode 100644 index 00000000..bd830c2a --- /dev/null +++ b/cde/programs/dtmail/libDtMail/Common/Makefile.am @@ -0,0 +1,63 @@ +MAINTAINERCLEANFILES = Makefile.in + +noinst_LIBRARIES = libCommon.a + +libCommon_a_CXXFLAGS = -I../../include -I../../include/utils -I$(srcdir)/lib \ + $(TIRPCINC) -DDL_NOT_DYNAMIC + +if COMMENT +These are here in case we want to build as a shared library +DYNLIB_SRCS = DlDynamicLib.C +DYNLIB_DEFINES = -DDL_DYNAMIC_LIBS +endif + +if SUN +libCommon_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2 + if I386 + libCommon_a_CXXFLAGS += -DBIG_ENDIAN + endif +endif + +if HPUX +libCommon_a_CXXFLAGS += -DUSE_SOCKSTREAM -DBIG_ENDIAN -DDO_ANONYMOUS_MAP \ + -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \ + -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\" +endif + +if AIX +libCommon_a_CXXFLAGS += -DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H -DBIG_ENDIAN \ + -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP \ + -DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \ + -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\" +endif + +libCommon_a_SOURCES = APOPServer.C \ + AUTOServer.C \ + Buffer.C \ + DetermineFileLocality.C \ + DtMailBodyPart.C \ + DtMailEnvelope.C \ + DtMailError.C \ + DtMailMailBox.C \ + DtMailMessage.C \ + DtMailRc.C \ + DtMailServer.C \ + DtMailTransport.C \ + DtMailValuesBuiltin.C \ + DtMailXtProc.C \ + DtVirtArray.C \ + DynamicLib.C \ + FileShare.C \ + HashTable.C \ + IMAPServer.C \ + IO.C \ + LanguagePortability.C \ + ObjectKey.C \ + NotDynamic.C + POP2Server.C \ + POP3Server.C \ + Process.C \ + Session.C \ + Threads.C \ + md5.C \ + str_utils.C diff --git a/cde/programs/dtmail/libDtMail/Makefile.am b/cde/programs/dtmail/libDtMail/Makefile.am new file mode 100644 index 00000000..bfbb0e7e --- /dev/null +++ b/cde/programs/dtmail/libDtMail/Makefile.am @@ -0,0 +1,9 @@ +MAINTAINERCLEANFILES = Makefile.in + +SUBDIRS = Common RFC + +noinst_LIBRARIES = libDtMail.a + +libDtMail_a_SOURCES = + +libDtMail_a_LIBADD = Common/libCommon.a RFC/libRFC.a diff --git a/cde/programs/dtmail/libDtMail/RFC/Makefile.am b/cde/programs/dtmail/libDtMail/RFC/Makefile.am new file mode 100644 index 00000000..3780353b --- /dev/null +++ b/cde/programs/dtmail/libDtMail/RFC/Makefile.am @@ -0,0 +1,34 @@ +MAINTAINERCLEANFILES = Makefile.in + +noinst_LIBRARIES = libRFC.a + +libRFC_a_CXXFLAGS = -I../Common -I../../include -I../../include/utils \ + -I$(srcdir)/lib $(TIRPCINC) -DTTLOCK_OFF + +if HPUX +libRFC_a_CXXFLAGS += -DUSE_SOCKSTREAM -DBIG_ENDIAN -DDO_ANONYMOUS_MAP \ + -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \ + -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\" +endif + +if AIX +libRFC_a_CXXFLAGS += -DI_HAVE_NO_BOOL -DI_HAVE_SELECT_H -DBIG_ENDIAN \ + -DSTRCASECMP_NOT_DEFINED -DDO_ANONYMOUS_MAP \ + -DSENDMAIL_LOCKS -DMAILGROUP_REQUIRED \ + -DMAIL_SPOOL_PATH=\"/var/spool/mail/%s\" +endif + +if SUN +libRFC_a_CXXFLAGS += -DMMAP_NORESERVE -DSPRO_V2 + if I386 + libRFC_a_CXXFLAGS += -DBIG_ENDIAN + endif +endif + +libRFC_a_SOURCES += AliasExpand.C MIMEBodyPart.C \ + MIMEPartial.C RFCBodyPart.C \ + RFCEnvelope.C RFCFormat.C \ + RFCMIME.C RFCMailBox.C \ + RFCMailValues.C RFCMessage.C \ + RFCTransport.C SunV3.C \ + V3BodyPart.C -- 2.25.1