Print everything sent to engine in debug mode
[uci2wb.git] / Makefile
blobd77636adf73d408ad8cda23845056a251b0fa56c
1 srcdir = .
2 prefix = /usr/local
3 exec_prefix=$(prefix)
4 bindir=$(exec_prefix)/bin
5 datadir=$(prefix)/share
7 CC?=gcc
8 CFLAGS?= -O2 -s
9 LDFLAGS?= -lpthread
10 VERSION?=`grep 'define VERSION' UCI2WB.c | sed -e 's/.*"\(.*\)".*/\1/'`
12 ALL= uci2wb uci2wb.6.gz
14 all: ${ALL}
16 uci2wb: UCI2WB.c
17 $(CC) $(CFLAGS) $(CPPFLAGS) UCI2WB.c -o uci2wb $(LDFLAGS)
19 install: ${ALL}
20 install -d -m0755 $(DESTDIR)$(bindir)
21 cp -u ${srcdir}/uci2wb $(DESTDIR)$(bindir)
22 install -d -m0755 $(DESTDIR)$(datadir)/man/man6
23 cp -u ${srcdir}/uci2wb.6.gz $(DESTDIR)$(datadir)/man/man6
24 xboard -ncp -uxiAdapter {uci2wb -%variant "%fcp" "%fd"} -autoClose || true
26 uci2wb.6.gz: uci2wb.pod
27 pod2man -s 6 uci2wb.pod | gzip -9n > uci2wb.6.gz
29 clean:
30 rm -f ${ALL}
32 dist-clean:
33 rm -f ${ALL} *~ md5sums
35 dist:
36 install -d -m0755 UCI2WB
37 rm -f uci2wb.tar uci2wb.tar.gz
38 cp UCI2WB.c UCI2WB.rc rosetta.ico uci2wb.pod Makefile README.txt UCI2WB
39 md5sum UCI2WB/* > UCI2WB/md5sums
40 tar -cvvf uci2wb-$(VERSION).tar UCI2WB
41 gzip uci2wb-$(VERSION).tar
42 rm UCI2WB/*
43 rmdir UCI2WB
45 uninstall:
46 rm -f $(DESTDIR)$(datadir)/man/man6/uci2wb.6.gz
47 rm -f $(DESTDIR)$(bindir)/uci2wb