1998-01-29 12:26:03 +00:00
|
|
|
--- Makefile.orig Sun Nov 16 03:23:08 1997
|
|
|
|
+++ Makefile Thu Jan 29 13:23:58 1998
|
1997-09-02 14:56:45 +00:00
|
|
|
@@ -36,24 +36,24 @@
|
|
|
|
PROGRAM = xmysql
|
|
|
|
|
|
|
|
# PROGRAM install path
|
1998-01-29 12:26:03 +00:00
|
|
|
-INSTALLPATH = /xmysql-1.7
|
|
|
|
+INSTALLPATH = ${PREFIX}/bin
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# pixmap location
|
1998-01-29 12:26:03 +00:00
|
|
|
-XMYSQL_XPMPATH = /xmysql-1.7
|
|
|
|
+XMYSQL_XPMPATH = ${X11BASE}/include/X11/pixmaps
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# help path
|
1998-01-29 12:26:03 +00:00
|
|
|
-XMYSQL_HELPPATH = /xmysql-1.7
|
|
|
|
+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)\"
|
|
|
|
+#CC = gcc
|
|
|
|
+STDCFLAGS = $(CFLAGS) -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
|
1997-09-02 14:56:45 +00:00
|
|
|
STDLFLAGS =
|
|
|
|
MYSQLINC = -I/usr/local/include/mysql
|
|
|
|
MYSQLLOAD = -L/usr/local/lib/mysql -lmysqlclient -lmysys -ldbug -lmystrings
|
|
|
|
-XFORMLIBDIR = -L/usr/lib
|
|
|
|
-XFORMINCDIR = -I/usr/include
|
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-01-29 12:26:03 +00:00
|
|
|
+XLOAD = -L${X11BASE}/lib -lX11
|
1997-09-02 14:56:45 +00:00
|
|
|
|
|
|
|
# objects needed for the program
|
|
|
|
OBJS = Xmysql.o \
|
1998-01-29 12:26:03 +00:00
|
|
|
@@ -61,20 +61,22 @@
|
|
|
|
Xmysql_cb.o \
|
1997-09-02 14:56:45 +00:00
|
|
|
XmysqlDB.o \
|
|
|
|
XmysqlErr.o
|
|
|
|
+
|
1998-01-29 12:26:03 +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:
|
|
|
|
- install --mode=711 $(PROGRAM) $(INSTALLPATH)
|
1998-01-29 12:26:03 +00:00
|
|
|
- install --mode=744 mysql.xpm $(XPMPATH)
|
|
|
|
- install --mode=744 sqlhelp.txt $(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)
|