NO_COLOR = \x1b[0m COMPILE_COLOR = \x1b[32;01m LINK_COLOR = \x1b[31;01m XFCE_CFLAGS=`pkg-config --cflags libxfce4ui-1` XFCE_LINK=`pkg-config --libs libxfce4ui-1` APP=lliurex-moving-xfce COMPILER_CFLAGS=-march=native $(XFCE_CFLAGS) $(RSVG_CFLAGS) all: $(APP) $(APP): main.o @echo -e '$(LINK_COLOR)* Building [$@]$(NO_COLOR)' g++ -o $(APP) main.o $(RSVG_LINK) $(XFCE_LINK) main.o: main.c @echo -e '$(COMPILE_COLOR)* Compiling [$<]$(NO_COLOR)' g++ $(COMPILER_CFLAGS) -c $< clean: rm -rf main.o rm -rf $(APP)