Create config parser and read config from file

This commit is contained in:
2024-04-08 18:45:40 +01:00
parent c6d01fd8ca
commit 784e0a0f91
4 changed files with 339 additions and 55 deletions

View File

@@ -1,11 +1,10 @@
.POSIX:
CFLAGS += -Wall -Wextra -pedantic -std=c99
#CFLAGS += -ggdb
CFLAGS += -flto -O2
rotagen: rotagen.o Makefile
$(CC) $(CFLAGS) $(LDFLAGS) -o rotagen rotagen.o
rotagen: rotagen.o conf_reader.o Makefile
$(CC) $(CFLAGS) $(LDFLAGS) -o rotagen rotagen.o conf_reader.o
rotagen.o: rotagen.c rotagen.h Makefile
conf_reader.o: conf_reader.c rotagen.h Makefile