Simplify build process
[src/app-framework-binder.git] / coverage / bin / Makefile
index a256a9a..3cabefa 100644 (file)
@@ -4,7 +4,7 @@
 heredir = .
 basedir = ../..
 
-targets = afb-daemon-cov  afb-client hi3.so hello.so salut.so saha.so demat.so bug.so
+targets = afb-daemon-cov  afb-client hi3.so hello.so salut.so salam.so shalom.so demat.so bug.so
 
 binaries: $(targets)
 
@@ -25,8 +25,8 @@ cflags = -I$(incdir) \
        $(shell pkg-config --cflags --libs openssl libmicrohttpd json-c libsystemd uuid) \
        -ldl -lrt -lpthread 
 
-afb_lib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-so-v1|-so-vdyn|-fake|-api-dbus|-api-v1' )
-afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-so-v1|-so-vdyn|-fake|-api-dbus|-api-v1|afb-supervision' )
+afb_lib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake' )
+afb_clib_src = $(shell ls $(srcdir)/*.c | egrep -v '/afs-|/main-|-fake|afb-supervision' )
 
 afb_daemon_srcs = $(srcdir)/main-afb-daemon.c $(afb_lib_src)
 afb_daemon_defs = '-DAFB_VERSION="cov"' -DAGL_DEVEL -DWITH_MONITORING_OPTION '-DBINDING_INSTALL_DIR="fake"'
@@ -58,9 +58,13 @@ salut.so: $(hello3_src)
        @echo creation of $@
        @gcc -o $@ $(hello3_src) '-DAPINAME="salut"' $(binding_flags) $(cflags)
 
-saha.so: $(hello3_src)
+salam.so: $(hello3_src)
        @echo creation of $@
-       @gcc -o $@ $(hello3_src) '-DAPINAME="saha"' $(binding_flags) $(cflags)
+       @gcc -o $@ $(hello3_src) '-DAPINAME="salam"' $(binding_flags) $(cflags)
+
+shalom.so: $(hello3_src)
+       @echo creation of $@
+       @gcc -o $@ $(hello3_src) '-DAPINAME="shalom"' $(binding_flags) $(cflags)
 
 demat.so: $(hello3_src)
        @echo creation of $@