From 70a7d7a94397cbe01fd5457e34f3d3368300f2ac Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Wed, 16 Apr 2014 22:10:33 +0100 Subject: build directory can now be renamed The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags --- unix/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unix') diff --git a/unix/Makefile b/unix/Makefile index 07a75f7ad..64483d90d 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -10,8 +10,12 @@ QSTR_DEFS = qstrdefsport.h # include py core make definitions include ../py/py.mk +INC = -I. +INC += -I$(PY_SRC) +INC += -I$(BUILD)/includes + # compiler settings -CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) +CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) UNAME_S := $(shell uname -s) ifeq ($(UNAME_S),Darwin) -- cgit v1.2.3