From 16d41a674e5274a2a23940424936996e99d792ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Palmborg?= Date: Thu, 1 Apr 2021 00:28:03 +0200 Subject: [PATCH] Init: description and makefile template --- README.md | 10 +++++++++- c11-template/Makefile | 11 +++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 c11-template/Makefile diff --git a/README.md b/README.md index bd6e06a..e5cbffc 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# competitive-programming \ No newline at end of file +# competitive-programming + +Solutions to problems from various competitive programming sites. + +Beware of old, questionable-looking, code. + +* More general solutions can be found under the directory 'algorithms-and-datastructures' +* Problems found at 'Open Kattis' have been put in directory named after the problem title. +* Problems I could only find through 'Online Judge' (UVa) are prepended with a 'u' and the problem number at UVa. diff --git a/c11-template/Makefile b/c11-template/Makefile new file mode 100755 index 0000000..eb859a9 --- /dev/null +++ b/c11-template/Makefile @@ -0,0 +1,11 @@ +EXECUTABLE=tst +CC=g++ +CFLAGS=-lm -lcrypt -O2 -std=c++11 -Wall -Wextra -Werror -pipe -DONLINE_JUDGE +OBJ=main.cpp + +$(EXECUTABLE): $(OBJ) + $(CC) $(CFLAGS) -o $@ $(OBJ) + +.PHONY: clean +clean: + rm -rf $(EXECUTABLE)