diff --git a/modules/src/em_code/build.lua b/modules/src/em_code/build.lua index e0218c009..a1316df2f 100644 --- a/modules/src/em_code/build.lua +++ b/modules/src/em_code/build.lua @@ -12,6 +12,17 @@ normalrule { } } +clibrary { + name = "headers", + srcs = {}, + hdrs = { + "+em_code_ek_h", + "./em_code.h", + "./em_codeCE.h", + "./em_codeO.h", + } +} + local function build_variant(code, cflags) clibrary { name = "lib_"..code, @@ -68,10 +79,10 @@ local function build_variant(code, cflags) "./ucon.c", }, hdrs = { - "+em_code_ek_h" + "+headers" }, deps = { - "+em_code_ek_h", + "+headers", "h+emheaders", "h+local", "modules+headers", diff --git a/modules/h/em_code.h b/modules/src/em_code/em_code.h similarity index 100% rename from modules/h/em_code.h rename to modules/src/em_code/em_code.h diff --git a/modules/h/em_codeCE.h b/modules/src/em_code/em_codeCE.h similarity index 100% rename from modules/h/em_codeCE.h rename to modules/src/em_code/em_codeCE.h diff --git a/modules/h/em_codeO.h b/modules/src/em_code/em_codeO.h similarity index 100% rename from modules/h/em_codeO.h rename to modules/src/em_code/em_codeO.h diff --git a/modules/src/em_mes/build.lua b/modules/src/em_mes/build.lua index 3c5b2f03e..b094f4a84 100644 --- a/modules/src/em_mes/build.lua +++ b/modules/src/em_mes/build.lua @@ -4,7 +4,7 @@ clibrary { deps = { "h+emheaders", "modules+headers", - "modules/src/em_code+em_code_ek_h", + "modules/src/em_code+headers", "modules/src/em_data+lib", } } diff --git a/modules/src/read_em/build.lua b/modules/src/read_em/build.lua index 767dc9f87..f559831bd 100644 --- a/modules/src/read_em/build.lua +++ b/modules/src/read_em/build.lua @@ -51,7 +51,7 @@ local function variant(name, cflags) "h+emheaders", "modules+headers", "modules/src/alloc+lib", - "modules/src/em_code+em_code_ek_h", + "modules/src/em_code+headers", "modules/src/em_data+lib", "modules/src/system+lib", }