--- src/main/Makefile.orig	Thu Aug  2 06:58:04 2001
+++ src/main/Makefile	Thu Aug  2 07:01:04 2001
@@ -7,15 +7,15 @@
 
 ####### Compiler, tools and options
 
-CC	=	gcc
-CXX	=	g++
-CXXFLAGS=	-pipe -Wall -W -O2 -DNO_DEBUG -DMYSQL_NAVIGATOR_HOME=\"/usr/local/share/mysql_navigator\"
-CXXFLAGS=	-pipe -Wall -W -O2 -DNO_DEBUG -DMYSQL_NAVIGATOR_HOME=\"/usr/local/share/mysql_navigator\"
-INCPATH	=	-I../../include -I/usr/local/mysql/include/mysql -I$(QTDIR)/include
+CC	?=	gcc
+CXX	?=	g++
+#CXXFLAGS=	-pipe -Wall -W -O2 -DNO_DEBUG -DMYSQL_NAVIGATOR_HOME=\"/usr/local/share/mysql_navigator\"
+CXXFLAGS+=	-DNO_DEBUG -DMYSQL_NAVIGATOR_HOME=\"${PREFIX}/share/mysql_navigator\"
+INCPATH	=	-I../../include -I${LOCALBASE}/include/mysql -I$(X11BASE)/include/qt2
 LINK	=	g++
 LFLAGS	=	
-LIBS	=	-L$(QTDIR)/lib -L/usr/X11R6/lib -L../../lib -lmysqlui -lqt -lXext -lX11 -lm
-MOC	=	$(QTDIR)/bin/moc
+LIBS	=	-L$(LOCALBASE)/lib/mysql -L${X11BASE}/lib -L../../lib -lmysqlui -lqt2 -lXext -lX11 -lm
+MOC	=	$(X11BASE)/bin/moc2
 
 TAR	=	tar -cf
 GZIP	=	gzip -9f
