From 44e48ddc2785b037abd202a8d38b2ef2e8c36600 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 14 Dec 2024 23:15:34 +1100 Subject: initial commit --- cfg/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cfg/Makefile (limited to 'cfg/Makefile') diff --git a/cfg/Makefile b/cfg/Makefile new file mode 100644 index 0000000..e10e70f --- /dev/null +++ b/cfg/Makefile @@ -0,0 +1,21 @@ +.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) -- cgit v1.2.3-54-g00ecf