.POSIX: target = libcfg.a includes = -I../qstd cflags = -std=c90 -pedantic -Wall -Wextra $(DEBUG_COMPILE_FLAG) $(includes) lflags = $(DEBUG_LINK_FLAG) objects = cfgparse.o .PHONY: all clean all: $(target) cfgparse.o: cfgparse.c cfgparse.h $(CC) -c $(cflags) cfgparse.c -o cfgparse.o $(target): $(objects) $(AR) -rcs $(target) $(objects) clean: rm -f $(target) rm -f $(objects)