mirror of
https://github.com/janet-lang/janet
synced 2025-02-23 11:40:01 +00:00
Include header path when building modules.
This commit is contained in:
parent
b61c9eb991
commit
7927078b49
1
Makefile
1
Makefile
@ -227,6 +227,7 @@ install: $(JANET_TARGET)
|
|||||||
mkdir -p $(JANET_PATH)
|
mkdir -p $(JANET_PATH)
|
||||||
cp tools/cook.janet $(JANET_PATH)
|
cp tools/cook.janet $(JANET_PATH)
|
||||||
cp tools/highlight.janet $(JANET_PATH)
|
cp tools/highlight.janet $(JANET_PATH)
|
||||||
|
cp tools/bars.janet $(JANET_PATH)
|
||||||
mkdir -p $(MANPATH)
|
mkdir -p $(MANPATH)
|
||||||
cp janet.1 $(MANPATH)
|
cp janet.1 $(MANPATH)
|
||||||
|
|
||||||
|
@ -94,7 +94,11 @@
|
|||||||
(def OPTIMIZE 2)
|
(def OPTIMIZE 2)
|
||||||
(def CC (if is-win "cl" "cc"))
|
(def CC (if is-win "cl" "cc"))
|
||||||
(def LD (if is-win "link" (string CC " -shared")))
|
(def LD (if is-win "link" (string CC " -shared")))
|
||||||
(def CFLAGS (string (if is-win "/O" "-std=c99 -Wall -Wextra -fpic -O") OPTIMIZE))
|
(def CFLAGS (string
|
||||||
|
(if is-win "/I" "-I")
|
||||||
|
module/*headerpath*
|
||||||
|
(if is-win " /O" " -std=c99 -Wall -Wextra -fpic -O")
|
||||||
|
OPTIMIZE))
|
||||||
|
|
||||||
(defn- compile-c
|
(defn- compile-c
|
||||||
"Compile a C file into an object file."
|
"Compile a C file into an object file."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user