Makefile-ccan 363 B

1234567891011
  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. CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I.
  5. CFILES=$(wildcard ccan/*/[a-z]*.c)
  6. OBJFILES=$(CFILES:.c=.o)
  7. libccan.a: $(OBJFILES)
  8. $(AR) r $@ $^