# # 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=false all: ipaqlight_plugin include $(TOPDIR)/conf/Makefile.common DISTNAME=ignore LIBVERSION=0.1.2 LIBNAME=iwear_module_ipaqlight LIB=$(LIBNAME).$(DYN_SUFFIX).$(LIBVERSION) ipaqlight ipaqlight_plugin: ipaqlightplugin.o @echo $(BLU)[LD]$(NOR) $(LIB) $(CXX) $(LIBINCLUDE) -liwsens $(LIBLDFLAGS) ipaqlightplugin.o -o ./lib/$(LIB) @echo $(GRN)[LN -s]$(NOR) $(LIB) @ln -sf $(PWD)/ipaqlight/lib/$(LIB) $(PREFIX)/lib/plugins/sensors/$(LIBNAME).$(DYN_SUFFIX)