--- examples/Makefile.orig	Thu Jun  2 08:51:07 2005
+++ examples/Makefile	Thu Jun  2 22:49:16 2005
@@ -7,16 +7,16 @@
 # -----------------------------------------------------------------------------------
 
 # Set correct variables and paths
-CC      = g++
-X11PATH = /usr/X11R6
-CFLAGS  = -Wall -ansi -pedantic -ffast-math -I$(X11PATH)/include
+CC      = $(CXX)
+#X11PATH = /usr/X11R6
+#CFLAGS  = -Wall -ansi -pedantic -ffast-math -I$(X11PATH)/include
 
 # Compilation rules
 .cpp:
 	@echo
 	@echo "** Compiling '$*' with '`$(CC) -v 2>&1 | grep version`'"
 	@echo
-	$(CC) -o $* $< $(CFLAGS) $(LDFLAGS)
+	$(CC) -o $* $< $(CPPFLAGS) -Wall -ansi -pedantic -ffast-math  -I$(X11PATH)/include -lX11 -L$(X11PATH)/lib $(LDFLAGS)
 linux:
 	make "LDFLAGS=-lm -lpthread -lX11 -L$(X11PATH)/lib" all
 solaris:
@@ -41,6 +41,7 @@
 
 clean:
 	rm -f *.exe *~ \
+	Makefile.orig \
         CImg_test \
         fade_images \
         greycstoration \
