summaryrefslogtreecommitdiff
path: root/dviware/dvgtk/Makefile.in
blob: 5c7bc9a2347e2c40e7ad43b263189744ce9324c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# Makefile for dvgtk -- t.cholewo@ieee.org.  Public domain.
# $Id: Makefile.in,v 0.2 1997/03/28 03:29:28 tjchol01 Exp $
version = 0.2

ac_include ../make/paths.make
ac_include ../make/common.make
ac_include ../make/programs.make

ANSI2KNR = @ANSI2KNR@
o = .@U@o

#BOUNDS = -fbounds-checking 
#XCFLAGS = $(BOUNDS) -O -Wall -Wformat
#XLDFLAGS = $(BOUNDS) 

program = dvgt
objects = dvgt$o dvireader$o fontreader$o options$o screenio$o unixio$o vdu$o

programs = $(program)

default all: $(programs) 

$(program): $(objects) $(kpathsea)
	$(kpathsea_link) $(objects) $(LOADLIBES)

ac_include ../make/tkpathsea.make

install: install-exec install-data
uninstall: uninstall-exec uninstall-data

install-exec:
	$(SHELL) $(top_srcdir)/../mkdirchain $(bindir) 
	test ! -f $(program) \
	  || $(INSTALL_LIBTOOL_PROG) $(bindir) $(program)
uninstall-exec:
	cd $(bindir); rm -f $(program)

install-data:
	$(SHELL) $(top_srcdir)/../mkdirchain $(mandir) 
	$(INSTALL_DATA) $(srcdir)/dvgt.man $(mandir)/dvgt.$(manext)
uninstall-data:
	rm -f $(mandir)/dvgt.$(manext)

clean:: 
	rm -f $(ANSI2KNR) *._o *._c *.vlg doc/*.dvi doc/*.vlg doc/*.log depend.make

xclean: clean configclean
	rm -f stamp-auto stamp-auto.in

distname = dvgtk
program_files = dvgt.man web2c-dvgtk.patch ansi2knr.ac MACHINES
version_files = dvgt.c 

pre-dist-$(distname):
post-dist-$(distname):
	ln -s `pwd`/doc `pwd`/etc $(distdir)

# modified dist.make -- making distribution tar files.
distdir = $(distname)
ln_files = AUTHORS ChangeLog INSTALL NEWS README *.in *.h *.c \
  configure .gdbinit stamp-auto 

dist_rm_predicate = -name depend.make -o -name Makefile
dist: all pre-dist-$(distname)
	rm -rf $(distdir)
	mkdir -p $(distdir)
	-ln $(ln_files) $(distdir)
	ln $(program_files) $(distdir)
# Remove the extra files our patterns got us.
	cd $(distdir); rm -f c-auto.h
	find $(distdir) \( $(dist_rm_predicate) \) -exec rm '{}' \;
	find $(distdir) -name \.*texi -exec egrep -ni '	| ::|xx[^}]' \;
	$(MAKE) post-dist-$(distname)
	chmod -R a+rwX $(distdir)
	GZIP=-9 tar chzf $(distdir)-$(version).tar.gz $(distdir)
	rm -rf $(distdir)

# End of modified dist.make.

.SUFFIXES: .c .o ._c ._o

.c._c: $(ANSI2KNR)
	$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@

._c._o:
	@echo $(compile) -c $<
	@rm -f _$*.c
	@ln $< _$*.c && $(compile) _$*.c && mv _$*.o $@ && rm _$*.c

.c._o: $(ANSI2KNR)
	$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
	@echo $(compile) $*._c
	@rm -f _$*.c
	@ln $*._c _$*.c && $(compile) _$*.c && mv _$*.o $@ && rm _$*.c

ansi2knr: ansi2knr.o c-auto.h
	$(CC) -o ansi2knr ansi2knr.o $(LIBS)

ac_include ../make/config.make

info dvi check:

ac_include ../make/clean.make
ac_include ../make/rdepend.make

# dependencies

# configure:: ansi2knr.ac

$(objects): $(ANSI2KNR)

# depend.make

dvgt$o: dvgt.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h ../kpathsea/proginit.h ../kpathsea/tex-file.h \
 defaults.h screenio.h options.h unixio.h vdu.h dvireader.h \
 fontreader.h
dvireader$o: dvireader.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h dvireader.h screenio.h fontreader.h options.h
fontreader$o: fontreader.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h ../kpathsea/tex-file.h ../kpathsea/tex-glyph.h \
 screenio.h vdu.h options.h dvireader.h fontreader.h
options$o: options.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h screenio.h options.h defaults.h
screenio$o: screenio.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h screenio.h unixio.h vdu.h
unixio$o: unixio.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h unixio.h screenio.h \
 
vdu$o: vdu.c dvgt.h c-auto.h \
 ../kpathsea/debug.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/systypes.h ../kpathsea/c-memstr.h ../kpathsea/c-errno.h \
 ../kpathsea/c-minmax.h \
 ../kpathsea/c-limits.h \
 ../kpathsea/types.h \
 ../kpathsea/progname.h ../kpathsea/c-pathch.h ../kpathsea/c-ctype.h \
 ../kpathsea/lib.h vdu.h options.h screenio.h