################################################## #Desc: Build system for the Application #Author: Mihrtec LLC #Date: 2016 ################################################## #Included from ./build.mk #Defines variables used in the make process to #compile C files either to #native asm through gcc, or web through #emscripten ################################################## #Environment Setup ################################################## #Extra modules to build (core is built by default) MODULES := #Libraries to include LIBS := wolfssl SDL2 SDL2_image SDL2_ttf #Build system directory management REPOROOT := .. DISTDIR := $(REPOROOT)/dist BINDIR := $(DISTDIR)/bin EXEDIR := $(BINDIR)/$(shell uname -m) XTDIR := $(REPOROOT)/extern XTLIBDIR := $(XTDIR)/lib #Build rules for each source type include .make/buildc.mk #Set the final target, flags, and objects for app compile APPDEPS := $(CTARG) $(APPDEPS) APPTARG := $(EXEDIR)/$(APPNAME)$(APPSUFFIX) APPFLAGS := $(CXXFLAGS) $(CFLAGS) $(APPFLAGS) APPDIRS := $(sort $(dir $(APPTARG) $(WEBTARG)))