--- Makefile.orig	Sat Jan 25 15:08:12 2003
+++ Makefile	Sat Jan 25 15:08:40 2003
@@ -1,17 +1,17 @@
 # Your favorite compilation options here :-)
 MCFLAGS  = -Wall -O -g 
-LDFLAGS  =  -lcrypt
+LDFLAGS  =  -lcrypto
 
 # Comment out the variables for the databases that you do not want
 # Here, what you need for PostgreSQL
-PGSQLIBS    = -L/usr/local/pgsql/lib -lpq
-PGSQLCFLAGS = -I/usr/local/pgsql/include -DUSE_POSTGRESQL
+PGSQLIBS    = -LXXPREFIX/pgsql/lib -lpq
+PGSQLCFLAGS = -IXXPREFIX/pgsql/include -DUSE_POSTGRESQL
 PGSQLOBJS   = postgres.o
 
 # Here, what you need for MySQL
-MYSQLIBS    = -L/usr/lib/mysql -lmysqlclient
-MYSQLCFLAGS = -I/usr/include/mysql -DUSE_MYSQL
-MYSQLOBJS   = mysql.o
+#MYSQLIBS    = -L/usr/lib/mysql -lmysqlclient
+#MYSQLCFLAGS = -I/usr/include/mysql -DUSE_MYSQL
+#MYSQLOBJS   = mysql.o
 
 # Nothing to change below this point...
 DBSQLIBS = $(PGSQLIBS) $(MYSQLIBS)
@@ -24,8 +24,8 @@
 OBJS    = $(MOBJS) $(DBSQLOBJS)
 CFLAGS  = $(MCFLAGS) $(DBSQLFLAGS)
 
-GTKLIBS     = `gtk-config --libs`
-GTKCFLAGS   = `gtk-config --cflags`
+GTKLIBS     = `XXPREFIX/bin/gtk-config --libs`
+GTKCFLAGS   = `XXPREFIX/bin/gtk-config --cflags`
 
 all: $(OBJS)
 	gcc -o gtksql $(OBJS) $(DBSQLIBS) $(GTKLIBS) $(CFLAGS) $(LDFLAGS)
@@ -34,7 +34,8 @@
 	rm -f *.o gtksql
 
 install: all
-	cp gtksql $(DESTDIR)usr/bin/
+	install -o root -m 755 -d YYPREFIX/bin
+	install -o root -m 755 -s -c gtksql YYPREFIX/bin
 
 .c.o: 
 	gcc $(CFLAGS) $(GTKCFLAGS) $(DBSQLCFLAGS) -c $*.c -o ./$*.o
