From 6546814a23ac8653916ca9a5e97f2110889ade3d Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sun, 16 Jan 2022 15:22:16 -0800 Subject: For issue #358 - adds examples/cairo-draw-x.cxx Since this is the first cairo example in the examples directory, it necessarily involved changes to the Makefile and to fltk-config to properly handle the absence/existance of the cairo libs. TBD: Add docs to the cario widget describing coordinate system and how it differs from the default cairo normalized coordinate system. --- examples/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples/Makefile') 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) -- cgit v1.2.3