1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-30 21:49:25 +00:00
freebsd-ports/ftp/xrmftp/files/patch-aa
Will Andrews cb2b64d73c Add xrmftp 1.2.4, a xforms-based FTP client.
PR:		17653
Prodded by:	Matt Heckaman <matt@LUCIDA.QC.CA>
Submitted by:	Matt Heckaman <matt@LUCIDA.QC.CA>
2000-04-01 12:31:44 +00:00

32 lines
1.3 KiB
Plaintext

--- Makefile Tue Nov 17 19:25:43 1998
+++ Makefile.new Sat Apr 1 06:43:11 2000
@@ -1,17 +1,20 @@
-CC=gcc
-XFORMSLIBPATH=/usr/X11R6/lib # path to xforms library
-XFORMSINCPATH=/usr/X11R6/include # path to xforms header file <forms.h>
-XLIBSPATH=/usr/X11R6/lib # path to standard X libraries
-XINCPATH=/usr/X11R6/include # path to standard X header files
-LIBS= -lm -lX11 -lforms # libraries
+X11BASE?=/usr/X11R6
+CC ?=gcc
+XFORMSLIBPATH=${X11BASE}/lib # path to xforms library
+XFORMSINCPATH=${X11BASE}/include # path to xforms header file <forms.h>
+XLIBSPATH=${X11BASE}/lib # path to standard X libraries
+XINCPATH=${X11BASE}/include # path to standard X header files
+LIBS= -lm -lX11 -lxforms # libraries
#EXTRALIBS=-lnsl -lsocket # additional libraries needed by some unices
SRC=xftp.c fd_xftp.c
OBJ=$(SRC:.c=.o)
EXE=xrmftp
-CFLAGS=-I/usr/include -I${XFORMSINCPATH} -I${XINCPATH}
-LDFLAGS=-L/usr/lib -L${XLIBSPATH} ${LIBS} ${EXTRALIBS} -L${XFORMSLIBPATH} -O3
+CFLAGS +=-I/usr/include -I${XFORMSINCPATH} -I${XINCPATH}
+LDFLAGS =-L/usr/lib -L${XLIBSPATH} ${LIBS} ${EXTRALIBS} -L${XFORMSLIBPATH} -O3
#------------------------------------------------------------------------------
+
+all: ${EXE}
${EXE}: ${OBJ}
${CC} ${LDFLAGS} -o ${EXE} ${OBJ}