From 7b2cd9527805ba52d5bcc6131d80373f0c4149f8 Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Thu, 19 Jan 2023 12:26:53 +0100 Subject: [PATCH] feat: adjust back-end --- back-end/main.c | 1 + back-end/makefile | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/back-end/main.c b/back-end/main.c index f651a28..271614e 100644 --- a/back-end/main.c +++ b/back-end/main.c @@ -23,6 +23,7 @@ int main(int argc, char *argv[]) { config_init(&cfg); /* Read the file. If there is an error, report it and exit. */ + /*TODO Make sure argv is a valid file name!*/ if(! config_read_file(&cfg, argv[1])) { fprintf(stderr, "%s:%d - %s\n", config_error_file(&cfg), diff --git a/back-end/makefile b/back-end/makefile index 24a0576..9931a7a 100644 --- a/back-end/makefile +++ b/back-end/makefile @@ -1,17 +1,6 @@ -# Docu # -#$@ is the name of the file to be made -#$? is the names of the changed dependents -#$< the name of the related file that caused the action -#$* the prefix shared by target and dependent files -# -# Others RM = /bin/rm -f -# -# Source, Executable, Includes, Library Defines EXE = main -# -# Compiler, Linker Defines CC = /usr/bin/gcc # all: main.o @@ -19,6 +8,6 @@ all: main.o # main.o: $(CC) -c main.c -# Clean Up Objects, Exectuables, Dumps out of source directory +# clean: $(RM) *.o $(EXE) *~