fltk/examples/Makefile
Greg Ercolano 6546814a23 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.
2022-01-16 15:22:16 -08:00

61 lines
1.7 KiB
Makefile

include Makefile.FLTK
RM = rm -f
SHELL = /bin/sh
.SILENT:
# Executables
ALL = browser-simple$(EXEEXT) \
cairo-draw-x$(EXEEXT) \
chart-simple$(EXEEXT) \
draggable-group$(EXEEXT) \
howto-add_fd-and-popen$(EXEEXT) \
howto-browser-with-icons$(EXEEXT) \
howto-drag-and-drop$(EXEEXT) \
howto-draw-an-x$(EXEEXT) \
howto-menu-with-images$(EXEEXT) \
howto-parse-args$(EXEEXT) \
howto-remap-numpad-keyboard-keys$(EXEEXT) \
howto-simple-svg$(EXEEXT) \
howto-text-over-image-button$(EXEEXT) \
menubar-add$(EXEEXT) \
nativefilechooser-simple-app$(EXEEXT) \
nativefilechooser-simple$(EXEEXT) \
progress-simple$(EXEEXT) \
shapedwindow$(EXEEXT) \
simple-terminal$(EXEEXT) \
table-as-container$(EXEEXT) \
table-simple$(EXEEXT) \
table-sort$(EXEEXT) \
table-spreadsheet$(EXEEXT) \
table-spreadsheet-with-keyboard-nav$(EXEEXT) \
table-with-keynav$(EXEEXT) \
table-with-right-column-stretch-fit$(EXEEXT) \
tabs-simple$(EXEEXT) \
textdisplay-with-colors$(EXEEXT) \
texteditor-simple$(EXEEXT) \
texteditor-with-dynamic-colors$(EXEEXT) \
tree-as-container$(EXEEXT) \
tree-custom-draw-items$(EXEEXT) \
tree-custom-sort$(EXEEXT) \
tree-of-tables$(EXEEXT) \
tree-simple$(EXEEXT) \
wizard-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)
$(RM) *.o
$(RM) core