From 5999f4f951557b8123d6de757ae5acec298feb16 Mon Sep 17 00:00:00 2001 From: zenon Date: Mon, 21 May 2018 14:51:03 +0200 Subject: [PATCH] Initial commit --- .gitignore | 12 ++++++++++++ Makefile | 25 +++++++++++++++++++++++++ generator.c | 0 supervisor.c | 0 4 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 generator.c create mode 100644 supervisor.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f27df4f --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +supervisor +generator +*.o +*.json +*.sh +.vimrc +*.gch +Doxyfile +html/ +latex/ +*.tgz +*.pdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..764c9e1 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +#--------------------------------------------------------------------# +# @date 2018-05-21 # +# # +# Feedback Arc Set: An algorithm which removes cycles in a directed # +# graph by removing the least edges possible. # +#--------------------------------------------------------------------# + +CC = gcc +CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c + +.PHONY: all clean + +all: supervisor generator + +supervisor: supervisor.o + $(CC) $^ -o $@ + +generator: generator.o + $(CC) $^ -o $@ + +%.o: %.c + $(CC) $(CFLAGS) $^ + +clean: + rm -f supervisor.o supervisor generator.o generator diff --git a/generator.c b/generator.c new file mode 100644 index 0000000..e69de29 diff --git a/supervisor.c b/supervisor.c new file mode 100644 index 0000000..e69de29