Cairo support works, both to draw in the window and to write as a png image in a...
[universe.git] / Makefile
index 3a41714..6fc991d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ endif
 
 LDFLAGS = -L/usr/X11R6/lib/ -lz -ldl
 
+# Do we use cairo?
+CXXFLAGS += -I/usr/include/cairo -DCAIRO_SUPPORT
+LDFLAGS += -lcairo
+
 TASK_SRC = dummy.cc move_square.cc hit_shape.cc
 TASK_OBJ = $(TASK_SRC:.cc=.task)
 
@@ -53,6 +57,6 @@ Makefile.depend: *.h *.cc Makefile
        $(CC) -M *.cc > Makefile.depend
 
 clean:
-       \rm main *.o *.task Makefile.depend
+       \rm -f main *.o *.task Makefile.depend
 
 -include Makefile.depend