X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=Makefile;h=6e8f8042a24014394e36a1a0afaaaa2c713a352f;hb=47c609959f75f7259ed49b41ee70bd51ec5c8a66;hp=ef2cc0a0033b20736b96a5c6c1abbc829f83a4bf;hpb=2d5d8a253603aaf20e6187107c6c21c85e3e70d1;p=fairymax.git diff --git a/Makefile b/Makefile index ef2cc0a..6e8f804 100644 --- a/Makefile +++ b/Makefile @@ -11,22 +11,30 @@ ALL= fairymax shamax maxqi fairymax.6.gz all: ${ALL} fairymax: fairymax.c - $(CC) $(CFLAGS) -DINI_FILE=\"${INI_F}\" fairymax.c -o fairymax + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -DINI_FILE=\"${INI_F}\" fairymax.c -o fairymax shamax: fairymax.c - $(CC) $(CFLAGS) -DINI_FILE=\"${INI_F}\" -DSHATRANJ fairymax.c -o shamax + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -DINI_FILE=\"${INI_F}\" -DSHATRANJ fairymax.c -o shamax maxqi: maxqi.c - $(CC) $(CFLAGS) -DINI_FILE=\"${INI_Q}\" maxqi.c -o maxqi + $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -DINI_FILE=\"${INI_Q}\" maxqi.c -o maxqi install: ${ALL} ${srcdir}/data/* cp -u ${srcdir}/fairymax $(DESTDIR)/usr/games cp -u ${srcdir}/shamax $(DESTDIR)/usr/games cp -u ${srcdir}/maxqi $(DESTDIR)/usr/games install -d -m0755 $(DESTDIR)/usr/share/games/fairymax - cp -u ${srcdir}/data/* $(DESTDIR)/usr/share/games/fairymax + cp -u ${srcdir}/data/fmax.ini ${srcdir}/data/qmax.ini $(DESTDIR)/usr/share/games/fairymax install -d -m0755 $(DESTDIR)/usr/share/man/man6 cp -u ${srcdir}/fairymax.6.gz $(DESTDIR)/usr/share/man/man6 + install -d -m0755 $(DESTDIR)/usr/share/games/plugins/logos + cp -u ${srcdir}/data/logo.png $(DESTDIR)/usr/share/games/plugins/logos/fairymax.png + cp -u ${srcdir}/data/logo.png $(DESTDIR)/usr/share/games/plugins/logos/shamax.png + cp -u ${srcdir}/data/logo.png $(DESTDIR)/usr/share/games/plugins/logos/maxqi.png + install -d -m0755 $(DESTDIR)/usr/share/games/plugins/xboard + cp -u ${srcdir}/data/fairymax.eng $(DESTDIR)/usr/share/games/plugins/xboard + cp -u ${srcdir}/data/shamax.eng $(DESTDIR)/usr/share/games/plugins/xboard + cp -u ${srcdir}/data/maxqi.eng $(DESTDIR)/usr/share/games/plugins/xboard fairymax.6.gz: fairymax.pod pod2man -s 6 fairymax.pod > fmax.man @@ -55,6 +63,12 @@ dist: rmdir Fairy-Max uninstall: + rm -f $(DESTDIR)/usr/share/games/plugins/logos/fairymax.png + rm -f $(DESTDIR)/usr/share/games/plugins/logos/shamax.png + rm -f $(DESTDIR)/usr/share/games/plugins/logos/maxqi.png + rm -f $(DESTDIR)/usr/share/games/plugins/xboard/fairymax.eng + rm -f $(DESTDIR)/usr/share/games/plugins/xboard/shamax.eng + rm -f $(DESTDIR)/usr/share/games/plugins/xboard/maxqi.eng rm -f $(DESTDIR)/usr/share/games/fairymax/* rmdir $(DESTDIR)/usr/share/games/fairymax rm -f $(DESTDIR)/usr/share/man/man6/fairymax.6.gz