aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-06-18 20:11:25 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-06-18 20:11:25 +0000
commitbe53d7f298bb81297ff0d186f9ddb585a2e57198 (patch)
treef461c861805dc1694884e772a7c07bfe64f14a3d /GNUmakefile
parent0d5ad358ae3bc80cbf226f5aef5790ca1e1f430c (diff)
downloadrtmux-be53d7f298bb81297ff0d186f9ddb585a2e57198.tar.gz
rtmux-be53d7f298bb81297ff0d186f9ddb585a2e57198.tar.bz2
rtmux-be53d7f298bb81297ff0d186f9ddb585a2e57198.zip
More Sun OS crap.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8d5b659e..52a30441 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# $Id: GNUmakefile,v 1.23 2008-06-18 19:52:29 nicm Exp $
+# $Id: GNUmakefile,v 1.24 2008-06-18 20:11:25 nicm Exp $
.PHONY: clean
@@ -7,7 +7,7 @@ VERSION= 0.4
DATE= $(shell date +%Y%m%d-%H%M)
-DEBUG= 1
+#DEBUG= 1
META?= \002
@@ -55,7 +55,9 @@ ifeq ($(shell uname),SunOS)
INCDIRS+= -Icompat
SRCS+= compat/strtonum.c compat/daemon.c compat/forkpty-sunos.c
CFLAGS+= -DNO_STRTONUM -DNO_TREE_H -DNO_PATHS_H -DNO_SETPROCTITLE \
- -DNO_DAEMON -DNO_FORKPTY
+ -DNO_DAEMON -DNO_FORKPTY -DNO_PROGNAME
+LDFLAGS+= -L/opt/csw/lib
+LIBS+= -lsocket -lnsl
endif
ifeq ($(shell uname),Darwin)
@@ -71,7 +73,7 @@ SRCS+= compat/strlcpy.c compat/strlcat.c compat/strtonum.c
CFLAGS+= $(shell getconf LFS_CFLAGS) -D_GNU_SOURCE \
-DNO_STRLCPY -DNO_STRLCAT -DNO_STRTONUM -DNO_SETPROCTITLE \
-DNO_QUEUE_H -DNO_TREE_H -DUSE_PTY_H
-LDFLAGS+= -lrt -lutil
+LIBS+= -lrt -lutil
# Required for LLONG_MAX and friends
CFLAGS+= -std=c99
endif