File: Makefile.in

package info (click to toggle)
xabacus 7.1.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,084 kB
  • ctags: 914
  • sloc: ansic: 10,242; sh: 2,725; makefile: 540
file content (433 lines) | stat: -rw-r--r-- 14,479 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
############################################################
#
# $Id : Makefile.in 7.1.3 2005/01/10 $
#
# xabacus Makefile.in for configure (UNIX X11 support)
############################################################

# default target

wIDGET = abacus
WIDGET = Abacus
VERNUM = 7.1.3
#VER = x$(wIDGET)-$(VERNUM)
VER = x$(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
# Its not a game, so you may not want this.  Man page itself is hard coded.
MANNUM = 6
#MANNUM = 1

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
datadir = @datadir@
readdir = $(datadir)/games/x${wIDGET}

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

# Reads assumes a directory of /usr/share/games/x${wIDGET} if not set.
DEFINES = \
-DDEMOPATH=\"$(readdir)\" \
-DBUMPSOUND=\"$(readdir)/bump.au\" -DMOVESOUND=\"$(readdir)/move.au\"
DEFS = @DEFS@ $(DEFINES)
# -DHAVE_USLEEP
# -DHAVE_NANOSLEEP
# -DLEE_CN #  Primary Chinese
# -DLEE_KO #  Primary Korean
# -DLEE_ELF #  Primary Chinese and auxiliary have the same number of rails
XWIDGETINC = @XWIDGETINC@ -I$(top_srcdir) -I.
CFLAGS = @CFLAGS@
#CFLAGS = -O
#CFLAGS = -g
XWIDGETLDFLAGS = @XWIDGETLDFLAGS@
XLIBS = @XLIBS@
XWIDGETLIBS = @XWIDGETLIBS@ -lm

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

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

####################################################################
# List of object files

COREOBJS = $(WIDGET)$(O)$(S)$(WIDGET)M$(O)$(S)$(WIDGET)D$(O)$(S)$(WIDGET)C$(O)
OBJS = file$(O)$(S)sound$(O)$(S)$(COREOBJS)$(S)x$(wIDGET)$(O)

####################################################################
# List of source files
# Used for lint, and some dependencies.

CORESRCS = $(WIDGET)$(C) $(WIDGET)M$(C) $(WIDGET)D$(C) $(WIDGET)C$(C)
SRCS = file$(C) sound$(C) $(CORESRCS) x$(wIDGET)$(C)

all : x$(wIDGET) $(WIDGET).ad

x$(wIDGET) : $(OBJS)
	$(CC) -o $@ $(OBJS) $(XWIDGETLDFLAGS) $(XWIDGETLIBS)
	@ $(ECHO) "$@ BUILD COMPLETE"
	@ $(ECHO) ""

$(WIDGET)$(O) : $(WIDGET)$(C) $(HDRS)
$(WIDGET)M$(O) : $(WIDGET)M$(C) $(HDRS)
$(WIDGET)D$(O) : $(WIDGET)D$(C) $(HDRS)
$(WIDGET)C$(O) : $(WIDGET)C$(C) $(HDRS)
file$(O) : file$(C)
sound$(O) : sound$(C)
x$(wIDGET)$(O) : x$(wIDGET)$(C) $(WIDGET).h

################################################################

install : x$(wIDGET)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
	$(INSTALL_PROGRAM) x$(wIDGET)$(E) $(DESTDIR)$(bindir)/x$(M)$(wIDGET)$(E)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)
	$(INSTALL_DATA) x$(wIDGET).man $(DESTDIR)$(mandir)/x$(wIDGET).$(MANNUM)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(xapploaddir)
	$(INSTALL_DATA) $(WIDGET).ad $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(srcdir)/mkinstalldirs $(DESTDIR)$(readdir)
	$(INSTALL_DATA) $(WIDGET).ps $(DESTDIR)$(readdir)/$(WIDGET).ps
	$(INSTALL_DATA) $(WIDGET)1.les $(DESTDIR)$(readdir)/$(WIDGET)1.les
	$(INSTALL_DATA) $(WIDGET)2.les $(DESTDIR)$(readdir)/$(WIDGET)2.les
	$(INSTALL_DATA) $(WIDGET)3.les $(DESTDIR)$(readdir)/$(WIDGET)3.les
	$(INSTALL_DATA) $(WIDGET)4.les $(DESTDIR)$(readdir)/$(WIDGET)4.les
	$(INSTALL_DATA) $(WIDGET)jp1.les $(DESTDIR)$(readdir)/$(WIDGET)jp1.les
	$(INSTALL_DATA) $(WIDGET)jp2.les $(DESTDIR)$(readdir)/$(WIDGET)jp2.les
	$(INSTALL_DATA) $(WIDGET)jp3.les $(DESTDIR)$(readdir)/$(WIDGET)jp3.les
	$(INSTALL_DATA) $(WIDGET)jp4.les $(DESTDIR)$(readdir)/$(WIDGET)jp4.les
	$(INSTALL_DATA) $(WIDGET)ko1.les $(DESTDIR)$(readdir)/$(WIDGET)ko1.les
	$(INSTALL_DATA) $(WIDGET)ko2.les $(DESTDIR)$(readdir)/$(WIDGET)ko2.les
	$(INSTALL_DATA) $(WIDGET)ko3.les $(DESTDIR)$(readdir)/$(WIDGET)ko3.les
	$(INSTALL_DATA) $(WIDGET)ko4.les $(DESTDIR)$(readdir)/$(WIDGET)ko4.les
	$(INSTALL_DATA) $(WIDGET)ru1.les $(DESTDIR)$(readdir)/$(WIDGET)ru1.les
	$(INSTALL_DATA) $(WIDGET)ru2.les $(DESTDIR)$(readdir)/$(WIDGET)ru2.les
	$(INSTALL_DATA) $(WIDGET)ru3.les $(DESTDIR)$(readdir)/$(WIDGET)ru3.les
	$(INSTALL_DATA) bump.au $(DESTDIR)$(readdir)/bump.au
	$(INSTALL_DATA) move.au $(DESTDIR)$(readdir)/move.au
	@ $(ECHO) "$@ COMPLETE"
	@ $(ECHO) ""
	@ $(ECHO) "To use x$(M)$(wIDGET) from a menu, you may want to install the "
	@ $(ECHO) "images.  Do a \"make install-png\" for Gnome and KDE, or do a"
	@ $(ECHO) "\"make install-xpm\" or a \"make install-xpm-home\" for CDE."

uninstall :
	$(RM) $(DESTDIR)$(bindir)/x$(M)$(wIDGET)$(E)$(A)
	$(RM) $(DESTDIR)$(mandir)/x$(wIDGET).$(MANNUM)
	$(RM) $(DESTDIR)$(xapploaddir)/$(WIDGET)
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET).ps
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)1.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)2.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)3.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)4.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)jp1.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)jp2.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)jp3.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)jp4.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ko1.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ko2.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ko3.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ko4.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ru1.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ru2.les
	$(RM) $(DESTDIR)$(readdir)/$(WIDGET)ru3.les
	$(RM) $(DESTDIR)$(readdir)/bump.au
	$(RM) $(DESTDIR)$(readdir)/move.au

# Gnome and KDE
install-png :
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/icons/png/hicolor/16x16/apps
	$(INSTALL_DATA) icons/mini.$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/16x16/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/icons/png/hicolor/22x22/apps
	$(INSTALL_DATA) icons/small.$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/22x22/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/icons/png/hicolor/32x32/apps
	$(INSTALL_DATA) icons/normal.$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/32x32/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/icons/png/hicolor/48x48/apps
	$(INSTALL_DATA) icons/big.$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/48x48/apps/$(wIDGET).png
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps
	$(LN_S) $(DESTDIR)$(datadir)/icons/png/hicolor/16x16/apps/$(wIDGET).png $(DESTDIR) $(datadir)/icons/png/hicolor/all/apps/mini.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/icons/png/hicolor/22x22/apps/$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/small.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/icons/png/hicolor/32x32/apps/$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/normal.$(wIDGET).png
	$(LN_S) $(DESTDIR)$(datadir)/icons/png/hicolor/48x48/apps/$(wIDGET).png $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/big.$(wIDGET).png

uninstall-png :
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/mini.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/small.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/normal.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/all/apps/big.$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/16x16/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/22x22/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/32x32/apps/$(wIDGET).png
	$(RM) $(DESTDIR)$(datadir)/icons/png/hicolor/48x48/apps/$(wIDGET).png

#CDE
install-xpm :
	$(srcdir)/mkinstalldirs $(DESTDIR)$(datadir)/dt/icons
	$(INSTALL_DATA) icons/$(wIDGET).t.xpm $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).t.pm
	$(INSTALL_DATA) icons/$(wIDGET).s.xpm $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).s.pm
	$(INSTALL_DATA) icons/$(wIDGET).m.xpm $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).m.pm
	$(INSTALL_DATA) icons/$(wIDGET).l.xpm $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).l.pm

uninstall-xpm :
	$(RM) $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).t.pm
	$(RM) $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).s.pm
	$(RM) $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).m.pm
	$(RM) $(DESTDIR)$(datadir)/dt/icons/$(wIDGET).l.pm

#CDE HOME directory
install-xpm-home :
	$(srcdir)/mkinstalldirs $(HOME)/.dt/icons
	$(INSTALL_DATA) icons/$(wIDGET).t.xpm $(HOME)/.dt/icons/$(wIDGET).t.pm
	$(INSTALL_DATA) icons/$(wIDGET).s.xpm $(HOME)/.dt/icons/$(wIDGET).s.pm
	$(INSTALL_DATA) icons/$(wIDGET).m.xpm $(HOME)/.dt/icons/$(wIDGET).m.pm
	$(INSTALL_DATA) icons/$(wIDGET).l.xpm $(HOME)/.dt/icons/$(wIDGET).l.pm

uninstall-xpm-home :
	$(RM) $(HOME)/.dt/icons/$(wIDGET).t.pm
	$(RM) $(HOME)/.dt/icons/$(wIDGET).s.pm
	$(RM) $(HOME)/.dt/icons/$(wIDGET).m.pm
	$(RM) $(HOME)/.dt/icons/$(wIDGET).l.pm

################################################################
# Dependencies

SUFFIXES : $(C) $(O) $(E) .ad.in .ad

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

# Certain makes break on this
# ADINS = $(ADS:.ad.in=.ad)
#
# $(ADS) : %.ad.in:%.ad
#	sed s:@READPATH@:$(readdir):g $< > $@
$(WIDGET).ad : $(WIDGET).ad.in
	sed s:@READPATH@:$(readdir):g $(WIDGET).ad.in > $@

################################################################

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

################################################################
# Miscellaneous targets

run :
	./x${wIDGET}

clean :
	$(RM) *.o *.exe* core *~ *% *.bak make.log MakeOut Makefile.dep \
x$(wIDGET) $(WIDGET).ad x$(wIDGET).errs x$(wIDGET).1.html x$(wIDGET)._man
	cd win ; make -f Makefile clean

distclean : clean
	$(RM) Makefile config.status config.cache config.log
	rm -rf autom4te.cache
	cd win ; make -f Makefile distclean

clean.all : distclean

PACKAGE=$(VER)/$(WIDGET).h $(VER)/$(WIDGET)P.h \
$(VER)/icons/mouse-l.xbm $(VER)/icons/mouse-r.xbm \
$(VER)/icons/$(wIDGET).xbm $(VER)/icons/$(wIDGET).xpm \
$(VER)/icons/$(wIDGET).t.xpm $(VER)/icons/$(wIDGET).s.xpm \
$(VER)/icons/$(wIDGET).m.xpm $(VER)/icons/$(wIDGET).l.xpm \
$(VER)/icons/$(wIDGET).p.xpm \
$(VER)/icons/mini.$(wIDGET).png $(VER)/icons/small.$(wIDGET).png \
$(VER)/icons/normal.$(wIDGET).png $(VER)/icons/big.$(wIDGET).png \
$(VER)/bump.au $(VER)/bumpdat.au $(VER)/move.au \
$(VER)/play.sh $(VER)/file$(C) $(VER)/sound$(C) \
$(VER)/$(WIDGET)$(C) $(VER)/$(WIDGET)M$(C) \
$(VER)/$(WIDGET)D$(C) $(VER)/$(WIDGET)C$(C) $(VER)/x$(wIDGET)$(C) \
$(VER)/README $(VER)/$(WIDGET).ps $(VER)/$(WIDGET).ad.in \
$(VER)/Imakefile $(VER)/x$(wIDGET).man $(VER)/x$(wIDGET).html \
$(VER)/$(WIDGET)1.les $(VER)/$(WIDGET)2.les \
$(VER)/$(WIDGET)3.les $(VER)/$(WIDGET)4.les \
$(VER)/$(WIDGET)jp1.les $(VER)/$(WIDGET)jp2.les \
$(VER)/$(WIDGET)jp3.les $(VER)/$(WIDGET)jp4.les \
$(VER)/$(WIDGET)ko1.les $(VER)/$(WIDGET)ko2.les \
$(VER)/$(WIDGET)ko3.les $(VER)/$(WIDGET)ko4.les \
$(VER)/$(WIDGET)ru1.les $(VER)/$(WIDGET)ru2.les $(VER)/$(WIDGET)ru3.les \
$(VER)/configure $(VER)/Makefile.in $(VER)/configure.in \
$(VER)/config.guess $(VER)/config.sub $(VER)/install-sh $(VER)/mkinstalldirs \
$(VER)/vms/README.vms $(VER)/vms/x$(wIDGET).hlp \
$(VER)/vms/make.com $(VER)/vms/mmov.com \
$(VER)/vms/vms_amd.c $(VER)/vms/vms_amd.h $(VER)/vms/vms_mmov.c\
$(VER)/win/Makefile $(VER)/win/w$(wIDGET).h \
$(VER)/win/bump.wav $(VER)/win/move.wav \
$(VER)/win/w$(wIDGET).rc $(VER)/win/w$(wIDGET).ini $(VER)/win/w$(wIDGET).ico

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

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

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

compress : tar
	cd .. ; compress -f $(VER).tar

gzip : tar
	cd .. ; gzip -f $(VER).tar

bzip2 : tar
	cd .. ; bzip2 -f $(VER).tar

dist : bzip2

tgz : tar
	cd .. ; gzip -c $(VER).tar > `echo $(VER) | cut -c1-8`.tgz ; \
$(RM) $(VER).tar

tbz : tar
	cd .. ; bzip2 -c $(VER).tar > `echo $(VER) | cut -c1-8`.tbz ; \
$(RM) $(VER).tar

dist.man : x$(wIDGET).html vms/x$(wIDGET).hlp

x$(wIDGET).html : x$(wIDGET).man
	nroff -man < x$(wIDGET).man | man2html > x$(wIDGET).html

vms/x$(wIDGET).hlp : x$(wIDGET).man
	(echo "$(MANNUM) x$(wIDGET)" | tr [:lower:] [:upper:] ; \
 nroff -man < x$(wIDGET).man \
 | sed -e 's/.//g' -e '/^ *Page [0-9]/D' \
 -e '/^User Commands/D' \
 -e '/V[0-9]\.[0-9]\.[0-9] *Last change: /D' \
 -e 's/^     //' \
 -e '/^NAME/D;/^SYNOPSIS/D;/^DESCRIPTION/D' \
 -e 's/\(Copyright\) .*c.*\(19\)/\1 (C) \2/' \
 -e 's/^\([A-Z][A-Z]*\) \([A-Z][A-Z]*\)/\1_\2/' \
 -e 's/^\([A-Z]\)/2 \1/' \
 | more -flsu | /usr/xpg4/bin/more -s) > vms/x$(wIDGET).hlp

html : x$(wIDGET).html

hlp : vms/x$(wIDGET).hlp

man :
	nroff -man x$(wIDGET).man | $(MORE)

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

read :
	$(MORE) README

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

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

# fixes output from CDE dticon for Sun CC compiler
fix-xpm :
	for x in icons/*.xpm; do\
		cp $${x} $${x}.old;\
		sed -e "s/static char/static const char/" $${x}.old > $${x};\
		$(RM) $${x}.old;\
	done

ASCIIWINEXTEND="les c def dlg h ini win rc scores"

dos2unix:
	for j in ${ASCIIWINEXTEND}; do\
		for k in *.$${j}; do\
			if [ -r $${k} ]; then\
				cp $${k} $${k}.old;\
				dos2unix $${k}.old $${k};\
				rm $${k}.old;\
			fi;\
		done;\
	done

unix2dos:
	for j in ${ASCIIWINEXTEND}; do\
		for k in *.$${j}; do\
			if [ -r $${k} ]; then\
				cp $${k} $${k}.old;\
				unix2dos $${k}.old $${k};\
				rm $${k}.old;\
			fi;\
		done;\
	done