42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
$NetBSD: patch-aa,v 1.3 2000/09/03 10:11:07 wiz Exp $
|
|
--- Makefile.orig Wed May 7 18:28:12 1997
|
|
+++ Makefile Fri May 5 17:19:44 2000
|
|
@@ -6,21 +6,24 @@
|
|
HPFLAGS = -O -D_HPUX_SOURCE
|
|
SUNFLAGS = -O
|
|
LINUXFLAGS = -O
|
|
+BSDFLAGS= -O -DPREFIX=\"${PREFIX}/share/xworm\"
|
|
|
|
-INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
|
|
+INCDIR = -I${X11BASE}/include -I/usr/include -I${PREFIX}/include
|
|
|
|
HPLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm
|
|
SUNLINK = -L/usr/local/lib/X11R5 -lXt -lX11 -lm -lsocket -lnsl -lICE -lSM
|
|
LINUXLINK = -L/usr/X11R6/lib -lXt -lX11 -lm
|
|
+BSDLINK = -L${X11BASE}/lib -Wl,-R${X11BASE}/lib -lXt -lX11 -lm
|
|
|
|
all:
|
|
@echo "Makefile for XWorm v1.02 - written by The Last Viking (C) 1995-97 Ekran Design."
|
|
@echo " "
|
|
@echo "type:"
|
|
@echo " "
|
|
- @echo " make hp [HP/UX and similar systems]"
|
|
- @echo " make sun [Sun-Os/SUN systems]"
|
|
- @echo " make linux [linux systems]"
|
|
+ @echo " make hp [HP/UX and similar systems]"
|
|
+ @echo " make sun [Sun-Os/SUN systems]"
|
|
+ @echo " make linux [linux systems]"
|
|
+ @echo " make bsd [BSD systems]"
|
|
@echo " "
|
|
@echo "xworm.font, xworm.grid and xworm.raw has to be in the same directory as xworm"
|
|
@echo "please check the Makefile if you have problems compiling the program"
|
|
@@ -33,6 +36,9 @@
|
|
|
|
linux: xworm.c
|
|
$(CC) $(LINUXFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
|
|
+
|
|
+bsd: xworm.c
|
|
+ $(CC) $(BSDFLAGS) $(INCDIR) xworm.c -o xworm $(BSDLINK)
|
|
|
|
clean:
|
|
rm -f core xworm
|