1 ##################################################
2 #Desc: Build system for the Application
5 ##################################################
6 #Included from ./build.mk
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
19 #Build rules for each source type
20 include .make
/buildc.mk
21 include .make
/buildhtml.mk
23 #Set the final target, flags, and objects for app compile
25 APPDEPS
:= $(strip $(CDEPS
) $(CTARG
) $(APPDEPS
))
26 APPSRC
:= $(filter %$(COBJSUF
),$(APPDEPS
))
27 APPTARG
:= $(CBINDIR
)/$(APPNAME
)$(APPSUF
)
28 APPFLAGS
:= $(strip $(CXXFLAGS
) $(CFLAGS
) $(APPFLAGS
))
29 APPDIRS
:= $(sort $(dir $(APPTARG
) $(APPDEPS
)))