60 lines
1.6 KiB
Text
60 lines
1.6 KiB
Text
--- Makefile.orig 1993-06-05 02:32:01 UTC
|
|
+++ Makefile
|
|
@@ -18,18 +18,20 @@
|
|
# MANDIR is where the manual page will be installed.
|
|
|
|
DESTDIR=
|
|
-BINDIR=/usr/local/bin
|
|
-MANDIR=/usr/local/man/man1
|
|
+BINDIR=${PREFIX}/bin
|
|
+MANDIR=${PREFIX}/man/man1
|
|
|
|
# Where to find things
|
|
# INCFLAGS lists directories to search for header files
|
|
# LDFLAGS lists directories to search for libraries
|
|
# LIBS lists the necessary libraries (Motif, Xt, X11)
|
|
|
|
-INCFLAGS= -I/usr/lib/DXM/lib -I/usr/lib/DXM/lib/Xt
|
|
-LDFLAGS= -L/usr/lib/DXM/lib/Xm -L/usr/lib/DXM/lib/Xt
|
|
-LIBS= -lXm -lXt -lX11
|
|
+INCFLAGS= -I${LOCALBASE}/include
|
|
+LDFLAGS= -L${LOCALBASE}/lib
|
|
+LIBS= -lXm -lXt -lX11 -lXext
|
|
+LIBS_STATIC= -lXm -lXmu -lXt -lXext -lSM -lICE -lpng16 -lz -lm -ljpeg -lXft -lfontconfig -lexpat -lfreetype -lbz2 -lX11 -lXau -lxcb -lXdmcp -lXau -lXft -lXrender
|
|
|
|
+
|
|
CFLAGS= ${INCFLAGS} -O
|
|
|
|
# For CenterLine CodeCenter
|
|
@@ -39,20 +41,30 @@ SRCS= xforward.c
|
|
AUXFILES= README NOTICE Makefile xforward.1
|
|
|
|
PROGS = xforward
|
|
+PROGS_STATIC = xforward-static
|
|
|
|
+all-static: all ${PROGS_STATIC}
|
|
+
|
|
all: ${PROGS}
|
|
|
|
xforward: xforward.o
|
|
cc ${LDFLAGS} xforward.o -o xforward ${LIBS}
|
|
|
|
+xforward-static: xforward.o
|
|
+ cc ${LDFLAGS} -static xforward.o -o xforward-static ${LIBS_STATIC}
|
|
+
|
|
xforward.o: xforward.c
|
|
cc -c ${CFLAGS} xforward.c
|
|
|
|
install: ${PROGS}
|
|
install -c xforward ${DESTDIR}${BINDIR}/xforward
|
|
install -c xforward.1 ${DESTDIR}${MANDIR}/xforward.1
|
|
+
|
|
+install-static: install ${PROGS_STATIC}
|
|
+ install -c xforward-static ${DESTDIR}${BINDIR}/xforward-static
|
|
+
|
|
clean: ;
|
|
- rm -f *~ *.o core ${PROGS}
|
|
+ rm -f *~ *.o core ${PROGS} ${PROGS_STATIC}
|
|
|
|
center:
|
|
#load ${LDFLAGS} ${LIBS}
|