Buildsys2
[henge/webcc.git] / src / .make / build.mk
1 ##################################################
2 #Desc: Build system for the Application
3 #Author: Mihrtec LLC
4 #Date: 2016
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
10 #emscripten
11 ##################################################
12 #Environment Setup
13 ##################################################
14 #Project root
15 PROJDIR := ..
16 #Output directories for distributables
17 DISTDIR := $(PROJDIR)/dist
18
19 #Build rules for each source type
20 include .make/buildc.mk
21 include .make/buildhtml.mk
22
23 #Set the final target, flags, and objects for app compile
24 APPC := $(CC)
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)))
30