Mercurial > hg > cdb
diff Makefile @ 13:0a35d8de4296
support profiling with gprof
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Fri, 07 Feb 2025 14:43:27 +0000 |
| parents | 0e21568dec72 |
| children | 70f4df5a7283 |
line wrap: on
line diff
--- a/Makefile Mon Feb 03 17:31:23 2025 +0000 +++ b/Makefile Fri Feb 07 14:43:27 2025 +0000 @@ -222,6 +222,9 @@ it_debug: \ debug prog install instcheck +it_profile: \ +profile prog install instcheck + load: \ warn-auto.sh conf-ld ( cat warn-auto.sh; \ @@ -264,6 +267,11 @@ sed '1s/LDFLAGS/-s/' conf-ld.ac > conf-ld chmod +x conf-?? +profile: + sed "1s@FIXME@${HOME}@" conf-home.ac > conf-home + sed '1s/CFLAGS/-O2 -pg/' conf-cc.ac > conf-cc + sed '1s/LDFLAGS/-pg/' conf-ld.ac > conf-ld + chmod +x conf-?? prog: \ cdbget cdbmake cdbdump cdbstats cdbtest cdbmake-12 cdbmake-sv rts \ testzero libcdb.a
