2022-08-07 19:01:59 +03:00
|
|
|
#
|
|
|
|
# Included Makefile used to build example apps by 'make'
|
|
|
|
#
|
|
|
|
# Copyright 2020-2022 by Bill Spitzak and others.
|
|
|
|
#
|
|
|
|
# This library is free software. Distribution and use rights are outlined in
|
|
|
|
# the file "COPYING" which should have been included with this file. If this
|
|
|
|
# file is missing or damaged, see the license at:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/COPYING.php
|
|
|
|
#
|
|
|
|
# Please see the following page on how to report bugs and issues:
|
|
|
|
#
|
|
|
|
# https://www.fltk.org/bugs.php
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2011-01-28 19:11:45 +03:00
|
|
|
#
|
|
|
|
# Stuff every FLTK application might need
|
|
|
|
#
|
|
|
|
# If you take this for use in your own project, be sure to change
|
|
|
|
# the 'FLTKCONFIG' setting to point to where it's installed
|
|
|
|
# on your system. Common examples:
|
|
|
|
#
|
|
|
|
# FLTKCONFIG = /usr/local/bin/fltk-config
|
2018-12-09 19:52:55 +03:00
|
|
|
# FLTKCONFIG = /usr/local/src/fltk-1.4.x/fltk-config
|
|
|
|
# FLTKCONFIG = ../build/fltk-config # if ../build == CMake build directory
|
2011-01-28 19:11:45 +03:00
|
|
|
#
|
|
|
|
# Set .SILENT in your Makefile if you want 'quieter' builds.
|
|
|
|
#
|
|
|
|
|
2011-02-01 22:10:13 +03:00
|
|
|
ifeq '$(OS)' "Windows_NT"
|
|
|
|
EXEEXT = .exe
|
|
|
|
endif
|
|
|
|
|
2022-01-17 02:22:16 +03:00
|
|
|
FLTKCONFIG = ../fltk-config
|
|
|
|
CXX = $(shell $(FLTKCONFIG) --cxx)
|
|
|
|
CXXFLAGS = $(shell $(FLTKCONFIG) --cxxflags) -Wall -I.
|
|
|
|
LINKFLTK = $(shell $(FLTKCONFIG) --ldstaticflags)
|
|
|
|
LINKFLTK_GL = $(shell $(FLTKCONFIG) --use-gl --ldstaticflags)
|
|
|
|
LINKFLTK_IMG = $(shell $(FLTKCONFIG) --use-images --ldstaticflags)
|
|
|
|
LINKFLTK_ALL = $(shell $(FLTKCONFIG) --use-images --use-gl --ldstaticflags)
|
|
|
|
CXXFLAGS_CAIRO = $(shell $(FLTKCONFIG) --use-cairo --cxxflags)
|
|
|
|
LINKFLTK_CAIRO = $(shell $(FLTKCONFIG) --use-cairo --ldstaticflags)
|
2011-01-28 19:11:45 +03:00
|
|
|
.SUFFIXES: .cxx .h .fl .o $(EXEEXT)
|
|
|
|
|
|
|
|
# HOW TO COMPILE
|
|
|
|
.cxx.o:
|
|
|
|
@echo "*** Compile $<..."
|
|
|
|
$(CXX) -I.. $(CXXFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
# HOW TO LINK
|
|
|
|
.o$(EXEEXT):
|
|
|
|
@echo "*** Linking $@..."
|
2017-12-29 21:47:28 +03:00
|
|
|
$(CXX) $< $(LINKFLTK) $(LINKFLTK_IMG) -o $@
|