From 5d6930d2bf9f1e9bf4b44cbb7d35d37491caf893 Mon Sep 17 00:00:00 2001 From: nikto_b Date: Fri, 10 Apr 2026 22:58:26 +0300 Subject: [PATCH] Extract libhmmmm headers --- Makefile | 5 ++++- inc/device.h | 6 +++--- inc/mem.h | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 059100c..9832da3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ endif ifeq ($(MANIFEST_BUILD_DIR),) MANIFEST_BUILD_DIR := out/manifest endif +ifeq ($(HMMMM_LIB_DIR),) +HMMMM_LIB_DIR := "/home/nikto_b/Documents/baum/hmmmm/inc/pub" +endif SRC_DIR=src MANIFEST_SRC_DIR=manifest_src @@ -26,7 +29,7 @@ C_SOURCES=$(wildcard $(SRC_DIR)/*.c) MANIFEST_C_SOURCES=$(wildcard $(MANIFEST_SRC_DIR)/*.c) C_HEADERS=$(wildcard $(INC_DIR)/*.h) -C_INCLUDES=-I$(INC_DIR)/ +C_INCLUDES=-I$(INC_DIR)/ -I$(HMMMM_LIB_DIR) DISABLE_FLAGS=-Wno-unused-variable -Wno-unused-parameter -Wno-write-strings -Wno-pointer-arith -Wno-analyzer-use-of-uninitialized-value PEDANTIC_FLAGS=-pedantic -pedantic-errors $(DISABLE_FLAGS) -Wall -Wcast-align -Wcast-qual -Wconversion -Wduplicated-branches -Wduplicated-cond -Werror -Wextra -Wfloat-equal -Wlogical-op -Wpedantic -Wredundant-decls -Wsign-conversion diff --git a/inc/device.h b/inc/device.h index f290805..72ba89e 100644 --- a/inc/device.h +++ b/inc/device.h @@ -5,9 +5,9 @@ #include "runner.h" #include "addrs.h" #include "mem.h" -#include "../../../inc/config.h" -#include "../../../inc/libhmmmm.h" -#include "../../../inc/libdevice.h" +#include +#include +#include #define SMART_ADDR_TYPE_GLOBAL 1 #define SMART_ADDR_TYPE_SEGMENTED 2 diff --git a/inc/mem.h b/inc/mem.h index 9b72bfb..f63e32e 100644 --- a/inc/mem.h +++ b/inc/mem.h @@ -3,7 +3,7 @@ #include #include -#include "../../../inc/libhmmmm.h" +#include #ifndef RAM_CELL_WORDS #define RAM_CELL_WORDS 1