# the autoconf utils can not run well on ms-windows, and it's # not easy to write a configure.ac for libraries. objs = spearl.o error.o klist.o srcs = spearl.c error.c klist.c target = libspearl.a CFLAGS = -Wall -Wextra -Werror -Iinclude -g MAKEFLAGS = --no-print-directory all : $(target) $(target) : $(srcs) $(objs) @$(AR) -cr $(target) $(objs) @echo -e "\tAR\t\t$(target)" s : $(target) @$(MAKE) $(MAKEFLAGS) -C samples/ %.o : %.c @$(CC) $*.c -c $(CFLAGS) @echo -e "\tCC\t\t$*.c" .PHONY clean : -rm -f $(target) $(objs) $(MAKE) $(MAKEFLAGS) -C samples/ clean