--- Makefile.orig	2009-10-29 14:38:40.000000000 +0600
+++ Makefile	2010-01-04 19:55:10.000000000 +0600
@@ -6,7 +6,7 @@
 
 # replace CFLAGS and LFLAGS -O (oh) with -g for GDB debugging
 CFLAGS = -O -Wall -c `pkg-config --cflags gtk+-2.0`
-LFLAGS = -O -Wall -rdynamic `pkg-config --libs gtk+-2.0 gthread-2.0`
+LFLAGS = -O -Wall -rdynamic -lexecinfo `pkg-config --libs gtk+-2.0 gthread-2.0`
 
 # use $PREFIX if defined, else assume /usr/local
 ifeq "$(PREFIX)" ""
@@ -39,15 +39,16 @@
 	cp $(PROGRAM) $(DESTDIR)$(BINDIR)
 	cp -R locales/* $(DESTDIR)$(DATADIR)/locales
 	#  install .desktop file (menu entry)
-	@echo "[Desktop Entry]" > $(DESKTOP)
-	@echo "Name=$(PROGRAM)" >> $(DESKTOP)
-	@echo "Categories=Game" >> $(DESKTOP)
-	@echo "Type=Application" >> $(DESKTOP)
-	@echo "Terminal=false" >> $(DESKTOP)
-	@echo "Exec=$(BINDIR)/$(PROGRAM)" >> $(DESKTOP)
-	@echo "Icon=$(DATADIR)/icons/$(PROGRAM).png" >> $(DESKTOP)
-	@echo "GenericName=Jigsaw Puzzle" >> $(DESKTOP)
-	xdg-desktop-menu install $(DESKTOP)
+	ln -s $(DESTDIR)$(DATADIR)/icons/picpuz.png ${PREFIX}/share/pixmaps/picpuz.png
+#	@echo "[Desktop Entry]" > $(DESKTOP)
+#	@echo "Name=$(PROGRAM)" >> $(DESKTOP)
+#	@echo "Categories=Game" >> $(DESKTOP)
+#	@echo "Type=Application" >> $(DESKTOP)
+#	@echo "Terminal=false" >> $(DESKTOP)
+#	@echo "Exec=$(BINDIR)/$(PROGRAM)" >> $(DESKTOP)
+#	@echo "Icon=$(DATADIR)/icons/$(PROGRAM).png" >> $(DESKTOP)
+#	@echo "GenericName=Jigsaw Puzzle" >> $(DESKTOP)
+#	xdg-desktop-menu install $(DESKTOP)
 
 uninstall:
 	xdg-desktop-menu uninstall $(DESKTOP)
