diff options
author | quou <quou@disroot.org> | 2024-12-14 23:15:34 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-14 23:19:17 +1100 |
commit | 44e48ddc2785b037abd202a8d38b2ef2e8c36600 (patch) | |
tree | f58887ce48f7fdbf6dcca365b2a1b02a34e1b355 /cfg/Makefile |
initial commit
Diffstat (limited to 'cfg/Makefile')
-rw-r--r-- | cfg/Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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) |