#color scheme NO_COLOR = \x1b[0m COMPILE_COLOR = \x1b[32;01m LINK_COLOR = \x1b[31;01m #libraries LIBS=cairo pangocairo lgi-1.0 lsf-1.0 libgnome-menu-3.0 #cflags LIBS_CFLAGS=`pkg-config $(LIBS) --cflags` #link LIBS_LINK=`pkg-config $(LIBS) --libs` #common cflags CFLAGS=$(LIBS_CFLAGS) -std=c++0x -g -I ../ -fPIC #objects OBJECTS=test.o all: TestPlugin TestPlugin: $(OBJECTS) @echo -e '$(LINK_COLOR)* Building [$@]$(NO_COLOR)' g++ -shared -o TestPlugin.so $(OBJECTS) $(LIBS_LINK) %.o:%.cpp @echo -e '$(COMPILE_COLOR)* Compiling [$<]$(NO_COLOR)' g++ $(CFLAGS) -c $< clean: @echo -e '$(LINK_COLOR)* Cleaning...$(NO_COLOR)' rm -rf $(OBJECTS)