Properly declare the library headers as dependencies.

This commit is contained in:
David Given 2016-11-05 11:47:36 +01:00
parent db03785109
commit 7f64fe96c7
7 changed files with 16 additions and 5 deletions

View file

@ -4,7 +4,8 @@ clibrary {
hdrs = { "./alloc.h" }, hdrs = { "./alloc.h" },
deps = { deps = {
"modules+headers", "modules+headers",
"modules/src/system+lib" "modules/src/system+lib",
"./*.h"
}, },
} }

View file

@ -19,7 +19,8 @@ clibrary {
}, },
hdrs = { "./flt_arith.h" }, hdrs = { "./flt_arith.h" },
deps = { deps = {
"modules+headers" "modules+headers",
"./*.h",
} }
} }

View file

@ -5,6 +5,7 @@ clibrary {
"modules+headers", "modules+headers",
"h+local", "h+local",
"h+emheaders", "h+emheaders",
"./*.h",
}, },
} }

View file

@ -4,7 +4,8 @@ clibrary {
hdrs = { "./print.h" }, hdrs = { "./print.h" },
deps = { deps = {
"modules+headers", "modules+headers",
"modules/src/system+lib" "modules/src/system+lib",
"./*.h"
} }
} }

View file

@ -54,6 +54,7 @@ local function variant(name, cflags)
"modules/src/em_code+headers", "modules/src/em_code+headers",
"modules/src/em_data+lib", "modules/src/em_data+lib",
"modules/src/system+lib", "modules/src/system+lib",
"./*.h",
} }
} }
end end

View file

@ -1,7 +1,10 @@
clibrary { clibrary {
name = "lib", name = "lib",
srcs = { "./*.c" }, srcs = { "./*.c" },
deps = { "modules+headers" }, deps = {
"modules+headers",
"./*.h"
},
} }

View file

@ -2,7 +2,10 @@ clibrary {
name = "lib", name = "lib",
srcs = { "./*.c" }, srcs = { "./*.c" },
hdrs = { "./system.h" }, hdrs = { "./system.h" },
deps = { "modules+headers" }, deps = {
"modules+headers",
"./*.h"
},
} }