NamedTargetSubdirs(install.doc,$(DOCSUBDIRS),"installing",DESTDIR=$(DESTDIR),install)
NamedTargetSubdirs(install.man.doc,$(DOCSUBDIRS),"installing man pages",DESTDIR=$(DESTDIR),install.man)
-InstallLinkKitSubdirs($(DOCSUBDIRS))
NamedCleanSubdirs(clean.doc,$(DOCSUBDIRS))
NamedTagSubdirs(tags.doc,$(DOCSUBDIRS))
MakeMakeSubdirs($(DOCSUBDIRS),Makefiles.doc)
#define PassCDebugFlags
/* due to split-VOB setup, force help to come last in make Makefiles */
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
XCOMM we cannot build guides on linux yet
SUBDIRS = man help
BSUBDIRS = help man
#define PassCDebugFlags
/* due to split-VOB setup, force help to come last in make Makefiles */
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
XCOMM we cannot build guides on linux yet
SUBDIRS = help
BSUBDIRS = help
#endif
INCLUDES = -I. -I./il -I./jpeg
+#if defined(OpenBSDArchitecture)
+INCLUDES += -I$(INCROOT)
+#endif
DEFINES = -DDTLIB -DXK_MISCELLANY $(LOCAL_DEFINES) \
-DCDE_INSTALLATION_TOP='"$(CDE_INSTALLATION_TOP)"' \
-DCDE_CONFIGURATION_TOP='"$(CDE_CONFIGURATION_TOP)"' \
LinkFile(TermPrimGetPty.c,TermPrimGetPty-svr4.c)
#endif
+#ifdef OpenBSDArchitecture
+LinkFile(TermPrimGetPty.c,TermPrimGetPty-bsd.c)
+#endif
+
SubdirLibraryRule($(OBJS))
DependTarget()
DEFINES = DtWidgetDefines
#if defined(LinuxArchitecture)
INCLUDES = -I. -I/usr/include/freetype2
+#elif defined(OpenBSDArchitecture)
+INCLUDES = -I. -I$(XPROJECTROOT)/include/freetype2
#else
INCLUDES = -I.
#endif
OSMAJORVERSION = OSMajorVersion
OSMINORVERSION = OSMinorVersion
-DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N -DSVR4 \
+DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \
-DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)"
#if UseNSGMLS
NSGMLSDIR = nsgmls
#endif
-EXTRADIRS = util types localized tttypes $(NSGMLSDIR)
+EXTRADIRS = types localized tttypes $(NSGMLSDIR)
+#if !defined(OpenBSDArchitecture)
+EXTRADIRS += util
+#endif
XCOMM some of these cannot be built on linux yet.
XCOMM dtksh dtinfo
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
DTKSHDIR =
DTINFODIR =
#else
#endif
-SUBDIRS = dthelp dtmail dsdm dtpad dtfile dtwm dtlogin \
+SUBDIRS = dthelp dsdm dtpad dtfile dtwm dtlogin \
dtsession dthello dtstyle dtexec dtdbcache dticon dtterm \
dtcalc dtaction dtspcd \
dtscreen $(DTKSHDIR) dtcm dtsearchpath \
dtudcfonted dtudcexch dtimsstart dtdocbook dtpdm dtsr \
dtpdmd $(DTINFODIR) $(EXTRADIRS)
-LINTSUBDIRS = dthelp dtmail dsdm dtpad dtfile dtlogin dtwm \
+LINTSUBDIRS = dthelp dsdm dtpad dtfile dtlogin dtwm \
dtsession dthello dtstyle dtexec dtdbcache dticon dtterm \
dtcalc dtaction dtcreate \
dtscreen $(DTKSHDIR) dtcm dtsearchpath \
OSMAJORVERSION = OSMajorVersion
OSMINORVERSION = OSMinorVersion
- DEFINES = -DSVR4 -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
+ DEFINES = -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)" \
$(ICONV_INBUF_DEFINE)
-#if defined(RsArchitecture) || defined(USLArchitecture) || defined(UXPArchitecture) || defined(LinuxArchitecture)
+#if defined(RsArchitecture) || defined(USLArchitecture) || defined(UXPArchitecture) || defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
TTY_LIBRARIES = $(LOCAL_LIBRARIES)
#elif defined(AlphaArchitecture)
TTY_LIBRARIES = $(DTCMPLIB) $(CSALIB) $(DTSVCLIB) $(XTOOLLIB) $(XLIB)
EXTRA_LIBRARIES = -lrpcsvc -lV3
#endif
+#if defined(OpenBSDArchitecture)
+EXTRA_LIBRARIES = -lcompat
+#endif
+
#ifdef SunArchitecture
XCOMM Uncomment to build using Federated Naming Services. To activate
XCOMM you must set the UseFNS resource to True before runnin dtcm.
OSMAJORVERSION = OSMajorVersion
OSMINORVERSION = OSMinorVersion
-DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N -DSVR4 \
+DEFINES = -DRFC_MIME -DLINE_COUNT -DV2 -DOW_I18N \
-DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
-DRELMAJOR="$(OSMAJORVERSION)" -DRELMINOR="$(OSMINORVERSION)"
OSMAJORVERSION = OSMajorVersion
OSMINORVERSION = OSMinorVersion
- DEFINES = -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" -DSVR4 \
+ DEFINES = -DREL="$(OSMAJORVERSION)$(OSMINORVERSION)" \
-DRELMAJOR="$(OSMAJORVERSION)" \
-DRELMINOR="$(OSMINORVERSION)"
XCOMM scripts (note: you can set the TCL_LIBRARY environment variable at
XCOMM run-time to override this value):
TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)
+#ifdef OpenBSDArchitecture
+TCL_LIBRARY = TclLibrary
+#endif
#ifdef SunArchitecture
EXTRA_DEFINES = -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
-DTCL_GOT_TIMEZONE -DTIME_WITH_SYS_TIME
# else
+# ifdef OpenBSDArchitecture
+EXTRA_DEFINES = -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
+ -DNO_UNION_WAIT -DHAVE_UNISTD_H \
+ -DTCL_GOT_TIMEZONE
+
+# else
EXTRA_DEFINES = -DTCL_LIBRARY=\"${TCL_LIBRARY}\" \
-DNO_UNION_WAIT -DHAVE_UNISTD_H -DNEED_MATHERR \
-DTCL_GOT_TIMEZONE
+# endif
# endif
# endif
#endif
EXTRA_INCLUDES = -I/usr/include/freetype2
#endif
+#if defined(OpenBSDArchitecture)
+EXTRA_INCLUDES = -I$(XPROJECTROOT)/include/freetype2
+#endif
+
SRCS = ChangeDir.c ChangeDirP.c Command.c Common.c \
Desktop.c Directory.c Encaps.c File.c \
FileDialog.c FileManip.c FileMgr.c FileOp.c \
INCLUDES = -I/usr/include/freetype2
#endif
+#ifdef OpenBSDArchitecture
+INCLUDES = -I$(XPROJECTROOT)/include/freetype2
+#endif
+
/**************************************************************************
*
* Source and object modules
SYS_LIBRARIES = -lm -lgen
#endif
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
LOCAL_LIBRARIES = $(DTHELPLIB) $(DTSVCLIB) $(TTLIB) \
$(XMLIB) $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = -lm
M4 = /bin/m4
#endif
-#if defined(LinuxArchitecture)
+#if defined(LinuxArchitecture) || defined(OpenBSDArchitecture)
/*
* put cpp directives here rather than in CXXDEFINES because