summaryrefslogtreecommitdiff
path: root/Build/source/texk/detex/detex-2.8/os2
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/detex/detex-2.8/os2')
-rw-r--r--Build/source/texk/detex/detex-2.8/os2/README7
-rw-r--r--Build/source/texk/detex/detex-2.8/os2/detex-32.def3
-rw-r--r--Build/source/texk/detex/detex-2.8/os2/detex.def2
-rw-r--r--Build/source/texk/detex/detex-2.8/os2/makefile.os296
4 files changed, 108 insertions, 0 deletions
diff --git a/Build/source/texk/detex/detex-2.8/os2/README b/Build/source/texk/detex/detex-2.8/os2/README
new file mode 100644
index 00000000000..7b0c562dd10
--- /dev/null
+++ b/Build/source/texk/detex/detex-2.8/os2/README
@@ -0,0 +1,7 @@
+This directory contains file contributed by hankedr@mail.auburn.edu
+(Darrel R Hankerson) to facilitate compilation on OS/2 and DOS
+systems. Use the lexout.c provided in the top level directory.
+
+ detex.def linker definition file (16-bit versions)
+ detex-32.def linker definition file
+ Makefile.os2 makefile for MSC 6.00A or EMX/gcc (tested with dmake 3.8)
diff --git a/Build/source/texk/detex/detex-2.8/os2/detex-32.def b/Build/source/texk/detex/detex-2.8/os2/detex-32.def
new file mode 100644
index 00000000000..88cc9457ef3
--- /dev/null
+++ b/Build/source/texk/detex/detex-2.8/os2/detex-32.def
@@ -0,0 +1,3 @@
+NAME detex WINDOWCOMPAT NEWFILES
+DESCRIPTION 'detex for OS/2 and MSDOS'
+STACKSIZE 0x8000
diff --git a/Build/source/texk/detex/detex-2.8/os2/detex.def b/Build/source/texk/detex/detex-2.8/os2/detex.def
new file mode 100644
index 00000000000..616c3156923
--- /dev/null
+++ b/Build/source/texk/detex/detex-2.8/os2/detex.def
@@ -0,0 +1,2 @@
+NAME detex WINDOWCOMPAT NEWFILES
+DESCRIPTION 'detex for OS/2 and MSDOS'
diff --git a/Build/source/texk/detex/detex-2.8/os2/makefile.os2 b/Build/source/texk/detex/detex-2.8/os2/makefile.os2
new file mode 100644
index 00000000000..daf50a0b7b5
--- /dev/null
+++ b/Build/source/texk/detex/detex-2.8/os2/makefile.os2
@@ -0,0 +1,96 @@
+# Makefile for "detex" (tested with dmake 3.8) 22 July 1993
+#
+# - for GNU gcc (emx 0.8g kit) under OS/2 (32-bit)
+# - for Microsoft C 6.00 under OS/2 or MSDOS (16-bit)
+
+# To use, enter "{d,n}make -f makefile.os2" (this makefile depends on its
+# name being "makefile.os2").
+
+default:
+ @echo Enter "$(MAKE) -f makefile.os2 emx"
+ @echo Enter "$(MAKE) -f makefile.os2 emxbnd"
+ @echo or "$(MAKE) -f makefile.os2 msc"
+ @echo or "$(MAKE) -f makefile.os2 mscbnd"
+
+# See the original Makefile for a complete list of options.
+#
+# Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h
+#
+#MAXPATHLEN = -DMAXPATHLEN=1024
+#
+# Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
+# in detex.l (reported by pinard@iro.umontreal.ca)
+#
+NO_MALLOC_DECL = -DNO_MALLOC_DECL
+#
+
+emx:
+ $(MAKE) -f makefile.os2 all \
+ CC="gcc -Zomf -Zmtd" O=".obj" \
+ CF="" \
+ LDFLAGS="" \
+ LDFLAGS2="" \
+ DEF="detex-32.def"
+
+emxbnd:
+ $(MAKE) -f makefile.os2 all \
+ CC="gcc" O=".o" \
+ CF="" \
+ LDFLAGS="" \
+ LDFLAGS2="" \
+ DEF="detex-32.def"
+
+msc:
+ $(MAKE) -f makefile.os2 all \
+ CC="cl -AS " O=".obj" \
+ CF="-D__STDC__ -DMAXPATHLEN=1024" \
+ LDFLAGS="-Lp" \
+ LDFLAGS2="setargv.obj -link /NOE" \
+ DEF="detex.def"
+
+mscbnd:
+ $(MAKE) -f makefile.os2 all \
+ CC="cl -AS " O=".obj" \
+ CF="-D__STDC__ -DMAXPATHLEN=1024" \
+ LDFLAGS="-Lp -Fb" \
+ LDFLAGS2="setargv.obj -link /NOE" \
+ DEF="detex.def"
+
+
+CFLAGS = $(CF) -DOS2 -DHAVE_STRING_H $(NO_MALLOC_DECL) -DNOFILE=99
+
+.c$O :
+ $(CC) $(CFLAGS) -c $<
+
+all : detex.exe
+
+detex.exe : detex$O $(DEF)
+ $(CC) $(LDFLAGS) -o $@ $< $(LDFLAGS2)
+
+
+# Use your favorite lexical scanner
+#
+# flex buffered input causes problems--see flexdoc.man.
+LEX = lex
+LEX_YY = lex.yy
+#LEX = flex
+#LEX_YY = lexyy
+
+#LFLAGS = -8 -C
+
+CP = cp
+FMT_CMD = groff -man
+
+# lexout.c obtained from lex output on sparc.
+
+#detex.c:
+# sed -f states.sed detex.l | ${LEX} ${LFLAGS}
+# mv $(LEX_YY).c detex.c
+
+detex.c : lexout.c
+ $(CP) $< $@
+
+man-page:
+ $(FMT_CMD) detex.1l
+
+detex$O : detex.h