1998-01-29 12:39:44 +00:00
|
|
|
--- Makefile.orig Sat Jan 10 18:17:46 1998
|
1999-02-04 10:51:13 +00:00
|
|
|
+++ Makefile Wed Feb 3 14:14:54 1999
|
1998-01-29 12:39:44 +00:00
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
# This is used by 'make install' command
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#INSTALLPATH = /opt/local/i386/bin
|
1997-09-02 15:06:32 +00:00
|
|
|
-INSTALLPATH = /usr/local/bin
|
|
|
|
+INSTALLPATH = ${X11BASE}/bin
|
1998-01-29 12:39:44 +00:00
|
|
|
########################################################
|
1997-09-02 15:06:32 +00:00
|
|
|
|
1998-01-29 12:39:44 +00:00
|
|
|
|
|
|
|
@@ -45,7 +45,7 @@
|
|
|
|
# pixmap file location (mysql.xpm)
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#PIXMAPPATH = /opt/local/lib
|
1997-09-02 15:06:32 +00:00
|
|
|
-PIXMAPPATH = /usr/local/bin
|
|
|
|
+PIXMAPPATH = ${X11BASE}/include/X11/pixmaps
|
1998-01-29 12:39:44 +00:00
|
|
|
########################################################
|
|
|
|
|
1997-09-02 15:06:32 +00:00
|
|
|
|
1999-02-04 10:51:13 +00:00
|
|
|
@@ -55,8 +55,8 @@
|
|
|
|
# mysql version
|
|
|
|
# mysql_reload() on 3.20, mysql_refresh() on 3.21
|
|
|
|
#-------------------------------------------------------
|
|
|
|
-#MYSQL_VERSION = 320 # for versions 3.20.#
|
|
|
|
-MYSQL_VERSION = 321 # for versions 3.21.#
|
|
|
|
+MYSQL_VERSION = 320 # for versions 3.20.#
|
|
|
|
+#MYSQL_VERSION = 321 # for versions 3.21.#
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-01-29 12:39:44 +00:00
|
|
|
@@ -93,8 +93,8 @@
|
1997-09-02 15:06:32 +00:00
|
|
|
# Compilation Details
|
1998-01-29 12:39:44 +00:00
|
|
|
# hum... I think you dont need to change this
|
|
|
|
#-------------------------------------------------------
|
1997-09-02 15:06:32 +00:00
|
|
|
-CC = gcc
|
1998-01-29 12:39:44 +00:00
|
|
|
-STDCFLAGS = -g -c -O2 -Wall -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \
|
1997-09-02 15:06:32 +00:00
|
|
|
+# CC = gcc
|
1998-01-29 12:39:44 +00:00
|
|
|
+STDCFLAGS = $(CFLAGS) -c -DPIXMAPFILE=\"$(PIXMAPPATH)/mysql.xpm\" \
|
|
|
|
-DBACKUP=\"$(BACKUP)\" -DBACKUPDIR=\"$(BACKUPDIR)\" \
|
|
|
|
-DBACKUPSUFFIX=\"$(BACKUPSUFFIX)\" \
|
|
|
|
-DMYSQL_VERSION=$(MYSQL_VERSION)
|
|
|
|
@@ -109,7 +109,7 @@
|
|
|
|
# mysql include dir
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#MYSQLINC = -I/opt/local/include/mysql
|
|
|
|
-MYSQLINC = -I/usr/local/include/mysql
|
|
|
|
+MYSQLINC = -I${LOCALBASE}/include/mysql
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -121,7 +121,7 @@
|
|
|
|
# mysql database dir
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#MYSQLDBDIR = -DMYSQLDBDIR="\"/var/lib/mysql/\""
|
|
|
|
-MYSQLDBDIR = -DMYSQLDBDIR="\"/usr/local/var/\""
|
|
|
|
+MYSQLDBDIR = -DMYSQLDBDIR="\"/var/db/mysql/\""
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -133,7 +133,7 @@
|
|
|
|
# mysql library dir
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#MYSQLLOAD = -L/opt/local/i386/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
|
|
|
|
-MYSQLLOAD = -L/usr/local/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
|
|
|
|
+MYSQLLOAD = -L${LOCALBASE}/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -144,7 +144,7 @@
|
|
|
|
# xforms librairies dir
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#XFORMLIBDIR = -L/opt/local/i386/lib
|
1997-09-02 15:06:32 +00:00
|
|
|
-XFORMLIBDIR = -L/usr/lib
|
1998-01-29 12:39:44 +00:00
|
|
|
+XFORMLIBDIR = -L${X11BASE}/lib
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -156,7 +156,7 @@
|
|
|
|
# xforms include dir (xforms.h)
|
|
|
|
#-------------------------------------------------------
|
|
|
|
#XFORMINCDIR = -I/opt/local/include
|
1997-09-02 15:06:32 +00:00
|
|
|
-XFORMINCDIR = -I/usr/include
|
1998-01-29 12:39:44 +00:00
|
|
|
+XFORMINCDIR = -I${X11BASE}/include
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -172,7 +172,7 @@
|
|
|
|
|
|
|
|
# Use this for Linux:
|
|
|
|
XINC =
|
|
|
|
-XLOAD = -L/usr/X11R6/lib -lX11
|
|
|
|
+XLOAD = -L${X11BASE}/lib -lX11
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
|
|
@@ -230,8 +230,7 @@
|
1997-09-02 15:06:32 +00:00
|
|
|
${PROGRAM}: $(OBJS)
|
|
|
|
$(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \
|
|
|
|
$(XINC) $(STDLFLAGS) $(MYSQLLOAD) \
|
1998-01-29 12:39:44 +00:00
|
|
|
- $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm $(LIBS)
|
1997-09-02 15:06:32 +00:00
|
|
|
- ./$(PROGRAM)
|
1998-01-29 12:39:44 +00:00
|
|
|
+ $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm $(LIBS)
|
1997-09-02 15:06:32 +00:00
|
|
|
|
|
|
|
.c.o:
|
1998-01-29 12:39:44 +00:00
|
|
|
$(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(MYSQLDBDIR) $(XINC)
|