Oaknut projects have a
Makefile in their root and are built with plain old
GNU make, or with an IDE. The project Makefile is expected to only contain settings
and reference the real Oaknut makefile (oaknut.make) via an include statement
at the end.
A very simple project makefile:
PROJECT_NAME:=HelloWorld include $(OAKNUT_DIR)/build/oaknut.make
make without arguments will build the app version native to your
operating system. To build an app for the web or a mobile OS you specify it
PLATFORM variable, e.g.:
Supported platforms are
windows coming soon.
Another optional variable is
CONFIG which may be either
The default is
Oaknut’s make system expects some platform-specific information to be
passed by variable, for example
make PLATFORM=android will expect to find
the location of the Android SDK in the
ANDROID_SDK_DIR variable. A variable
can be set either in the host OS environment or in the project Makefile or
passed on the
make command line.
The built app will be found along with all intermediate build files in the