Author: greg.ercolano
Date: 2011-01-28 08:11:45 -0800 (Fri, 28 Jan 2011)
New Revision: 8324
Log:
Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
which users can nab for their own use.
Added:
branches/branch-1.3/examples/Makefile.FLTK
Modified:
branches/branch-1.3/examples/Makefile
Modified: branches/branch-1.3/examples/Makefile
===================================================================
--- branches/branch-1.3/examples/Makefile 2011-01-28 08:37:49 UTC (rev
8323)
+++ branches/branch-1.3/examples/Makefile 2011-01-28 16:11:45 UTC (rev
8324)
@@ -1,5 +1,10 @@
-include ../makeinclude
+include Makefile.FLTK
+RM = rm -f
+SHELL = /bin/sh
+.SILENT:
+
+# Executables
ALL = howto-add_fd-and-popen$(EXEEXT) \
howto-drag-and-drop$(EXEEXT) \
howto-parse-args$(EXEEXT) \
@@ -25,3 +30,4 @@
$(RM) $(ALL)
$(RM) *.o
$(RM) core
+
Added: branches/branch-1.3/examples/Makefile.FLTK
===================================================================
--- branches/branch-1.3/examples/Makefile.FLTK (rev 0)
+++ branches/branch-1.3/examples/Makefile.FLTK 2011-01-28 16:11:45 UTC (rev
8324)
@@ -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 $@
Property changes on: branches/branch-1.3/examples/Makefile.FLTK
___________________________________________________________________
Name: svn:keywords
+ author date id revision
Name: svn:eol-style
+ native
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit