X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=blobdiff_plain;f=Makefile;h=5de3e52af56bd7505e51392867e9287911de9575;hp=ef2cc0a0033b20736b96a5c6c1abbc829f83a4bf;hb=bb45bf56c8bd664b7e27ed897c501b103f30b134;hpb=ea4d228f991bf3a0e36ffd56441b0a4d28fb4c09 diff --git a/Makefile b/Makefile index ef2cc0a..5de3e52 100644 --- a/Makefile +++ b/Makefile @@ -11,22 +11,26 @@ 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/fairymax.png $(DESTDIR)/usr/share/games/plugins/logos + install -d -m0755 $(DESTDIR)/usr/share/games/plugins/xboard + cp -u ${srcdir}/data/fairymax.eng $(DESTDIR)/usr/share/games/plugins/xboard fairymax.6.gz: fairymax.pod pod2man -s 6 fairymax.pod > fmax.man @@ -55,6 +59,8 @@ dist: rmdir Fairy-Max uninstall: + rm -f $(DESTDIR)/usr/share/games/plugins/logos/fairymax.png + rm -f $(DESTDIR)/usr/share/games/plugins/xboard/fairymax.eng rm -f $(DESTDIR)/usr/share/games/fairymax/* rmdir $(DESTDIR)/usr/share/games/fairymax rm -f $(DESTDIR)/usr/share/man/man6/fairymax.6.gz