summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-17 18:03:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-17 18:03:27 +0100
commitd553be5982722fc5ee5240fbfb15697849881ced (patch)
tree4312b491aaee255ed7d8dbffe74f79011de1c426 /unix
parent2d1f865d16c5a7e27f5e46c96d087a7ff8a49012 (diff)
downloadmicropython-d553be5982722fc5ee5240fbfb15697849881ced.tar.gz
micropython-d553be5982722fc5ee5240fbfb15697849881ced.zip
build: Simplify build directory layout by putting all headers in genhdr.
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
Diffstat (limited to 'unix')
-rw-r--r--unix/Makefile2
-rw-r--r--unix/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 1a29363c91..ec02ad5004 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -12,7 +12,7 @@ include ../py/py.mk
INC = -I.
INC += -I$(PY_SRC)
-INC += -I$(BUILD)/includes
+INC += -I$(BUILD)
# compiler settings
CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
diff --git a/unix/main.c b/unix/main.c
index e582244b39..b9b8fe0b9f 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -22,7 +22,7 @@
#include "runtime.h"
#include "repl.h"
#include "gc.h"
-#include "build/py/py-version.h"
+#include "genhdr/py-version.h"
#if MICROPY_USE_READLINE
#include <readline/readline.h>