projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more input validation
[project/uci.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
645ec65
..
ecfa8bc
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,12
+1,24
@@
+COPTS=-O2
+CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror
+ifneq ($(DEBUG),)
+ CFLAGS += -g3 -DDEBUG_ALL
+endif
+
+AR=ar
CC=gcc
CC=gcc
-CFLAGS=-g -O2 -Wall -pedantic -std=gnu99 -Wno-unused -Werror
+RANLIB=ranlib
+
+all: uci
-all: parsetest
-parsetest: libuci.o test.o
+cli.o: cli.c uci.h
+uci: cli.o libuci.a
$(CC) $(CFLAGS) -o $@ $^
$(CC) $(CFLAGS) -o $@ $^
-libuci.o: libuci.c parse.c uci.h list.c err.h
-test.o: test.c uci.h
+libuci.o: libuci.c file.c uci.h list.c err.h util.c
+libuci.a: libuci.o
+ rm -f $@
+ $(AR) rc $@ $^
+ $(RANLIB) $@
clean:
clean:
- rm -f
parsetest *.o
+ rm -f
uci *.[oa]