summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 0ef85508b..00b8acafb 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -6,6 +6,7 @@ SHELL = /bin/sh
# Executables
ALL = browser-simple$(EXEEXT) \
+ cairo-draw-x$(EXEEXT) \
chart-simple$(EXEEXT) \
draggable-group$(EXEEXT) \
howto-add_fd-and-popen$(EXEEXT) \
@@ -44,6 +45,14 @@ ALL = browser-simple$(EXEEXT) \
# default target -- build everything
default all: $(ALL)
+# Special rules for building cairo app
+cairo-draw-x.o: cairo-draw-x.cxx
+ @echo "*** Compile $<..."
+ $(CXX) -I.. $(CXXFLAGS_CAIRO) -c $< -o $@
+cairo-draw-x$(EXEEXT): cairo-draw-x.o
+ @echo "*** Link $<..."
+ $(CXX) $< $(LINKFLTK) $(LINKFLTK_CAIRO) -o $@
+
# clean everything
clean:
$(RM) $(ALL)