Simplify -I lines: change includes to ccan/
[ccan] / Makefile-ccan
1 # Example makefile which makes a "libccan.a" of everything under ccan/
2 # You could just do:
3 #       SRCFILES += $(shell find ccan/ -name '[a-z]*.c')
4
5 CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I.
6
7 CFILES=$(wildcard ccan/*/[a-z]*.c)
8 OBJFILES=$(CFILES:.c=.o)
9
10 libccan.a: $(OBJFILES)
11         $(AR) r $@ $^