projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
set -O0 for debug builds
[project/uci.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
a738f53
..
c136915
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,5
+1,9
@@
-COPTS=-g -O2
-CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror $(if $(DEBUG),-DDEBUG_ALL)
+COPTS=-O2
+CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror
+ifneq ($(DEBUG),)
+ COPTS = -O0
+ CFLAGS += -g3 -DDEBUG_ALL
+endif
AR=ar
CC=gcc
AR=ar
CC=gcc
@@
-11,7
+15,7
@@
cli.o: cli.c uci.h
uci: cli.o libuci.a
$(CC) $(CFLAGS) -o $@ $^
uci: cli.o libuci.a
$(CC) $(CFLAGS) -o $@ $^
-libuci.o: libuci.c file.c uci.h list.c err.h
+libuci.o: libuci.c file.c uci.h list.c err.h
util.c
libuci.a: libuci.o
rm -f $@
$(AR) rc $@ $^
libuci.a: libuci.o
rm -f $@
$(AR) rc $@ $^