From d33f03a0b40d992c1fe44256a5e9c212e2eddcea Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 1 Sep 2022 15:28:20 +0200 Subject: [PATCH] :fire: put other libs in util --- Makefile | 18 +++++------------- libcmdapp | 1 - util | 2 +- 3 files changed, 6 insertions(+), 15 deletions(-) delete mode 160000 libcmdapp diff --git a/Makefile b/Makefile index 1c386ffa..accc51a4 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ test_dir += examples src := $(wildcard src/*.c) src += $(wildcard src/*/*.c) -CFLAGS += -Iutil/include -Iutil/libtermcolor/include -Iast/include -Ilibcmdapp/src -D_GNU_SOURCE +CFLAGS += -Iutil/include -Iast/include -D_GNU_SOURCE CFLAGS += -Iast/libprettyerr/src -Ifmt/include # add commit hash to version for now @@ -58,9 +58,9 @@ ifeq ($(shell uname), Linux) LDFLAGS += -lrt endif -ALMOST_LIBS := libcmdapp/libcmdapp.a fmt/libgwion_fmt.a +ALMOST_LIBS := fmt/libgwion_fmt.a ALMOST_LIBS += ast/libgwion_ast.a ast/libprettyerr/libprettyerr.a -ALMOST_LIBS += util/libgwion_util.a util/libtermcolor/libtermcolor.a +ALMOST_LIBS += util/libgwion_util.a GWLIBS := lib${PRG}.a ${ALMOST_LIBS} LDFLAGS := ${GWLIBS} ${LDFLAGS} @@ -88,9 +88,6 @@ lto: lib${PRG}.a: ${lib_obj} @${AR} ${AR_OPT} -util/libtermcolor/libtermcolor.a: - @+${MAKE} BUILD_ON_WINDOWS=${BUILD_ON_WINDOWS} -s -C util/libtermcolor static - util/libgwion_util.a: @+${MAKE} -s -C util @@ -100,14 +97,11 @@ util: util/libgwion_util.a ast/libgwion_ast.a: util/libgwion_util.a @+ ${MAKE} -s -C ast -libcmdapp/libcmdapp.a: - @+CFLAGS=-I$(shell pwd)/util/libtermcolor/include ${MAKE} -s -C libcmdapp static - fmt/libgwion_fmt.a: ast/libgwion_ast.a @+${MAKE} -s -C fmt libgwion_fmt.a -ast/libprettyerr/libprettyerr.a: - @+CFLAGS=-I$(shell pwd)/util/libtermcolor/include ${MAKE} -s -C ast/libprettyerr static +ast/libprettyerr/libprettyerr.a: options-show + @+CFLAGS=-I$(shell pwd)/util/include ${MAKE} -s -C ast/libprettyerr static ast: ast/libgwion_ast.a @(info build ast) @@ -123,12 +117,10 @@ clean_core: @rm -f core.* *vgcore.* clean-all: clean - ${MAKE} -s -C libcmdapp clean ${MAKE} -s -C fmt clean ${MAKE} -s -C ast clean ${MAKE} -s -C ast/libprettyerr clean ${MAKE} -s -C util clean - ${MAKE} -s -C util/libtermcolor clean update: clean-all bash scripts/update.sh diff --git a/libcmdapp b/libcmdapp deleted file mode 160000 index 625861f9..00000000 --- a/libcmdapp +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 625861f90f4989c5cbd0e0afc14779141bb721ba diff --git a/util b/util index 572b3631..f28a1fed 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit 572b36317b9d6ca5b2a794ef2a5901a0656e811e +Subproject commit f28a1fed2973e5bf1806961709e7ebab0275ae5f -- 2.43.0