2003-02-02 17:22:38 -05:00
|
|
|
$OpenBSD: patch-Makefile,v 1.6 2003/02/02 22:22:38 margarida Exp $
|
2002-12-29 13:28:25 -05:00
|
|
|
--- Makefile.orig Wed Nov 18 04:19:06 1998
|
2003-02-02 17:22:38 -05:00
|
|
|
+++ Makefile Sun Feb 2 22:08:06 2003
|
2000-01-31 01:44:11 -05:00
|
|
|
@@ -31,24 +31,23 @@
|
|
|
|
PROGRAM = xmysql
|
|
|
|
|
|
|
|
# PROGRAM install path
|
2002-12-29 13:28:25 -05:00
|
|
|
-INSTALLPATH = /usr/local/xmysql-1.10
|
2000-01-31 01:44:11 -05:00
|
|
|
+INSTALLPATH = ${PREFIX}/bin
|
|
|
|
|
|
|
|
# pixmap location
|
2002-12-29 13:28:25 -05:00
|
|
|
-XMYSQL_XPMPATH = /usr/local/xmysql-1.10
|
2000-04-09 05:13:22 -04:00
|
|
|
+XMYSQL_XPMPATH = ${PREFIX}/include/X11/pixmaps
|
2000-01-31 01:44:11 -05:00
|
|
|
|
|
|
|
# help path
|
2002-12-29 13:28:25 -05:00
|
|
|
-XMYSQL_HELPPATH = /usr/local/xmysql-1.10
|
2000-04-09 05:13:22 -04:00
|
|
|
+XMYSQL_HELPPATH = ${PREFIX}/lib/X11/xmysql
|
2000-01-31 01:44:11 -05:00
|
|
|
|
|
|
|
# Compilation Details
|
|
|
|
-CC = gcc
|
|
|
|
-STDCFLAGS = -g -c -O2 -Wall -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
|
|
|
|
+STDCFLAGS = $(CFLAGS) -DXMYSQL_XPMPATH=\"$(XMYSQL_XPMPATH)\" -DXMYSQL_HELPPATH=\"$(XMYSQL_HELPPATH)\"
|
|
|
|
STDLFLAGS =
|
|
|
|
-MYSQLINC = -I/usr/include/mysql
|
|
|
|
-MYSQLLOAD = -L/usr/lib/mysql -lmysqlclient
|
|
|
|
-XFORMLIBDIR = -L/usr/local/xforms
|
|
|
|
-XFORMINCDIR = -I/usr/local/xforms
|
|
|
|
-XINC =
|
|
|
|
-XLOAD = -L/usr/X11R6/lib -lX11
|
|
|
|
+MYSQLINC = -I${LOCALBASE}/include/mysql
|
|
|
|
+MYSQLLOAD = -L${LOCALBASE}/lib/mysql -lmysqlclient
|
2000-04-09 05:13:22 -04:00
|
|
|
+XFORMLIBDIR = -L${LOCALBASE}/lib
|
|
|
|
+XFORMINCDIR = -I${LOCALBASE}/include/X11
|
2002-12-29 13:28:25 -05:00
|
|
|
+XINC = -I${X11BASE}/include
|
|
|
|
+XLOAD = -L${X11BASE}/lib -lX11 -lGL -lXext
|
2000-01-31 01:44:11 -05:00
|
|
|
|
|
|
|
# objects needed for the program
|
|
|
|
OBJS = Xmysql.o \
|
2002-12-29 13:28:25 -05:00
|
|
|
@@ -56,21 +55,24 @@ OBJS = Xmysql.o \
|
|
|
|
Xmysql_cb.o \
|
2000-01-31 01:44:11 -05:00
|
|
|
XmysqlDB.o \
|
|
|
|
XmysqlErr.o
|
|
|
|
+
|
2002-12-29 13:28:25 -05:00
|
|
|
+all: ${PROGRAM}
|
|
|
|
|
2000-01-31 01:44:11 -05:00
|
|
|
${PROGRAM}: $(OBJS)
|
|
|
|
$(CC) -o ${PROGRAM} $(OBJS) $(MYSQLINC) $(XFORMINCDIR) \
|
|
|
|
$(XINC) $(STDLFLAGS) $(MYSQLLOAD) \
|
2002-07-19 14:26:18 -04:00
|
|
|
- $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm -lm
|
|
|
|
+ $(XLOAD) $(XFORMLIBDIR) -lforms -lXpm -lm -ljpeg
|
2000-01-31 01:44:11 -05:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
- $(CC) $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
|
|
|
|
+ $(CC) -c $*.c $(STDCFLAGS) $(XFORMINCDIR) $(MYSQLINC) $(XINC)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${PROGRAM} $(OBJS)
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(INSTALLPATH) $(XMYSQL_XPMPATH) $(XMYSQL_HELPPATH)
|
|
|
|
- install --mode=711 $(PROGRAM) $(INSTALLPATH)
|
|
|
|
- install --mode=744 mysql.xpm $(XMYSQL_XPMPATH)
|
|
|
|
- install --mode=744 sqlhelp.txt $(XMYSQL_HELPPATH)
|
2001-02-08 15:09:38 -05:00
|
|
|
+ install -s -m ${BINMODE} $(PROGRAM) $(INSTALLPATH)
|
2003-02-02 17:22:38 -05:00
|
|
|
+ install -m 444 mysql.xpm $(XMYSQL_XPMPATH)/Mysql.xpm
|
2002-12-29 13:28:25 -05:00
|
|
|
+ install -d -m 755 $(XMYSQL_HELPPATH)
|
|
|
|
+ install -m 444 sqlhelp.txt $(XMYSQL_HELPPATH)
|
2000-01-31 01:44:11 -05:00
|
|
|
|