mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-12 00:48:53 +01:00
Dont overload DEBUG, use FDEBUG.
This commit is contained in:
parent
8c259f562b
commit
48510fb56a
@ -1,4 +1,4 @@
|
|||||||
# $Id: GNUmakefile,v 1.65 2009-01-20 22:17:53 nicm Exp $
|
# $Id: GNUmakefile,v 1.66 2009-01-21 17:45:19 nicm Exp $
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ VERSION= 0.7
|
|||||||
|
|
||||||
DATE= $(shell date +%Y%m%d-%H%M)
|
DATE= $(shell date +%Y%m%d-%H%M)
|
||||||
|
|
||||||
DEBUG= 1
|
FDEBUG= 1
|
||||||
|
|
||||||
META?= \002
|
META?= \002
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ SRCS= tmux.c server.c server-msg.c server-fn.c buffer.c buffer-poll.c status.c \
|
|||||||
CC?= gcc
|
CC?= gcc
|
||||||
INCDIRS+= -I. -I-
|
INCDIRS+= -I. -I-
|
||||||
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
|
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
|
||||||
ifdef DEBUG
|
ifdef FDEBUG
|
||||||
CFLAGS+= -g -ggdb -DDEBUG
|
CFLAGS+= -g -ggdb -DDEBUG
|
||||||
LDFLAGS+= -rdynamic
|
LDFLAGS+= -rdynamic
|
||||||
LIBS+= -ldl
|
LIBS+= -ldl
|
||||||
|
11
Makefile
11
Makefile
@ -1,4 +1,4 @@
|
|||||||
# $Id: Makefile,v 1.104 2009-01-20 22:17:53 nicm Exp $
|
# $Id: Makefile,v 1.105 2009-01-21 17:45:19 nicm Exp $
|
||||||
|
|
||||||
.SUFFIXES: .c .o .y .h
|
.SUFFIXES: .c .o .y .h
|
||||||
.PHONY: clean update-index.html upload-index.html
|
.PHONY: clean update-index.html upload-index.html
|
||||||
@ -10,8 +10,7 @@ OS!= uname
|
|||||||
REL!= uname -r
|
REL!= uname -r
|
||||||
DATE!= date +%Y%m%d-%H%M
|
DATE!= date +%Y%m%d-%H%M
|
||||||
|
|
||||||
# This must be empty as OpenBSD includes it in default CFLAGS.
|
FDEBUG= 1
|
||||||
DEBUG=
|
|
||||||
|
|
||||||
META?= \002 # C-b
|
META?= \002 # C-b
|
||||||
|
|
||||||
@ -56,7 +55,7 @@ CFLAGS+= -DMETA="'${META}'"
|
|||||||
CC= /usr/bin/gcc
|
CC= /usr/bin/gcc
|
||||||
CFLAGS+= -pg -DPROFILE -O0
|
CFLAGS+= -pg -DPROFILE -O0
|
||||||
.endif
|
.endif
|
||||||
.ifdef DEBUG
|
.ifdef FDEBUG
|
||||||
CFLAGS+= -g -ggdb -DDEBUG
|
CFLAGS+= -g -ggdb -DDEBUG
|
||||||
LDFLAGS+= -Wl,-E
|
LDFLAGS+= -Wl,-E
|
||||||
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\""
|
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\""
|
||||||
@ -112,8 +111,8 @@ depend:
|
|||||||
mkdep ${CFLAGS} ${INCDIRS} ${SRCS:M*.c}
|
mkdep ${CFLAGS} ${INCDIRS} ${SRCS:M*.c}
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
grep '^#DEBUG=' Makefile
|
grep '^#FDEBUG=' Makefile
|
||||||
grep '^#DEBUG=' GNUmakefile
|
grep '^#FDEBUG=' GNUmakefile
|
||||||
[ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \
|
[ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \
|
||||||
uniq -u`" = "" ]
|
uniq -u`" = "" ]
|
||||||
tar -zc \
|
tar -zc \
|
||||||
|
Loading…
Reference in New Issue
Block a user