makeinclude.last 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. #
  2. # "$Id: makeinclude.in 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. #
  4. # Make include file for the Fast Light Tool Kit (FLTK).
  5. #
  6. # Copyright 1998-2010 by Bill Spitzak and others.
  7. #
  8. # This library is free software. Distribution and use rights are outlined in
  9. # the file "COPYING" which should have been included with this file. If this
  10. # file is missing or damaged, see the license at:
  11. #
  12. # http://www.fltk.org/COPYING.php
  13. #
  14. # Please report all bugs and problems on the following page:
  15. #
  16. # http://www.fltk.org/str.php
  17. #
  18. prefix = /usr/local
  19. exec_prefix = ${prefix}
  20. bindir = ${exec_prefix}/bin
  21. datadir = ${datarootdir}
  22. datarootdir = ${prefix}/share
  23. includedir = ${prefix}/include
  24. libdir = ${exec_prefix}/lib
  25. mandir = ${datarootdir}/man
  26. srcdir = .
  27. docdir = $(datadir)/doc/fltk
  28. USEMMFILES = No
  29. # programs we use...
  30. HTMLDOC =
  31. DOXYDOC =
  32. INSTALL = /bin/install -c
  33. LN = ln -s
  34. NROFF =
  35. RM = rm -f
  36. RMDIR = rm -rf
  37. SHELL = /bin/sh
  38. STRIP = strip
  39. # compiler names:
  40. CXX = g++
  41. CC = gcc
  42. MAKEDEPEND = $(CXX) -M
  43. # (Windows) resource compiler
  44. RC = /mingw/bin/windres
  45. # flags for C++ compiler:
  46. ARCHFLAGS = -I../../libharu/include
  47. OPTIM = -O3 -Wall -Wunused -Wno-format-y2k -fno-exceptions -fno-strict-aliasing
  48. #OPTIM = -g -O2 -Wall -Wunused -Wno-format-y2k -fno-exceptions -fno-strict-aliasing
  49. CFLAGS = $(OPTIM) -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mwindows -DWIN32 -DUSE_OPENGL32 -pipe -mms-bitfields -march=i686
  50. CXXFLAGS = $(OPTIM) -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mwindows -DWIN32 -DUSE_OPENGL32 $(FLTKFLAGS)
  51. # program to make the archive:
  52. LIBNAME = ../lib/libfltk.a
  53. FLLIBNAME = ../lib/libfltk_forms.a
  54. GLLIBNAME = ../lib/libfltk_gl.a
  55. IMGLIBNAME = ../lib/libfltk_images.a
  56. CAIROLIBNAME = ../lib/libfltk_cairo.a
  57. LIBCOMMAND = /mingw/bin/ar cr
  58. LIBEXT = .a
  59. RANLIB = ranlib
  60. DSONAME =
  61. FLDSONAME =
  62. GLDSONAME =
  63. IMGDSONAME =
  64. CAIRODSONAME =
  65. DSOCOMMAND = echo
  66. LIBBASENAME = libfltk.a
  67. FLLIBBASENAME = libfltk_forms.a
  68. GLLIBBASENAME = libfltk_gl.a
  69. IMGLIBBASENAME = libfltk_images.a
  70. CAIROLIBBASENAME= libfltk_cairo.a
  71. # libraries to link with:
  72. AUDIOLIBS = -lwinmm
  73. CAIROLIBS =
  74. CAIROFLAGS =
  75. DSOFLAGS = -L. -mwindows -L../../libharu/src -lhpdfs
  76. LDFLAGS = $(OPTIM) -mwindows -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc
  77. LDLIBS = -lole32 -luuid -lcomctl32 -lwinspool
  78. GLDLIBS = -lglu32 -lopengl32 -lole32 -luuid -lcomctl32 -lwinspool
  79. LINKFLTK = ../lib/libfltk.a
  80. LINKFLTKGL = ../lib/libfltk_gl.a
  81. LINKFLTKFORMS = ../lib/libfltk_forms.a ../lib/libfltk.a
  82. LINKFLTKIMG = ../lib/libfltk_images.a ../lib/libfltk.a $(IMAGELIBS)
  83. LINKFLTKCAIRO = $(CAIROLIBS)
  84. FLTKCAIROOPTION =
  85. LINKSHARED = ../lib/libfltk_images.a ../lib/libfltk_forms.a ../lib/libfltk.a $(IMAGELIBS) $(CAIROLIBS)
  86. IMAGELIBS = -L../lib -lfltk_png -lfltk_z -lfltk_jpeg
  87. # image libraries to build...
  88. IMAGEDIRS = jpeg zlib png
  89. CAIRODIR =
  90. # The extension to use for executables...
  91. EXEEXT = .exe
  92. # Do we build the OpenGL demos?
  93. GLDEMOS = gldemos
  94. # Do we build the threads demo?
  95. THREADS = threads.exe
  96. # Name of FLUID executable we install
  97. FLUID = fluid$(EXEEXT)
  98. # Possible steps for OS X build only
  99. OSX_ONLY = :
  100. # Man page extensions...
  101. CAT1EXT = 1
  102. CAT3EXT = 3
  103. CAT6EXT = 6
  104. #
  105. # Installation programs...
  106. #
  107. INSTALL_BIN = $(INSTALL) -m 755
  108. INSTALL_DATA = $(INSTALL) -m 644
  109. INSTALL_DIR = $(INSTALL) -d
  110. INSTALL_LIB = $(INSTALL) -m 755
  111. INSTALL_MAN = $(INSTALL) -m 644
  112. INSTALL_SCRIPT = $(INSTALL) -m 755
  113. # Additional GUI install/uninstall targets...
  114. INSTALL_DESKTOP =
  115. UNINSTALL_DESKTOP =
  116. # Be quiet when building...
  117. .SILENT:
  118. # Build commands and filename extensions...
  119. .SUFFIXES: .0 .1 .3 .6 .c .cxx .mm .h .fl .man .o .z $(EXEEXT)
  120. .o$(EXEEXT):
  121. echo Linking $@...
  122. $(CXX) $(ARCHFLAGS) $(LDFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
  123. .c.o:
  124. echo Compiling $<...
  125. $(CC) -I.. $(ARCHFLAGS) -I../png -I../jpeg -I../zlib $(CFLAGS) -c $< -o $@
  126. .cxx.o:
  127. echo Compiling $<...
  128. $(CXX) -I.. $(ARCHFLAGS) -I../png -I../jpeg -I../zlib $(CXXFLAGS) -c $< -o $@
  129. .mm.o:
  130. echo Compiling $<...
  131. $(CXX) -I.. $(ARCHFLAGS) $(CXXFLAGS) -x objective-c++ -c $< -o $@
  132. .man.0 .man.1 .man.3 .man.6:
  133. echo Formatting $<...
  134. rm -f $@
  135. $(NROFF) -man $< >$@
  136. .man.z:
  137. echo Formatting $<...
  138. rm -f $@ t.z
  139. $(NROFF) -man $< >t
  140. pack -f t
  141. mv t.z $@
  142. #
  143. # End of "$Id: makeinclude.in 8113 2010-12-23 14:24:29Z manolo $".
  144. #