summaryrefslogtreecommitdiff
path: root/dviware/dvi2tty/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/dvi2tty/Makefile
Initial commit
Diffstat (limited to 'dviware/dvi2tty/Makefile')
-rw-r--r--dviware/dvi2tty/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/dviware/dvi2tty/Makefile b/dviware/dvi2tty/Makefile
new file mode 100644
index 0000000000..6f8c5e66f5
--- /dev/null
+++ b/dviware/dvi2tty/Makefile
@@ -0,0 +1,40 @@
+# Makefile for dvi2tty and disdvi 23/01/89 M.J.E. Mol
+#
+# For BSD Unix use the following CFLAGS definition
+# CFLAGS = -Dstrchr=index
+#
+# This Makefile does not work for MSDOS. Make your
+# own one, or compile by hand.
+#
+CC = gcc
+
+CFLAGS = -Wall -O2
+# CFLAGS = -Wall -O2 -fomit-frame-pointer
+LDFLAGS = -s
+
+prefix = ${DESTDIR}/usr
+mandir = $(prefix)/share/man/man1
+bindir = $(prefix)/bin
+
+
+all: dvi2tty disdvi
+
+dvi2tty:dvi2tty.o dvistuff.o
+ $(CC) $(LFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
+
+disdvi:disdvi.o
+ $(CC) $(LFLAGS) -o disdvi disdvi.o
+
+dvi2tty.o: dvi2tty.c dvi2tty.h
+
+dvistuff.o: dvistuff.c dvi2tty.h commands.h
+
+disdvi.o: disdvi.c commands.h
+
+clean:
+ rm -f dvi2tty disdvi *.o
+
+install: all
+ install dvi2tty disdvi $(bindir)
+ install dvi2tty.1 $(mandir)
+ install disdvi.1 $(mandir)