# # This is a basic makefile that uses a flat directory structure. It could be # expanded to support multiple subdirectories and/or libraries # #.SILENT: all lib test steril clean tar dist link .DEFAULT TOPDIR=. ROOTDIR=true SUBLIBFILES=$(LIBFILES_$(PWD)) TRANSDIR=./share/locale/ TRANSTEMPLATE=iwear_uiservices.pot all: systarget include $(TOPDIR)/conf/Makefile.common systarget: lib plugins_application plugins_daemon plugins_sensor run test: lib @echo $(VIO)[MAKE]$(NOR) $(SRCDIRS) @$(MAKE) -C $(SRCDIRS) test mac_test: lib plugins @echo $(VIO)[MAKE]$(NOR) $(SRCDIRS) @$(MAKE) -C $(SRCDIRS) mac_test mac_dynamic_load: lib plugins @echo $(VIO)[MAKE]$(NOR) $(SRCDIRS) @$(MAKE) -C $(SRCDIRS) mac_dynamic_load dynamic_load : lib plugins @echo $(VIO)[MAKE]$(NOR) $(SRCDIRS) @$(MAKE) -C $(SRCDIRS) dynamic_load plugin_dirs: -mkdir $(PREFIX)/lib/plugins -mkdir $(PREFIX)/lib/plugins/applications plugins: plugin_dirs plugins_daemon plugins_sensor plugins_application lib plugins_application : lib @echo $(VIO)[MAKE]$(NOR) plugins/applications $(MAKE) -C plugins_application all plugins_daemon : lib @echo $(VIO)[MAKE]$(NOR) plugins/daemons $(MAKE) -C plugins_daemon all plugins_sensor : lib @echo $(VIO)[MAKE]$(NOR) plugins/sensor $(MAKE) -C plugins_sensor all debug: lib valgrind -v --tool=memcheck --leak-check=yes --num-callers=9900 ./src/test