diff --git a/dep/argoat/sub/testoasterror/.gitignore b/dep/argoat/dep/testoasterror/.gitignore similarity index 100% rename from dep/argoat/sub/testoasterror/.gitignore rename to dep/argoat/dep/testoasterror/.gitignore diff --git a/dep/argoat/sub/testoasterror/license.md b/dep/argoat/dep/testoasterror/license.md similarity index 100% rename from dep/argoat/sub/testoasterror/license.md rename to dep/argoat/dep/testoasterror/license.md diff --git a/dep/argoat/sub/testoasterror/readme.md b/dep/argoat/dep/testoasterror/readme.md similarity index 100% rename from dep/argoat/sub/testoasterror/readme.md rename to dep/argoat/dep/testoasterror/readme.md diff --git a/dep/argoat/sub/testoasterror/src/testoasterror.c b/dep/argoat/dep/testoasterror/src/testoasterror.c similarity index 100% rename from dep/argoat/sub/testoasterror/src/testoasterror.c rename to dep/argoat/dep/testoasterror/src/testoasterror.c diff --git a/dep/argoat/sub/testoasterror/src/testoasterror.h b/dep/argoat/dep/testoasterror/src/testoasterror.h similarity index 100% rename from dep/argoat/sub/testoasterror/src/testoasterror.h rename to dep/argoat/dep/testoasterror/src/testoasterror.h diff --git a/dep/argoat/sub/testoasterror/tests/main.c b/dep/argoat/dep/testoasterror/tests/main.c similarity index 100% rename from dep/argoat/sub/testoasterror/tests/main.c rename to dep/argoat/dep/testoasterror/tests/main.c diff --git a/dep/argoat/sub/testoasterror/tests/tests.c b/dep/argoat/dep/testoasterror/tests/tests.c similarity index 100% rename from dep/argoat/sub/testoasterror/tests/tests.c rename to dep/argoat/dep/testoasterror/tests/tests.c diff --git a/dep/argoat/makefile b/dep/argoat/makefile deleted file mode 100644 index 85de37a..0000000 --- a/dep/argoat/makefile +++ /dev/null @@ -1,44 +0,0 @@ -NAME = test -CC = gcc -FLAGS = -std=c99 -pedantic -g -FLAGS+= -Wall -Wextra -Werror=vla -Werror -Wno-unused-parameter - -BIND = bin -OBJD = obj -SUBD = sub -SRCD = src -TEST = test - -BINS = $(BIND)/argoat_sample_1 -BINS+= $(BIND)/argoat_sample_2 -BINS+= $(BIND)/argoat_sample_3 - -INCL = -I$(SRCD) -I$(SUBD)/testoasterror/src -DEP = $(SUBD)/testoasterror/src/testoasterror.h - -$(OBJD)/%.o: %.c - @echo "building object $@" - @mkdir -p $(@D) - @$(CC) $(INCL) $(FLAGS) -c -o $@ $< - -all: $(DEP) $(BINS) $(BIND)/$(NAME) - -$(DEP): - @git submodule update --init --recursive - -$(BIND)/argoat_sample_%: $(OBJD)/$(SRCD)/argoat.o $(OBJD)/$(TEST)/argoat_sample_%.o - @echo "compiling executable $@" - @mkdir -p $(@D) - @$(CC) -o $@ $^ $(LINK) - -$(BIND)/$(NAME): $(OBJD)/$(TEST)/main.o $(OBJD)/$(SUBD)/testoasterror/src/testoasterror.o - @echo "compiling executable $@" - @mkdir -p $(@D) - @$(CC) -o $@ $^ $(LINK) - -run: - @cd $(BIND) && ./$(NAME) - -clean: - @echo "cleaning" - @rm -rf $(BIND) $(OBJD) diff --git a/dep/argoat/sub/testoasterror/makefile b/dep/argoat/sub/testoasterror/makefile deleted file mode 100644 index 69a96d5..0000000 --- a/dep/argoat/sub/testoasterror/makefile +++ /dev/null @@ -1,39 +0,0 @@ -NAME = testoasterror -CC = gcc -FLAGS = -std=c99 -pedantic -g -FLAGS+= -Wall -Wextra -Werror=vla -Werror -VALGRIND = --show-leak-kinds=all --track-origins=yes --leak-check=full - -BIND = bin -OBJD = obj -SRCD = src -TESTS = tests - -INCL = -I$(SRCD) - -SRCS = $(SRCD)/testoasterror.c -SRCS+= $(TESTS)/main.c - -OBJS:= $(patsubst %.c,$(OBJD)/%.o,$(SRCS)) - -.PHONY: $(BIND)/$(NAME) - -$(OBJD)/%.o: %.c - @echo "building object $@" - @mkdir -p $(@D) - @$(CC) $(INCL) $(FLAGS) -c -o $@ $< - -$(BIND)/$(NAME): $(OBJS) - @echo "compiling executable $@" - @mkdir -p $(@D) - @$(CC) -o $@ $^ $(LINK) - -run: - @cd $(BIND) && ./$(NAME) - -leakgrind: $(BIND)/$(NAME) - @cd $(BIND) && valgrind $(VALGRIND) 2> ../valgrind.log ./$(NAME) - -clean: - @echo "cleaning" - @rm -rf $(BIND) $(OBJD) valgrind.log diff --git a/dep/configator/makefile b/dep/configator/makefile deleted file mode 100644 index 0ca9ee1..0000000 --- a/dep/configator/makefile +++ /dev/null @@ -1,41 +0,0 @@ -NAME = sample -CC = gcc -FLAGS = -std=c99 -pedantic -g -FLAGS+= -Wall -Wno-unused-parameter -Wextra -Werror=vla -Werror -VALGRIND = --show-leak-kinds=all --track-origins=yes --leak-check=full - -BIND = bin -OBJD = obj -SRCD = src -RESD = res - -INCL = -I$(SRCD) - -SRCS = $(SRCD)/example.c -SRCS+= $(SRCD)/configator.c - -OBJS:= $(patsubst $(SRCD)/%.c,$(OBJD)/$(SRCD)/%.o,$(SRCS)) - -.PHONY: all -all: $(BIND)/$(NAME) run - -$(OBJD)/%.o: %.c - @echo "building object $@" - @mkdir -p $(@D) - @$(CC) $(INCL) $(FLAGS) -c -o $@ $< - -$(BIND)/$(NAME): $(OBJS) - @echo "compiling executable $@" - @mkdir -p $(@D) - @$(CC) -o $@ $^ $(LINK) - @cp $(RESD)/test.ini $(BIND)/config.ini - -run: - @cd $(BIND) && ./$(NAME) - -leakgrind: $(BIND)/$(NAME) - @cd $(BIND) && valgrind $(VALGRIND) 2> ../valgrind.log ./$(NAME) - -clean: - @echo "cleaning" - @rm -rf $(BIND) $(OBJD) valgrind.log diff --git a/dep/dragonfail/makefile b/dep/dragonfail/makefile deleted file mode 100644 index 9982bf5..0000000 --- a/dep/dragonfail/makefile +++ /dev/null @@ -1,49 +0,0 @@ -NAME = dragonfail -CC = gcc -FLAGS = -std=c99 -pedantic -g -FLAGS+= -Wall -Wno-unused-parameter -Wextra -Werror=vla -Werror -VALGRIND = --show-leak-kinds=all --track-origins=yes --leak-check=full - -BIND = bin -OBJD = obj -SRCD = src -EXPD = example - -INCL = -I$(SRCD) -INCL+= -I$(EXPD) - -SRCS = $(EXPD)/example.c -SRCS+= $(SRCD)/dragonfail.c - -SRCS_OBJS := $(patsubst %.c,$(OBJD)/%.o,$(SRCS)) - -# aliases -.PHONY: final -final: $(BIND)/$(NAME) - -# generic compiling command -$(OBJD)/%.o: %.c - @echo "building object $@" - @mkdir -p $(@D) - @$(CC) $(INCL) $(FLAGS) -c -o $@ $< - -# final executable -$(BIND)/$(NAME): $(SRCS_OBJS) $(FINAL_OBJS) - @echo "compiling executable $@" - @mkdir -p $(@D) - @$(CC) -o $@ $^ $(LINK) - -run: - @cd $(BIND) && ./$(NAME) - -# tools -## valgrind memory leak detection -leak: $(BIND)/$(NAME) - @echo "# running valgrind" - rm -f valgrind.log - cd $(BIND) && valgrind $(VALGRIND) 2> ../valgrind.log ./$(NAME) - less valgrind.log -## repository cleaning -clean: - @echo "# cleaning" - rm -rf $(BIND) $(OBJD) valgrind.log diff --git a/dep/termbox_next/makefile b/dep/termbox_next/makefile deleted file mode 100644 index aa2270b..0000000 --- a/dep/termbox_next/makefile +++ /dev/null @@ -1,40 +0,0 @@ -NAME=termbox -CC=gcc -FLAGS+=-std=c99 -pedantic -Wall -Werror -g - -OS:=$(shell uname -s) -ifeq ($(OS),Linux) - FLAGS+=-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE -endif - -BIND=bin -SRCD=src -OBJD=obj -INCL=-I$(SRCD) - -SRCS=$(SRCD)/termbox.c -SRCS+=$(SRCD)/input.c -SRCS+=$(SRCD)/memstream.c -SRCS+=$(SRCD)/ringbuffer.c -SRCS+=$(SRCD)/term.c -SRCS+=$(SRCD)/utf8.c - -OBJS:=$(patsubst $(SRCD)/%.c,$(OBJD)/$(SRCD)/%.o,$(SRCS)) - -.PHONY:all -all:$(BIND)/$(NAME).a - -$(OBJD)/%.o:%.c - @echo "building source object $@" - @mkdir -p $(@D) - @$(CC) $(INCL) $(FLAGS) -c -o $@ $< - -$(BIND)/$(NAME).a:$(OBJS) - @echo "compiling $@" - @mkdir -p $(BIND) - @ar rvs $(BIND)/$(NAME).a $(OBJS) - -clean: - @echo "cleaning workspace" - @rm -rf $(BIND) - @rm -rf $(OBJD)