File: Makefile.in

package info (click to toggle)
xpuzzles 7.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,208 kB
  • sloc: ansic: 94,274; makefile: 7,477; sh: 3,221
file content (336 lines) | stat: -rw-r--r-- 8,228 bytes parent folder | download
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
# @(#)Makefile.in
#
# Copyright 1997 - 2010  David A. Bagley, bagleyd@tux.org
#
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and
# that both that copyright notice and this permission notice appear in
# supporting documentation, and that the name of the author not be
# used in advertising or publicity pertaining to distribution of the
# software without specific, written prior permission.
#
# This program is distributed in the hope that it will be "useful",
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# xdial Makefile.in for configure (UNIX X11 support)

wIDGET = dial
WIDGET = Dial
WIDGET2 = ${WIDGET}Sq
GROUP = $(wIDGET)
P=x
R=$(P)
V=
PROG = $(R)$(wIDGET)
VER = $(V)$(wIDGET)

# this tells GNU make not to export variables into the environment
# But other makes do not understand its significance, so it must
# not be the first target in the file. So it is here, before
# any variables are created, but after the default target
.NOEXPORT :

SHELL = /bin/sh
#MANNUM = 1
#MANNUM = 6

srcdir = @srcdir@
top_srcdir = @top_srcdir@
#VPATH = @srcdir@/

prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
#mandir = @mandir@/man$(MANNUM)
xapploaddir = @APPDEFAULTS@
#xapploaddir = @libdir@/X11/app-defaults
#xapploaddir = @libdir@/app-defaults
datarootdir = @datarootdir@
datadir = @datadir@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
M = @XM_PREFIX@

DESTDIR =

#CC = cc -g
#CC = acc -g
#CC = gcc -g -Wall -ansi -pedantic
#CC = gcc -g -Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-long-long
#CC = gcc -g -Wall
#CC = g++ -g -Wall
#CC = CC -g
CC = @CC@

LINT = lint
#LINT = alint

INDENT = indent

MORE = more
#MORE = less

PRINT = lpr
#PRINT = enscript -2r

LN_S = @LN_S@
RM = rm -f
RM_S = $(RM)
ECHO = echo

#BLN_S = set file/enter=[]
#RM = delete/noconfirm/nolog
#RM_S = set file/remove/nolog
#ECHO = write sys$output

# Assumes a directory of /var/games/$(GROUP) if -DSCOREPATH not set.
# Assumes a directory of /usr/tmp if -DLOGPATH not set.
DEFINES =
DEFS = @DEFS@ $(DEFINES)
# -DHAVE_USLEEP
# -DHAVE_NANOSLEEP
# -DCONSTPIXMAPS
XWIDGETINC = @XWIDGETINC@ -I$(top_srcdir) -I.
CFLAGS = @CFLAGS@
#CFLAGS = -O
#CFLAGS = -g
XWIDGETLDFLAGS = @XWIDGETLDFLAGS@
XLIBS = @XLIBS@
XWIDGETLIBS = @XWIDGETLIBS@ -lm
EXTRA_LIBRARIES = -laudiofile

N=
C=.c
#C++
#C=.cc
#C=.cpp

O=.o
#O=.@OBJEXT@
S=$(N) $(N)
E=@EXEEXT@
A=

#VMS
#O=.obj
#S=,
#E=.exe
#A=;*

# please define
# C as the C source code extension
# O as the object extension
# S as the separator for object code
# E as the executable extension

HDRS = $(WIDGET)P.h $(WIDGET).h $(WIDGET2)P.h $(WIDGET2).h \
xwin.h \
pixmaps/$(wIDGET).xbm pixmaps/$(wIDGET).xpm

COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET2)$(O)
OBJS = xwin$(O)$(S)\
$(COREOBJS)$(S)$(P)$(wIDGET)$(O)

CORESRCS = $(WIDGET)$(C) $(WIDGET2)$(C)
SRCS = xwin$(C) \
$(CORESRCS) $(P)$(wIDGET)$(C)

all : $(PROG)

constpixmaps :
	@ $(ECHO) "USE with -DCONSTPIXMAPS"
	for pix in pixmaps/*.xpm; do\
		base=`basename $$pix`;\
		sed 's/static char/static const char/' $$pix > $$base;\
	done

$(PROG) : $(OBJS)
	$(CC) -o $@ $(OBJS) $(XWIDGETLDFLAGS) $(XWIDGETLIBS) $(EXTRA_LIBRARIES)
	@ $(ECHO) "$@ BUILD COMPLETE"

$(WIDGET)$(O) : $(WIDGET)$(C) $(WIDGET)P.h $(WIDGET).h xwin.h
$(WIDGET2)$(O) : $(WIDGET2)$(C) $(WIDGET2)P.h $(WIDGET2).h
xwin$(O) : xwin$(C) xwin.h
$(P)$(wIDGET)$(O) : $(P)$(wIDGET)$(C) $(WIDGET).h xwin.h

install : $(PROG)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) $(PROG)$(E) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
	$(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(INSTALL_DATA) $(WIDGET2).ad $(DESTDIR)$(xapploaddir)/$(WIDGET2)
	@ $(ECHO) "$@ COMPLETE"
	@ $(ECHO) ""

uninstall :
	$(RM) $(DESTDIR)$(bindir)/$(R)$(M)$(wIDGET)$(E)$(A)
	$(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET2)

SUFFIXES : $(C) $(O) $(E)

$(C)$(O) :
	$(CC) -c $(CPPFLAGS) $(DEFS) $(XWIDGETINC) $(CFLAGS) $<

Makefile : Makefile.in config.status
	$(SHELL) config.status
config.status : configure
	$(SHELL) config.status --recheck
configure : configure.in
# enable this rule if you want autoconf to be executed automatically when
# configure.in is changed. This is commented out, since patching might give
# configure.in a newer timestamp than configure and not everybody has autoconf
#	cd $(srcdir); autoconf

run :
	./$(PROG)

run.scores :

run.version :

gdb :
	gdb ./$(PROG)

dbx :
	dbx ./$(PROG)

clean :
	$(RM) *.o *.exe* core *~ *% *.bak make.log MakeOut Makefile.dep \
$(PROG) $(PROG).errs $(PROG).1.html $(PROG)._man $(wIDGET)*.xpm

distclean : clean
	$(RM) config.cache config.log
	$(RM)r autom4te.cache

clean.all : distclean
	$(RM) Makefile config.status*

PACKAGE=$(VER)/$(WIDGET).h $(VER)/$(WIDGET)P.h \
$(VER)/$(WIDGET2).h $(VER)/$(WIDGET2)P.h $(VER)/xwin.h \
$(VER)/version.h \
$(VER)/pixmaps/mouse-l.xbm $(VER)/pixmaps/mouse-r.xbm \
$(VER)/pixmaps/$(wIDGET).xbm $(VER)/pixmaps/$(wIDGET).xpm \
$(VER)/pixmaps/$(wIDGET).t.xpm $(VER)/pixmaps/$(wIDGET).s.xpm \
$(VER)/pixmaps/$(wIDGET).m.xpm $(VER)/pixmaps/$(wIDGET).l.xpm \
$(VER)/pixmaps/$(wIDGET).p.xpm \
$(VER)/pixmaps/mini.$(wIDGET).png $(VER)/pixmaps/small.$(wIDGET).png \
$(VER)/pixmaps/normal.$(wIDGET).png $(VER)/pixmaps/big.$(wIDGET).png \
$(VER)/$(WIDGET)$(C) $(VER)/$(WIDGET2)$(C) $(VER)/$(P)$(wIDGET)$(C) \
$(VER)/xwin$(C) \
$(VER)/Imakefile $(VER)/$(WIDGET).ad $(VER)/$(WIDGET2).ad \
$(VER)/configure $(VER)/Makefile.in $(VER)/configure.in \
$(VER)/config.guess $(VER)/config.sub $(VER)/install-sh $(VER)/mkinstalldirs \
$(VER)/AUTHORS $(VER)/ChangeLog $(VER)/COPYING $(VER)/NEWS \
$(VER)/vms/README.vms $(VER)/vms/make.com

zip :
	cd .. ; zip $(VER) $(PACKAGE)

pkzip :
	cd .. ; pkzip $(VER) $(PACKAGE)

tar :
	cd .. ; tar cvf $(VER).tar $(PACKAGE)

compress :
	cd .. ; tar cvf - $(PACKAGE) | compress > $(VER).tar.Z

gzip :
	cd .. ; tar cvf - $(PACKAGE) | gzip > $(VER).tar.gz

bzip2 :
	cd .. ; tar cvf - $(PACKAGE) | bzip2 > $(VER).tar.bz2

dist : bzip2

#dist.man : $(PROG).html vms/$(PROG).hlp

# man2html 3.0.1, changed psgz 1666 and txsz 1552
$(PROG).html :

#$(PROG).html : $(PROG).man
#	nroff -c -man -Tascii < $(PROG).man | man2html -title $(PROG) > $(PROG).html

# found man2hlp.sh in lynx source
vms/$(PROG).hlp :

#vms/$(PROG).hlp : $(PROG).man
#	man2hlp.sh $(PROG).man > vms/$(PROG).hlp

#html : $(PROG).html

#hlp : vms/$(PROG).hlp

man :
	nroff -c -man $(PROG).man | $(MORE)

print:
	$(PRINT) $(HDRS) $(SRCS)

read :
	$(MORE) README

antic :
	antic *.h *.c */*.xpm */*.xbm

cppcheck :
	cppcheck -f -q *.c

lint :
	$(LINT) -ax -DLINT $(DEFS) $(XWIDGETINC) $(SRCS) $(XWIDGETLIBS)

indent :
	$(INDENT) $(HDRS) $(SRCS)

PNGS=\
	pixmaps/big.$(wIDGET).png\
	pixmaps/normal.$(wIDGET).png\
	pixmaps/small.$(wIDGET).png\
	pixmaps/mini.$(wIDGET).png

pixmaps/big.$(wIDGET).png : pixmaps/$(wIDGET).l.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/normal.$(wIDGET).png : pixmaps/$(wIDGET).m.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/small.$(wIDGET).png : pixmaps/$(wIDGET).p.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmaps/mini.$(wIDGET).png : pixmaps/$(wIDGET).t.xpm
	if grep None $< > /dev/null; then\
		sed -e 's/None/White/' $< | xpmtoppm |\
		pnmtopng -transparent 1,1,1 > $@;\
	else\
		xpmtoppm $< | pnmtopng > $@;\
	fi

pixmap : $(PNGS)

pixmaps/$(wIDGET).xbm : pixmaps/$(wIDGET).xpm
	xpmtoppm -alphaout=pixmaps/$(wIDGET).pbm $< > /dev/null
	pbmtoxbm pixmaps/$(wIDGET).pbm > pixmaps/$(wIDGET).xbm
	rm -f pixmaps/$(wIDGET).pbm