1998-12-27 19:30:33 +00:00
|
|
|
--- Makefile.orig Fri Oct 23 03:35:51 1998
|
|
|
|
+++ Makefile Fri Dec 25 14:53:40 1998
|
|
|
|
@@ -31,24 +31,23 @@
|
1997-09-02 14:56:45 +00:00
|
|
|
PROGRAM = xmysql
|
|
|
|
|
|
|
|
# PROGRAM install path
|
1998-12-27 19:30:33 +00:00
|
|
|
-INSTALLPATH = /usr/local/xmysql-1.9
|
|
|
|
+INSTALLPATH = ${PREFIX}/bin
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# pixmap location
|
1998-12-27 19:30:33 +00:00
|
|
|
-XMYSQL_XPMPATH = /usr/local/xmysql-1.9
|
1998-01-29 12:26:03 +00:00
|
|
|
+XMYSQL_XPMPATH = ${X11BASE}/include/X11/pixmaps
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# help path
|
1998-12-27 19:30:33 +00:00
|
|
|
-XMYSQL_HELPPATH = /usr/local/xmysql-1.9
|
1998-01-29 12:26:03 +00:00
|
|
|
+XMYSQL_HELPPATH = ${X11BASE}/lib/X11/xmysql
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# Compilation Details
|
|
|
|
-CC = gcc
|
1998-01-29 12:26:03 +00:00
|
|
|
-STDCFLAGS = -g -c -O2 -Wall -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
|
|
|
|
+STDCFLAGS = $(CFLAGS) -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
|
1997-09-02 14:56:45 +00:00
|
|
|
STDLFLAGS =
|
1998-12-27 19:30:33 +00:00
|
|
|
-MYSQLINC = -I/usr/include/mysql
|
|
|
|
-MYSQLLOAD = -L/usr/lib/mysql -lmysqlclient
|
|
|
|
-XFORMLIBDIR = -L/usr/local/xforms
|
|
|
|
-XFORMINCDIR = -I/usr/local/xforms
|
|
|
|
+MYSQLINC = -I${LOCALBASE}/include/mysql
|
|
|
|
+MYSQLLOAD = -L${LOCALBASE}/lib/mysql -lmysqlclient
|
1998-01-29 12:26:03 +00:00
|
|
|
+XFORMLIBDIR = -L${X11BASE}/lib
|
|
|
|
+XFORMINCDIR = -I${X11BASE}/include
|
1997-09-02 14:56:45 +00:00
|
|
|
XINC =
|
|
|
|
-XLOAD = -L/usr/X11R6/lib -lX11
|
1998-12-27 19:30:33 +00:00
|
|
|
+XLOAD = -L${X11BASE}/lib -lX11
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# objects needed for the program
|
|
|
|
OBJS = Xmysql.o \
|
1998-12-27 19:30:33 +00:00
|
|
|
@@ -57,20 +56,23 @@
|
1997-09-02 14:56:45 +00:00
|
|
|
XmysqlDB.o \
|
|
|
|
XmysqlErr.o
|
1998-01-29 12:26:03 +00:00
|
|
|
|
1998-12-27 19:30:33 +00:00
|
|
|
+all: ${PROGRAM}
|
|
|
|
+
|
1997-09-02 14:56:45 +00:00
|
|
|
${PROGRAM}: $(OBJS)
|
|
|
|
$(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \
|
|
|
|
$(XINC) $(STDLFLAGS) $(MYSQLLOAD) \
|
|
|
|
- $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm -lm
|
|
|
|
+ $(XLOAD) $(XFORMLIBDIR) -lxforms -lXpm -lm
|
|
|
|
|
|
|
|
.c.o:
|
1998-01-29 12:26:03 +00:00
|
|
|
- $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
|
|
|
|
+ $(CC) -c $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
|
|
|
|
|
|
|
|
clean:
|
1997-09-02 14:56:45 +00:00
|
|
|
rm -f ${PROGRAM} $(OBJS)
|
|
|
|
|
|
|
|
install:
|
1998-12-27 19:30:33 +00:00
|
|
|
install -d $(INSTALLPATH) $(XMYSQL_XPMPATH) $(XMYSQL_HELPPATH)
|
1997-09-02 14:56:45 +00:00
|
|
|
- install --mode=711 $(PROGRAM) $(INSTALLPATH)
|
1998-12-27 19:30:33 +00:00
|
|
|
- install --mode=744 mysql.xpm $(XMYSQL_XPMPATH)
|
|
|
|
- install --mode=744 sqlhelp.txt $(XMYSQL_HELPPATH)
|
1997-09-02 14:56:45 +00:00
|
|
|
+ install -s -m 511 $(PROGRAM) $(INSTALLPATH)
|
1998-01-29 12:26:03 +00:00
|
|
|
+ install -m 444 mysql.xpm $(XMYSQL_XPMPATH)
|
|
|
|
+ install -d -m 755 $(XMYSQL_HELPPATH)
|
|
|
|
+ install -m 444 sqlhelp.txt $(XMYSQL_HELPPATH)
|
1998-12-27 19:30:33 +00:00
|
|
|
|