Lines 1-5
Link Here
|
1 |
--- Makefile.orig Tue Jan 28 13:03:48 2003 |
1 |
--- Makefile.orig 2002-10-12 19:28:00.000000000 +0200 |
2 |
+++ Makefile Tue Jan 28 13:04:35 2003 |
2 |
+++ Makefile 2014-06-08 21:23:13.000000000 +0200 |
3 |
@@ -1,23 +1,23 @@ |
3 |
@@ -1,23 +1,23 @@ |
4 |
#configureable stuff |
4 |
#configureable stuff |
5 |
-PREFIX ?= /usr/local |
5 |
-PREFIX ?= /usr/local |
Lines 7-15
Link Here
|
7 |
-MANDIR ?= $(PREFIX)/share/man/man1 |
7 |
-MANDIR ?= $(PREFIX)/share/man/man1 |
8 |
-LIBDIR ?= $(PREFIX)/lib/sendip |
8 |
-LIBDIR ?= $(PREFIX)/lib/sendip |
9 |
+#PREFIX ?= /usr/local |
9 |
+#PREFIX ?= /usr/local |
10 |
+BINDIR=${PREFIX}/bin |
10 |
+BINDIR=${DESTDIR}${PREFIX}/bin |
11 |
+MANDIR=${PREFIX}/man/man1 |
11 |
+MANDIR=${DESTDIR}${PREFIX}/man/man1 |
12 |
+LIBDIR=${PREFIX}/lib/sendip |
12 |
+LIBDIR=${DESTDIR}${PREFIX}/lib/sendip |
13 |
#For most systems, this works |
13 |
#For most systems, this works |
14 |
-INSTALL ?= install |
14 |
-INSTALL ?= install |
15 |
+INSTALL?=install |
15 |
+INSTALL?=install |
Lines 16-27
Link Here
|
16 |
#For Solaris, you may need |
16 |
#For Solaris, you may need |
17 |
#INSTALL=/usr/ucb/install |
17 |
#INSTALL=/usr/ucb/install |
18 |
|
18 |
|
19 |
CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ |
19 |
-CFLAGS= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ |
20 |
-Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ |
20 |
- -Wstrict-prototypes -Wnested-externs -Winline -Werror -g -Wcast-align \ |
21 |
- -DSENDIP_LIBS=\"$(LIBDIR)\" |
21 |
- -DSENDIP_LIBS=\"$(LIBDIR)\" |
|
|
22 |
+CFLAGS+= -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings \ |
23 |
+ -Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align \ |
22 |
+ -DSENDIP_LIBS=\"${LIBDIR}\" |
24 |
+ -DSENDIP_LIBS=\"${LIBDIR}\" |
23 |
#-Wcast-align causes problems on solaris, but not serious ones |
25 |
#-Wcast-align causes problems on solaris, but not serious ones |
24 |
LDFLAGS= -g -rdynamic -lm |
26 |
-LDFLAGS= -g -rdynamic -lm |
|
|
27 |
+LDFLAGS+= -rdynamic -lm |
25 |
#LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm |
28 |
#LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm |
26 |
LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl |
29 |
LDFLAGS_SOLARIS= -g -lsocket -lnsl -lm -ldl |
27 |
LDFLAGS_LINUX= -g -rdynamic -ldl -lm |
30 |
LDFLAGS_LINUX= -g -rdynamic -ldl -lm |