prototype IR and parser
[henge/webcc.git] / src / .make / buildclibs.mk
1 ##################################################
2 #Desc: Missing CLib Generator
3 #Author: Mihrtec LLC
4 #Date: 2016
5 ##################################################
6 #Included from buildc.make
7 #Defines vars for automatically downloading,
8 #compiling, and linking GNU-like C libraries
9 ##################################################
10
11 #Modify the dependency generator to find the right directory for
12 #missing lib includes (they are in MLDIR/src/libname/libname)
13 CDEPSCOMMAND += $(patsubst %, | sed -e 's@ \(%\)/@$(MLSRCDIR)/\1/\1/@',$(MISSINGLIBS))
14
15 #Automake vars for building libs
16 AMGEN ?= ./autogen.sh
17 AMCONF ?= ./configure
18 AMMAKE ?= make
19
20 #Notify user of libraries that are about to be built
21 $(info Libraries to be built in $(MLLIBDIR):)
22 $(info $(patsubst %,lib%.so,$(MISSINGLIBS)))
23 STATICLIBS := $(patsubst %,$(MLLIBDIR)/lib%.so,$(MISSINGLIBS))
24
25 #Ensure that C files depend on the creation of these static libs
26 CDEPS += $(STATICLIBS)
27