1998-09-28 02:32:25 +00:00
|
|
|
--- Makefile.orig Wed May 7 11:28:12 1997
|
|
|
|
+++ Makefile Sun Sep 27 12:19:42 1998
|
|
|
|
@@ -6,21 +6,26 @@
|
1998-07-04 19:31:54 +00:00
|
|
|
HPFLAGS = -O -D_HPUX_SOURCE
|
|
|
|
SUNFLAGS = -O
|
|
|
|
LINUXFLAGS = -O
|
|
|
|
+FREEBSDFLAGS= -O -DPREFIX=\"/usr/X11R6/share/xworm\"
|
|
|
|
|
|
|
|
INCDIR = -I/usr/include/X11R5 -I/usr/include -I/usr/X11R6/include
|
|
|
|
|
1998-09-28 02:32:25 +00:00
|
|
|
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
|
|
|
|
+.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
+LINUXLINK+= -Wl,-rpath,$(X11BASE)/lib
|
|
|
|
+.endif
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo "Makefile for XWorm v1.02 - written by The Last Viking (C) 1995-97 Ekran Design."
|
1998-07-04 19:31:54 +00:00
|
|
|
@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 freebsd [FreeBSD 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"
|
1998-09-28 02:32:25 +00:00
|
|
|
@@ -33,6 +38,9 @@
|
1998-07-04 19:31:54 +00:00
|
|
|
|
|
|
|
linux: xworm.c
|
|
|
|
$(CC) $(LINUXFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
|
|
|
|
+
|
|
|
|
+freebsd: xworm.c
|
|
|
|
+ $(CC) $(FREEBSDFLAGS) $(INCDIR) xworm.c -o xworm $(LINUXLINK)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f core xworm
|