diff options
| author | Greg Ercolano <erco@seriss.com> | 2011-01-28 16:11:45 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2011-01-28 16:11:45 +0000 |
| commit | 35c7c2f14cfbeec7d7e995859c7561b2696751ea (patch) | |
| tree | c64d061d99491359c47556955ffc8f7bad625d93 /examples/Makefile.FLTK | |
| parent | 23ab3ff1192e93b1beaec9a16ead38c2d3d7e030 (diff) | |
Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
which users can nab for their own use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/Makefile.FLTK')
| -rw-r--r-- | examples/Makefile.FLTK | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/Makefile.FLTK b/examples/Makefile.FLTK new file mode 100644 index 000000000..86aca7054 --- /dev/null +++ b/examples/Makefile.FLTK @@ -0,0 +1,31 @@ +# +# 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 +# FLTKCONFIG = /usr/local/src/fltk-1.3.x-svn/fltk-config +# +# Set .SILENT in your Makefile if you want 'quieter' builds. +# + +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) +.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 $@..." + $(CXX) $< $(LINKFLTK_ALL) -o $@ |
