makeinclude.mingw31 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #
  2. # "$Id: makeinclude.mingw31 7563 2010-04-28 03:15:47Z greg.ercolano $"
  3. #
  4. # Make include file for the Fast Light Tool Kit (FLTK).
  5. # (this file for MingW using GCC 3.1.x)
  6. #
  7. # Copyright 1998-2009 by Bill Spitzak and others.
  8. #
  9. # This library is free software; you can redistribute it and/or
  10. # modify it under the terms of the GNU Library General Public
  11. # License as published by the Free Software Foundation; either
  12. # version 2 of the License, or (at your option) any later version.
  13. #
  14. # This library is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. # Library General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU Library General Public
  20. # License along with this library; if not, write to the Free Software
  21. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  22. # USA.
  23. #
  24. # Please report all bugs and problems on the following page:
  25. #
  26. # http://www.fltk.org/str.php
  27. #
  28. # Notes:
  29. #
  30. # 1) Console windows appearing
  31. #
  32. # Consoles will not appear when run from a command line prompt
  33. # but will cause an 'unnecessary' console to appear when run directly from
  34. # windows (say explorer). It provides i/o for stdin/stdout for debugging
  35. #
  36. # To avoid this add "-mwindows" to LDLIBS and GLDLIBS below
  37. #
  38. # 2) Stripping the executable to reduce size
  39. #
  40. # An external program may be run to strip out any debug symbols:
  41. # strip filename.exe
  42. #
  43. # Alternatively add -s option to LDLIBS and GLDLIBS below to strip all
  44. # symbols. (or -S for stripping of debug symbols only). See 'ld' man page
  45. # for other useful link-time options.
  46. #
  47. # The default is to leave -mwindows and the stripping off, so as to facilitate
  48. # debugging. For release it may be appropriate to add these additional switches
  49. prefix = /usr/local
  50. exec_prefix = ${prefix}
  51. bindir = ${exec_prefix}/bin
  52. includedir = ${prefix}/include
  53. libdir = ${exec_prefix}/lib
  54. srcdir = .
  55. # programs we use...
  56. CHMOD = :
  57. CP = copy
  58. HTMLDOC = htmldoc.exe
  59. LN = :
  60. MKDIR = md
  61. NROFF = nroff
  62. RM = del
  63. RMDIR = rd
  64. STRIP = :
  65. # compiler names:
  66. CXX = g++
  67. CC = gcc
  68. MAKEDEPEND = $(CXX) -M
  69. POSTBUILD = :
  70. # flags for C++ compiler:
  71. CFLAGS = -Wall -O2 -DWIN32
  72. CXXFLAGS = -Wall -O2 -DWIN32
  73. # program to make the archive:
  74. LIBNAME = ../lib/libfltk.a
  75. FLLIBNAME = ../lib/libfltk_forms.a
  76. GLLIBNAME = ../lib/libfltk_gl.a
  77. IMGLIBNAME = ../lib/libfltk_images.a
  78. LIBCOMMAND = ar -ruv
  79. LIBEXT = .a
  80. RANLIB = ranlib
  81. DSONAME =
  82. FLDSONAME =
  83. GLDSONAME =
  84. IMGDSONAME =
  85. DSOCOMMAND = echo
  86. # libraries to link with (in addition to default libs):
  87. LDLIBS =-mwindows -lole32 -luuid -lgdi32 -lcomctl32 -lwsock32 -lsupc++
  88. GLDLIBS =-mwindows -lole32 -luuid -lglu32 -lopengl32 -lgdi32 -lcomctl32 -lwsock32 -lsupc++
  89. LINKFLTK =-L../lib -lfltk
  90. LINKFLTKGL =-L../lib -lfltk_gl
  91. LINKFLTKFORMS =-L../lib -lfltk_forms -lfltk
  92. LINKFLTKIMG =-L../lib -lfltk_images -lfltk
  93. IMAGELIBS =
  94. # Do we build the OpenGL demos?
  95. GLDEMOS =gldemos
  96. # Do we build the threads demo?
  97. THREADS =threads
  98. # Be quiet when building...
  99. .SILENT:
  100. # Build commands and filename extensions...
  101. .SUFFIXES: .c .cxx .h .fl .o
  102. .cxx:
  103. echo Compiling and linking $@...
  104. $(CXX) -I.. $(CXXFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
  105. .c.o:
  106. echo Compiling $@...
  107. $(CC) -I.. $(CXXFLAGS) $< -c
  108. .cxx.o:
  109. echo Compiling $@...
  110. $(CXX) -I.. $(CXXFLAGS) $< -c
  111. #
  112. # End of "$Id: makeinclude.mingw31 7563 2010-04-28 03:15:47Z greg.ercolano $".
  113. #