blob: b3f04e379a6b00477f8c0c3d5409d7b2bbdde71c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
--- Makefile.orig Wed May 7 11:28:12 1997
+++ Makefile Sun Sep 27 12:19:42 1998
@@ -6,21 +6,26 @@
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
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."
@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"
@@ -33,6 +38,9 @@
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
|