diff --git a/problems/template/Makefile b/problems/template/Makefile new file mode 100644 index 0000000..ab746c4 --- /dev/null +++ b/problems/template/Makefile @@ -0,0 +1,14 @@ +all: lib.o main.o + gcc -Wall -o bin lib.o main.o + +lib.o: lib.c + gcc -c -Wall lib.c + +main.o: main.c + gcc -c -Wall main.c + +run: + ./bin + +clean: + rm *.o bin diff --git a/problems/template/lib.c b/problems/template/lib.c new file mode 100644 index 0000000..a82b12f --- /dev/null +++ b/problems/template/lib.c @@ -0,0 +1 @@ +#include "lib.h" diff --git a/problems/template/lib.h b/problems/template/lib.h new file mode 100644 index 0000000..6f70f09 --- /dev/null +++ b/problems/template/lib.h @@ -0,0 +1 @@ +#pragma once diff --git a/problems/template/main.c b/problems/template/main.c new file mode 100644 index 0000000..b769201 --- /dev/null +++ b/problems/template/main.c @@ -0,0 +1,5 @@ +#include "lib.h" + +int main() { + return 0; +}