diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-14 00:28:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-05-14 00:28:04 +0000 |
commit | 5436f6be193bf92d723738d2d89384d0e85fcbcb (patch) | |
tree | ec113bff003d38e1975bc5283faf808119dc09a4 | |
parent | 1b70993207ca8e4104bf87a5a3affd9b481413de (diff) | |
download | rtmux-5436f6be193bf92d723738d2d89384d0e85fcbcb.tar.gz rtmux-5436f6be193bf92d723738d2d89384d0e85fcbcb.tar.bz2 rtmux-5436f6be193bf92d723738d2d89384d0e85fcbcb.zip |
Sprinkle the magic anti-GCC-suckage for *BSD as well.
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.133 2009-05-14 00:17:37 nicm Exp $ +# $Id: Makefile,v 1.134 2009-05-14 00:28:04 nicm Exp $ .SUFFIXES: .c .o .PHONY: clean @@ -9,10 +9,18 @@ FDEBUG= 1 CC?= cc CFLAGS+= -DBUILD="\"$(VERSION)\"" -CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS} LDFLAGS+= -L/usr/local/lib LIBS+= -lncurses +# This sort of sucks but gets rid of the stupid warning and should work on +# most platforms... +CCV!= (${CC} -v 2>&1|awk '/gcc version 4/ { print $0 }') || true +.if "${CCV}" == "" +CPPFLAGS:= -I. -I- -I/usr/local/include ${CPPFLAGS} +.else +CPPFLAGS:= -iquote. -I/usr/local/include ${CPPFLAGS} +.endif + .ifdef FDEBUG LDFLAGS+= -Wl,-E CFLAGS+= -g -ggdb -DDEBUG |