aboutsummaryrefslogtreecommitdiff
path: root/vendor/x11iraf/xgterm/Imakefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/x11iraf/xgterm/Imakefile')
-rw-r--r--vendor/x11iraf/xgterm/Imakefile154
1 files changed, 154 insertions, 0 deletions
diff --git a/vendor/x11iraf/xgterm/Imakefile b/vendor/x11iraf/xgterm/Imakefile
new file mode 100644
index 00000000..ec3309e3
--- /dev/null
+++ b/vendor/x11iraf/xgterm/Imakefile
@@ -0,0 +1,154 @@
+XCOMM $XConsortium: Imakefile,v 1.56 92/03/11 17:35:22 gildea Exp $
+XCOMM
+XCOMM Attention xgterm porters
+XCOMM
+XCOMM
+XCOMM Xgterm assumes that bcopy can handle overlapping arguments. If your
+XCOMM bcopy (or memcpy) cannot, write a routine called bcopy and link it in
+XCOMM or add -Dbcopy=mybcopy to the DEFINES list below.
+XCOMM
+
+X11IRAFDIR = ../
+#include <../X11IRAF.tmpl>
+
+/*
+ * add -DWTMP and -DLASTLOG if you want them; make sure that bcopy can
+ * handle overlapping copies before using it.
+ */
+#ifdef SetTtyGroup /* turn on in config/machine.cf */
+ TTYGROUPDEF = -DUSE_TTY_GROUP
+ TTYGROUPDEF =
+#endif
+#ifdef UsePUCCPtyd /* turn on in config/site.def */
+ PUCCPTYDDEF = -DPUCC_PTYD /* does not need to be setuid */
+ PTYLIB = -lpucc
+#endif
+
+/* Hack to build on NOAO HP systems where the Xmu and Xaw libs had to be added
+ * specially to the system they don't come with the default X11 development
+ * system. This also avoids the binary requiring the shared lib version on
+ * systems which may not have it.
+ */
+#if defined(HPArchitecture) && OSMajorVersion >= 10
+ XMULIB = /usr/lib/X11R6/libXmu.a
+ XAWLIB = /usr/lib/X11R6/libXaw.a
+#endif
+
+
+ OSMAJORVERSION = OSMajorVersion
+ OSMINORVERSION = OSMinorVersion
+
+ CDEBUGFLAGS = -g
+ XAWLIB = LibXaw3d
+ DEPXAWLIB = DepLibXaw3d
+ X11IRAFDIR = ../
+
+ MAIN_DEFINES = -DUTMP $(TTYGROUPDEF) $(PUCCPTYDDEF) \
+ -DOSMAJORVERSION=$(OSMAJORVERSION) \
+ -DOSMINORVERSION=$(OSMINORVERSION)
+ MISC_DEFINES = /* -DALLOWLOGFILEEXEC */
+ EXTRA_DEFINES = -DALLOWLOGGING
+ LOCAL_LDFLAGS = -L../lib
+ EXTRA_INCLUDES = -I../include
+ DEPENDFLAGS = -I../include -I../include/ObmW
+
+ SRCS1 = button.c charproc.c cursor.c data.c gtermio.c input.c \
+ main.c menu.c misc.c screen.c scrollbar.c tabs.c \
+ util.c VTPrsTbl.c
+ OBJS1 = main.o input.o charproc.o cursor.o util.o tabs.o \
+ screen.o scrollbar.o button.o misc.o \
+ VTPrsTbl.o data.o menu.o gtermio.o
+ SRCS2 = resize.c
+ OBJS2 = resize.o
+ SRCS = $(SRCS1) $(SRCS2)
+ OBJS = $(OBJS1) $(OBJS2)
+ DEPOBM = DepLibObm DepLibXpm DepLibXaw3d
+
+ PROGRAMS = resize xgterm
+ DEPLIBS1 = XawClientDepLibs $(DEPOBM)
+ DEPLIBS2 =
+ PROGRAMS = xgterm resize
+
+#ifndef TermcapLibrary
+#if SystemV && !defined(MacIIArchitecture)
+#if defined(CrayArchitecture) || defined(RsArchitecture)
+#define TermcapLibrary -lcurses /* special cases of System V */
+#else
+#define TermcapLibrary -ltermlib /* usually in here */
+#endif
+#else
+#define TermcapLibrary -ltermcap /* bsd puts it here */
+#endif
+#endif
+
+
+ TERMCAPLIB = TermcapLibrary
+ OBMLIBS = -lobm -lXpm
+ MATHLIB = -lm
+
+AllTarget($(PROGRAMS))
+
+SpecialObjectRule(main.o,NullParameter,$(MAIN_DEFINES))
+SpecialObjectRule(misc.o,NullParameter,$(MISC_DEFINES))
+SpecialObjectRule(charproc.o,NullParameter,$(MISC_DEFINES))
+
+main.o: ../version.h
+
+#if InstallXgtermSetUID
+SetUIDProgramTarget(xgterm,$(OBJS1),$(DEPLIBS1),$(OBMLIBS) XawClientLibs,$(TERMCAPLIB) $(PTYLIB) $(MATHLIB))
+#else
+NormalProgramTarget(xgterm,$(OBJS1),$(DEPLIBS1),$(OBMLIBS) XawClientLibs,$(TERMCAPLIB) $(PTYLIB) $(MATHLIB))
+#endif
+
+
+#if InstallBinaries
+#if InstallXgtermSetUID && defined(SunArchitecture) && HasSharedLibraries
+#if AlternateUsrLibDir
+#if OSMajorVersion > 4 || (OSMajorVersion == 4 && OSMinorVersion >= 1)
+LDOVERRIDE = -L$(DESTDIR)$(USRLIBDIR)
+#else
+#if HasGcc
+LDOVERRIDE = -static -L$(DESTDIR)$(USRLIBDIR)
+#else
+LDOVERRIDE = -Bstatic -L$(DESTDIR)$(USRLIBDIR)
+LDRESUME = -Bdynamic
+#endif
+#endif
+#endif
+install:: xgterm
+ MakeDir(X11irafBinDir)
+ $(CP) xgterm X11irafBinDir
+ chmod 4755 X11irafBinDir/xgterm
+#else
+#if InstallXgtermSetUID
+install:: xgterm
+ MakeDir(X11irafBinDir)
+ $(CP) xgterm X11irafBinDir
+ chmod 4755 X11irafBinDir/xgterm
+#else
+install:: xgterm
+ MakeDir(X11irafBinDir)
+ $(CP) xgterm X11irafBinDir
+#endif
+#endif
+
+NormalProgramTarget(resize,$(OBJS2),$(DEPLIBS2),NullParameter,$(TERMCAPLIB))
+install:: resize
+ MakeDir(X11irafBinDir)
+ $(CP) resize X11irafBinDir
+#endif
+
+#if InstallAppdefs
+install:: XGterm.ad
+ MakeDir(X11irafAppDir)
+ cp XGterm.ad X11irafAppDir/XGterm
+#endif
+
+#if InstallManuals
+install::
+ MakeDir(X11irafManDir)
+ $(CP) xgterm.man X11irafManDir/xgterm.1
+ $(CP) resize.man X11irafManDir/resize.1
+#endif
+
+DependTarget()