blob: 995a826fae886ef60bde3c2f6ec245621e24fec0 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
$NetBSD: patch-aa,v 1.4 2006/12/19 12:40:48 rillig Exp $
--- Makefile.orig Fri Jan 25 13:42:54 2002
+++ Makefile
@@ -8,23 +8,27 @@
###################
# change this to your favorite ANSI C compiler
-CC = gcc
+CC? = gcc
# change this to the directory where you want the xtris binaries installed
-BINDIR = /usr/local/bin
+BINDIR = ${PREFIX}/bin
# change this to the directory where you want the xtris manpages installed
-MANDIR = /usr/local/man
+MANDIR = ${PREFIX}/man
# change according to taste and local custom...
-CFLAGS = -O3 -D__USE_FIXED_PROTOTYPES__
+CFLAGS += -D__USE_FIXED_PROTOTYPES__ $(IPV6_CFLAGS)
# on Solaris and similar systems, you'll need to uncomment this:
-# EXTRALIBS = -lnsl -lsocket
-
-# specify X11 libdir if your system needs it
-# XLIBDIR = -L/usr/X11/lib
+EXTRALIBS = $(IPV6_LDFLAGS) $(LIBS) #-lnsl -lsocket
+# specify X11 cflags and libdir if your system needs it
+XCFLAGS = -I${X11BASE}/include -Wl,-R${X11BASE}/lib
+XLIBDIR = -L${X11BASE}/lib
+
+# IPv6 Settings
+IPV6_CFLAGS = #-DINET6 #-I/usr/inet6/include
+IPV6_LDFLAGS = #-L/usr/local/v6/lib -linet6
###########################################################################
## You shouldn't need to change anything past this. ##
@@ -35,7 +39,7 @@
all: xtris xtserv xtbot
xtris: xtris.c
- $(CC) $(CFLAGS) -DXTRISPATH="\"$(BINDIR)\"" xtris.c -o xtris $(XLIBDIR) $(XLIBS) $(EXTRALIBS)
+ $(CC) $(CFLAGS) $(XCFLAGS) -DXTRISPATH="\"$(BINDIR)\"" xtris.c -o xtris $(XLIBDIR) $(XLIBS) $(EXTRALIBS)
xtserv: xtserv.c
$(CC) $(CFLAGS) xtserv.c -o xtserv $(EXTRALIBS)
@@ -60,6 +64,6 @@
rm -f xtris.tar.gz
mv -f Makefile Makefile.local
cp Makefile.dist Makefile
- cd .. ; tar cf xtris/xtris.tar xtris/Makefile xtris/Makefile.dist xtris/README xtris/ChangeLog xtris/COPYING xtris/PROTOCOL xtris/xtris.lsm xtris/xtris.c xtris/xtserv.c xtris/xtbot.c xtris/xtbot.h xtris/decide.c xtris/decide.h xtris/xtris.6 xtris/xtserv.6 xtris/xtbot.6 ; gzip -9 xtris/xtris.tar
+ cd .. ; tar cf xtris/xtris.tar xtris/Makefile xtris/Makefile.dist xtris/README xtris/README.v6 xtris/ChangeLog xtris/COPYING xtris/PROTOCOL xtris/xtris.lsm xtris/xtris.c xtris/xtserv.c xtris/xtbot.c xtris/xtbot.h xtris/decide.c xtris/decide.h xtris/xtris.6 xtris/xtserv.6 xtris/xtbot.6 ; gzip -9 xtris/xtris.tar
mv -f Makefile.local Makefile
|