-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.frag
34 lines (28 loc) · 1002 Bytes
/
Makefile.frag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
LIB_IONC_STATIC := $(builddir)/ion-c/build/ionc/libionc_static.a
LIB_DECN_STATIC := $(builddir)/ion-c/build/decNumber/libdecNumber_static.a
$(builddir)/ion.lo: $(LIB_IONC_STATIC) $(LIB_DECN_STATIC)
$(builddir)/ion-c/build:
mkdir -p $@
+cd $@ && CFLAGS=-w CXXFLAGS=-w \
$(CMAKE) -Wno-dev --log-level=ERROR \
-DCMAKE_BUILD_TYPE=$(LIB_IONC_BUILD) \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
$(srcdir)/ion-c
$(LIB_IONC_STATIC): | $(builddir)/ion-c/build
+$(CMAKE) --build $| --target ionc_static -- VERBOSE=
$(LIB_DECN_STATIC): | $(builddir)/ion-c/build
+$(CMAKE) --build $| --target decNumber_static -- VERBOSE=
clean: clean-ion
.PHONY: clean-ion
clean-ion:
-rm -rf $(builddir)/ion-c/build
.PHONY: gcov-ion
gcov-ion:
@rm -rf $@
@mkdir -p $@
@echo
@echo "Generating coverage in $@..."
@echo "************************************"
@gcovr -j $$(nproc) -sr . -f '.*/(php_)?ion.*' 2>/dev/null \
--html-title $@ --html-details $@/index.html
@echo "************************************"