NO_COLOR = \x1b[0m COMPILE_COLOR = \x1b[32;01m LINK_COLOR = \x1b[31;01m X11_LINK=-lX11 -lXext CAIRO_CFLAGS=`pkg-config --cflags cairo` CAIRO_LINK=`pkg-config --libs cairo` RSVG_CFLAGS=`pkg-config --cflags librsvg-2.0` RSVG_LINK=`pkg-config --libs librsvg-2.0` GTK_CFLAGS=`pkg-config --cflags gtk+-3.0` GTK_LINK=`pkg-config --libs gtk+-3.0` WNCK_CFLAGS=`pkg-config --cflags libwnck-3.0` WNCK_LINK=`pkg-config --libs libwnck-3.0` COMPILER_CFLAGS=-march=native $(CAIRO_CFLAGS) -I ../include -g all: demo fbdemo: fbdemo.o pandora.o @echo -e '$(LINK_COLOR)* Building [$@]$(NO_COLOR)' g++ -o fbdemo pandora.o fbdemo.o -l:../src/liblgi-fb-1.0.so $(PANDORA_LINK) demo: demo.o pandora.o @echo -e '$(LINK_COLOR)* Building [$@]$(NO_COLOR)' g++ -o demo pandora.o demo.o -l:../src/liblgi-1.0.so $(RSVG_LINK) $(GTK_LINK) $(PANDORA_LINK) $(WNCK_LINK) -lGL pandora.o: pandora.cpp @echo -e '$(COMPILE_COLOR)* Compiling [$<]$(NO_COLOR)' g++ $(COMPILER_CFLAGS) $(RSVG_CFLAGS) $(GTK_CFLAGS) $(PANDORA_CFLAGS) -c $< demo.o: demo.cpp @echo -e '$(COMPILE_COLOR)* Compiling [$<]$(NO_COLOR)' g++ $(COMPILER_CFLAGS) $(RSVG_CFLAGS) $(GTK_CFLAGS) $(PANDORA_CFLAGS) $(WNCK_CFLAGS) -c $< fbdemo.o: fbdemo.cpp @echo -e '$(COMPILE_COLOR)* Compiling [$<]$(NO_COLOR)' g++ $(COMPILER_CFLAGS) $(RSVG_CFLAGS) $(PANDORA_CFLAGS) -c $< clean: @echo -e '$(LINK_COLOR)* Cleaning$(NO_COLOR)' rm -rf demo.o pandora.o fbdemo.o rm -rf demo fbdemo