File watsup-optflags.patch of Package watsup

--- Makefile.orig	2010-11-03 11:37:07.000000000 +0100
+++ Makefile	2010-11-03 11:37:43.000000000 +0100
@@ -5,8 +5,9 @@
 SOURCE = $(PROGRAM)-$(VERSION).cc
 
 # defaults for parameters that may be pre-defined
-CXXFLAGS ?= -O3 -g -Wall 
-LDFLAGS ?= -O3 -g -Wall -rdynamic
+OPTFLAGS = -O3 -g
+CXXFLAGS ?= $(OPTFLAGS) -Wall 
+LDFLAGS ?= $(OPTFLAGS) -Wall -rdynamic
 PREFIX ?= /usr/local
 
 CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-2.0`
@@ -19,7 +20,7 @@
 DOCDIR = $(PREFIX)/share/doc/$(PROGRAM)
 
 $(PROGRAM): $(PROGRAM).o zfuncs.o
-	$(CXX) $(LFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o
+	$(CXX) -o $(PROGRAM) $(PROGRAM).o zfuncs.o $(LFLAGS)
 
 $(PROGRAM).o: $(SOURCE)
 	$(CXX) $(CFLAGS) -o $(PROGRAM).o $(SOURCE)		\
@@ -40,10 +41,7 @@
 	@ echo use make menu to install desktop menu
 
 menu:
-	cp -f desktop $(DESTDIR)$(DESKTOP)
-	echo Exec=$(DESTDIR)$(BINDIR)/$(PROGRAM) >> $(DESTDIR)$(DESKTOP)
-	echo Icon=$(DESTDIR)$(ICONDIR)/$(PROGRAM).png >> $(DESTDIR)$(DESKTOP)
-	xdg-desktop-menu install $(DESTDIR)$(DESKTOP)
+	install -D -m0644 desktop $(DESTDIR)$(DESKTOP)
 
 uninstall:
 	xdg-desktop-menu uninstall $(DESTDIR)$(DESKTOP)