mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Dont overload DEBUG, use FDEBUG.
This commit is contained in:
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
|
||||
.PHONY: clean update-index.html upload-index.html
|
||||
@ -10,8 +10,7 @@ OS!= uname
|
||||
REL!= uname -r
|
||||
DATE!= date +%Y%m%d-%H%M
|
||||
|
||||
# This must be empty as OpenBSD includes it in default CFLAGS.
|
||||
DEBUG=
|
||||
FDEBUG= 1
|
||||
|
||||
META?= \002 # C-b
|
||||
|
||||
@ -56,7 +55,7 @@ CFLAGS+= -DMETA="'${META}'"
|
||||
CC= /usr/bin/gcc
|
||||
CFLAGS+= -pg -DPROFILE -O0
|
||||
.endif
|
||||
.ifdef DEBUG
|
||||
.ifdef FDEBUG
|
||||
CFLAGS+= -g -ggdb -DDEBUG
|
||||
LDFLAGS+= -Wl,-E
|
||||
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\""
|
||||
@ -112,8 +111,8 @@ depend:
|
||||
mkdep ${CFLAGS} ${INCDIRS} ${SRCS:M*.c}
|
||||
|
||||
dist: clean
|
||||
grep '^#DEBUG=' Makefile
|
||||
grep '^#DEBUG=' GNUmakefile
|
||||
grep '^#FDEBUG=' Makefile
|
||||
grep '^#FDEBUG=' GNUmakefile
|
||||
[ "`(grep '^VERSION' Makefile; grep '^VERSION' GNUmakefile)| \
|
||||
uniq -u`" = "" ]
|
||||
tar -zc \
|
||||
|
Reference in New Issue
Block a user