1# makefile for Gambit activity log viewer for X11.
2
3# Copyright (c) 1997-2018 by Marc Feeley, All Rights Reserved.
4
5herefromroot = contrib/xactlog
6rootfromhere = ../..
7SUBDIRS =
8
9PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
10PACKAGE_NAME = @PACKAGE_NAME@
11PACKAGE_VERSION = @PACKAGE_VERSION@
12PACKAGE_STRING = @PACKAGE_STRING@
13PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
14PACKAGE_TARNAME = @PACKAGE_TARNAME@
15
16@SET_MAKE@
17
18srcdir = @srcdir@
19VPATH = @srcdir@
20srcdirpfx = @srcdirpfx@
21
22C_COMPILER = @C_COMPILER_MF@
23C_PREPROC = @C_PREPROC_MF@
24FLAGS_OBJ = @FLAGS_OBJ_MF@
25FLAGS_DYN = @FLAGS_DYN_MF@
26FLAGS_LIB = @FLAGS_LIB_MF@
27FLAGS_EXE = @FLAGS_EXE_MF@
28FLAGS_OPT = @FLAGS_OPT_MF@
29FLAGS_OPT_RTS = @FLAGS_OPT_RTS_MF@
30DEFS = @DEFS@
31LIBS = @LIBS@
32
33GAMBCLIB_DEFS = @GAMBCLIB_DEFS_MF@
34LIB_PREFIX = @LIB_PREFIX@
35LIB_EXTENSION = @LIB_EXTENSION@
36GAMBCLIB = @GAMBCLIB@
37GAMBCGSCLIB = @GAMBCGSCLIB@
38GAMBCGSILIB = @GAMBCGSILIB@
39INSTALL = @INSTALL@
40INSTALL_DATA = @INSTALL_DATA@
41INSTALL_LIB = @INSTALL_LIB@
42INSTALL_PROGRAM = @INSTALL_PROGRAM@
43LN_S = @LN_S@
44RANLIB = @RANLIB@
45AR = @AR@
46RC = @RC@
47GIT = @GIT@
48HG = @HG@
49
50prefix = @prefix@
51exec_prefix = @exec_prefix@
52includedir = @includedir@
53libdir = @libdir@
54bindir = @bindir@
55docdir = @docdir@
56infodir = @infodir@
57emacsdir = @emacsdir@
58libexecdir = @libexecdir@
59datarootdir = @datarootdir@
60datadir = @datadir@
61htmldir = @htmldir@
62dvidir = @dvidir@
63pdfdir = @pdfdir@
64psdir = @psdir@
65localedir = @localedir@
66mandir = @mandir@
67
68.SUFFIXES:
69.SUFFIXES: .c @obj@ @exe@
70
71RCFILES = makefile.in xactlog.c
72
73GENDISTFILES =
74
75DISTFILES = $(RCFILES) $(GENDISTFILES)
76
77all:
78
79all-pre:
80
81all-post:
82
83xactlog@exe@: xactlog.c
84	$(C_COMPILER) -I /usr/X11/include -O -o xactlog@exe@ xactlog.c -L /usr/X11/lib -lX11
85
86bootstrap-pre:
87
88bootstrap-post:
89
90install-pre:
91
92install-post: all
93
94uninstall-pre:
95
96uninstall-post:
97
98select-gen-for-commit-pre:
99
100select-gen-for-commit-post:
101
102deselect-gen-for-commit-pre:
103
104deselect-gen-for-commit-post:
105
106mostlyclean-pre:
107
108mostlyclean-post:
109	rm -f xactlog@exe@
110
111clean-pre: mostlyclean-pre
112
113clean-post: mostlyclean-post
114
115distclean-pre: clean-pre
116
117distclean-post: clean-post
118
119bootclean-pre: distclean-pre
120
121bootclean-post: distclean-post
122
123realclean-pre: bootclean-pre
124
125realclean-post: bootclean-post
126	rm -f makefile
127
128rc-setup-pre:
129	$(RC) add $(RCFILES)
130
131rc-setup-post:
132
133dist-pre dist-devel-pre:
134	mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
135	chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
136	@echo "  Copying distribution files:"
137	@for file in $(DISTFILES); do \
138	  echo "    $(herefromroot)/$$file"; \
139	  ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
140	    || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
141	done
142
143dist-post dist-devel-post:
144
145all-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
146	@if test -n "$(SUBDIRS)"; then \
147	  for subdir in ""$(SUBDIRS); do \
148	    target=`echo $@ | sed 's/-recursive//'`; \
149	    echo making $$target in $$subdir; \
150	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
151	  done \
152	fi
153
154all: all-post
155
156all-post: all-recursive
157
158all-recursive: all-pre
159
160bootstrap: bootstrap-post
161
162bootstrap-post: bootstrap-recursive
163
164bootstrap-recursive: bootstrap-pre
165
166install: install-post
167
168install-post: install-recursive
169
170install-recursive: install-pre
171
172uninstall: uninstall-post
173
174uninstall-post: uninstall-recursive
175
176uninstall-recursive: uninstall-pre
177
178select-gen-for-commit: select-gen-for-commit-post
179
180select-gen-for-commit-post: select-gen-for-commit-recursive
181
182select-gen-for-commit-recursive: select-gen-for-commit-pre
183
184deselect-gen-for-commit: deselect-gen-for-commit-post
185
186deselect-gen-for-commit-post: deselect-gen-for-commit-recursive
187
188deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre
189
190mostlyclean: mostlyclean-post
191
192mostlyclean-post: mostlyclean-recursive
193
194mostlyclean-recursive: mostlyclean-pre
195
196clean: clean-post
197
198clean-post: clean-recursive
199
200clean-recursive: clean-pre
201
202distclean: distclean-post
203
204distclean-post: distclean-recursive
205
206distclean-recursive: distclean-pre
207
208bootclean: bootclean-post
209
210bootclean-post: bootclean-recursive
211
212bootclean-recursive: bootclean-pre
213
214realclean: realclean-post
215
216realclean-post: realclean-recursive
217
218realclean-recursive: realclean-pre
219
220rc-setup: rc-setup-post
221
222rc-setup-post: rc-setup-recursive
223
224rc-setup-recursive: rc-setup-pre
225
226dist: dist-post
227
228dist-post: dist-recursive
229
230dist-recursive: dist-pre
231
232dist-devel: dist-devel-post
233
234dist-devel-post: dist-devel-recursive
235
236dist-devel-recursive: dist-devel-pre
237
238makefile: makefile.in $(rootfromhere)/config.status
239	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status
240
241# Tell versions [3.59,3.63) of GNU make not to export all variables.
242# Otherwise a system limit (for SysV at least) may be exceeded.
243.NOEXPORT:
244