# Toplevel Makefile for blender. Bounces make to subdirectories.
# Available targets: 'all' 'debug' 'release'
+# If the user wants to override some of the build
+# vars they can put it in the file user-def.mk which
+# will get included if it exists (please do not commit
+# user-def.mk to cvs).
+
+sinclude user-def.mk
+
+# To build without openAL, uncomment the following line, or set it as
+# an environment variable, or put it uncommented in user-def.mk:
+# export NAN_NO_OPENAL=true
+
export NANBLENDERHOME=$(shell pwd)
MAKEFLAGS=-I$(NANBLENDERHOME)/source --no-print-directory
-SOURCEDIR = blender
-DIRS = extern intern source
+SOURCEDIR =
+ifeq ($(FREE_WINDOWS),true)
+ DIRS ?= dlltool extern intern source po
+endif
+
+DIRS ?= extern intern source po
include source/nan_subdirs.mk
.PHONY: release
@echo "====> $(MAKE) $@ in $(SOURCEDIR)/$@" ;\
$(MAKE) -C $@ $@ || exit 1;
+