mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Add profiling. Also some trivial optimisations to skip memcpying.
This commit is contained in:
10
Makefile
10
Makefile
@ -1,4 +1,4 @@
|
||||
# $Id: Makefile,v 1.9 2007-10-01 14:53:29 nicm Exp $
|
||||
# $Id: Makefile,v 1.10 2007-10-03 00:13:46 nicm Exp $
|
||||
|
||||
.SUFFIXES: .c .o .y .h
|
||||
.PHONY: clean
|
||||
@ -25,6 +25,11 @@ YACC= yacc -d
|
||||
CC= cc
|
||||
INCDIRS+= -I. -I- -I/usr/local/include
|
||||
CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
|
||||
.ifdef PROFILE
|
||||
# Don't use ccache
|
||||
CC= /usr/bin/gcc
|
||||
CFLAGS+= -pg -DPROFILE -O0
|
||||
.endif
|
||||
.ifdef DEBUG
|
||||
CFLAGS+= -g -ggdb -DDEBUG
|
||||
LDFLAGS+= -Wl,-E
|
||||
@ -40,6 +45,9 @@ INSTALLBIN= install -g bin -o root -m 555
|
||||
INSTALLMAN= install -g bin -o root -m 444
|
||||
|
||||
LDFLAGS+= -L/usr/local/lib
|
||||
.ifdef PROFILE
|
||||
LDFLAGS+= -pg
|
||||
.endif
|
||||
LIBS+= -lutil -lncurses
|
||||
|
||||
OBJS= ${SRCS:S/.c/.o/:S/.y/.o/}
|
||||
|
Reference in New Issue
Block a user