#if compile lib pls fill below part
LIBTARGET=Clariongdbus
LIBOBJS=mainloop.o \
        watch.o \
        object.o \
        polkit.o 


#if compile exe pls fill below part
BIN=
OBJS=

#add your compile flag here
EXTRA_CFLAGS += -L.
CFLAGS+=-lpthread \
        -lrt \

#include header file path
INCLUDE += -I$(EC_SYSTEM_SDK)/usr/include
INCLUDE += -I$(EC_BUILD_DIR)/include
INCLUDE += -I$(EC_BUILD_DIR)/include/elcamino
INCLUDE += -I$(EC_BUILD_DIR)/pf/common/master/include
INCLUDE += -I./
INCLUDE += -I$(EXTERNAL_LIBRARY_INCLUDE_PATH)
INCLUDE += $(EC_DBUS_INCLUDE)
INCLUDE += $(EC_GLIB_INCLUDE)




.c.o:
	$(CC) $(CFLAGS) $(INCLUDE) -fPIC -o $@ -c $<
.cpp.o:
	$(CXX) -fvisibility=hidden $(CFLAGS) $(INCLUDE) -fPIC -o $@ -c $<

.PHONY:all

all: exec

exec:$(LIBOBJS)
	$(CXX) $(CFLAGS) -shared -o lib$(LIBTARGET).so $^
	-mv lib$(LIBTARGET).so $(EC_BUILD_DIR)/app/ecBtEngine/master/src

#########compile execs and upzip system 
clean:
	@-rm -fr $(LIBOBJS)

