1 ##################################################
2 #Desc: Build system for the Application
5 ##################################################
6 #Included from Makefile
7 #Defines variables used in the make process to
8 #compile C files either to
9 #native asm through gcc, or web through
11 ##################################################
13 ##################################################
16 #Output directories for distributables
17 DISTDIR
:= $(PROJDIR
)/dist
18 #Build rules for each source type
19 include .make
/buildc.mk
20 include .make
/buildhtml.mk
22 #Build rules for tools
24 include .make
/buildtools.mk
27 #Set the final target, flags, and objects for app compile
29 APPDEPS
:= $(strip $(CDEPS
) $(CTARG
) $(APPDEPS
))
30 APPSRC
:= $(filter %$(COBJSUF
),$(APPDEPS
))
31 APPTARG
:= $(CBINDIR
)/$(APPNAME
)$(APPSUF
)
32 APPFLAGS
:= $(strip $(CXXFLAGS
) $(CFLAGS
) $(APPFLAGS
))
33 APPDIRS
:= $(sort $(dir $(APPTARG
) $(APPDEPS
)))