diff --git a/Makefile b/Makefile index 06001c2f..92968f84 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ bmake = $(MAKE) -C buildroot O=$(O) $1 all: $(config) buildroot/Makefile @+$(call bmake,$@) +check dep: + @make -C src $@ + $(config): @+$(call bmake,list-defconfigs) @echo "\e[7mERROR: No configuration selected.\e[0m" @@ -25,4 +28,5 @@ $(config): buildroot/Makefile: @git submodule update --init -.PHONY: all +.PHONY: all check + diff --git a/src/.gitignore b/src/.gitignore new file mode 100644 index 00000000..c4cf396a --- /dev/null +++ b/src/.gitignore @@ -0,0 +1,4 @@ +/staging/ +/GPATH +/GRTAGS +/GTAGS diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000..c1c45d69 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,19 @@ +# Host build of critical components, for Coverity Scan mostly +APPS = confd statd factory + +all: + @echo "*** all not supported, only check possible ***" + false + +dep: libsrx + (cd $< && make -f check.mk $@) + +check: $(APPS) + rm -rf staging + +$(APPS): libsrx + (cd $@ && make -f check.mk) + +.PHONY: libsrx +libsrx: + (cd $@ && make -f check.mk) diff --git a/src/confd/check.mk b/src/confd/check.mk new file mode 100644 index 00000000..906d5dd1 --- /dev/null +++ b/src/confd/check.mk @@ -0,0 +1,8 @@ +# Used by ../Makefile for 'make check' and Coverity Scan +export PKG_CONFIG_PATH = $(CURDIR)/../staging/lib/pkgconfig + +all: + ./autogen.sh + ./configure + make all + make distclean diff --git a/src/factory/.gitignore b/src/factory/.gitignore new file mode 100644 index 00000000..18aae9c3 --- /dev/null +++ b/src/factory/.gitignore @@ -0,0 +1 @@ +factory diff --git a/src/factory/check.mk b/src/factory/check.mk new file mode 100644 index 00000000..9f6c1693 --- /dev/null +++ b/src/factory/check.mk @@ -0,0 +1,5 @@ +# Used by ../Makefile for 'make check' and Coverity Scan + +all: + make all + make clean diff --git a/src/libsrx/.gitignore b/src/libsrx/.gitignore new file mode 100644 index 00000000..73262df1 --- /dev/null +++ b/src/libsrx/.gitignore @@ -0,0 +1,34 @@ +*~ +*.o +*.la +*.lo +*.so +.deps +.libs + +/aclocal.m4 +/autom4te.cache/ +/aux +/clixon.xml +/compile +/config.h +/config.h.in +/config.guess +/config.log +/config.status +/config.sub +/configure +/depcomp +/install-sh +/libtool +/ltmain.sh +/m4 +/missing +/stamp-h1 + +GPATH +GRTAGS +GTAGS +Makefile +Makefile.in +src/libsrx.pc diff --git a/src/libsrx/check.mk b/src/libsrx/check.mk new file mode 100644 index 00000000..f068255e --- /dev/null +++ b/src/libsrx/check.mk @@ -0,0 +1,14 @@ +# Used by ../Makefile for 'make check' and Coverity Scan + +all: + ./configure + make all + make distclean + +# Normal build, for apps to link to during check +dep: + ./autogen.sh + ./configure --prefix=$(CURDIR)/../staging + make all + make install + make distclean diff --git a/src/statd/.gitignore b/src/statd/.gitignore new file mode 100644 index 00000000..fe2e9092 --- /dev/null +++ b/src/statd/.gitignore @@ -0,0 +1,3 @@ +*~ +*.o +statd diff --git a/src/statd/check.mk b/src/statd/check.mk new file mode 100644 index 00000000..94416586 --- /dev/null +++ b/src/statd/check.mk @@ -0,0 +1,8 @@ +# Used by ../Makefile for 'make check' and Coverity Scan + +export CPPFLAGS = -I$(CURDIR)/../staging/include +export LDLIBS = -L$(CURDIR)/../staging/lib -L/usr/lib/x86_64-linux-gnu + +all: + make all + make clean