makeinclude.os2x 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #
  2. # "$Id: makeinclude.os2x 4052 2005-02-24 21:55:12Z mike $"
  3. #
  4. # Make include file for the Fast Light Tool Kit (FLTK).
  5. #
  6. # Copyright 1998-2003 by Bill Spitzak and others.
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free Software
  20. # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  21. # USA.
  22. #
  23. # Please report all bugs and problems to "[email protected]".
  24. #
  25. prefix = /usr/local
  26. exec_prefix = ${prefix}
  27. bindir = ${exec_prefix}/bin
  28. datadir = ${prefix}/share
  29. includedir = ${prefix}/include
  30. libdir = ${exec_prefix}/lib
  31. mandir = ${prefix}/man
  32. srcdir = ./.
  33. VPATH = ./.
  34. # programs we use...
  35. CHMOD = :
  36. CP = copy
  37. HTMLDOC = htmldoc.exe
  38. LN = :
  39. MKDIR = md
  40. NROFF = nroff
  41. RM = if exist %1 del %1
  42. RMDIR = rd
  43. STRIP = :
  44. # compiler names:
  45. CXX = gcc.exe
  46. CC = gcc.exe
  47. MAKEDEPEND = $(CXX) -M
  48. # flags for C++ compiler:
  49. OPTIM = -O2 -Wall -fno-exceptions
  50. CFLAGS = $(OPTIM) -O4 -mpentium -Zmt
  51. CXXFLAGS = $(OPTIM) -O4 -mpentium -Zmt
  52. # program to make the archive:
  53. LIBNAME = ../lib/libfltk.a
  54. FLLIBNAME = ../lib/libfltk_forms.a
  55. GLLIBNAME =
  56. IMGLIBNAME = ../lib/libfltk_images.a
  57. LIBCOMMAND = ar.exe cr
  58. LIBEXT = .a
  59. RANLIB = ar.exe s
  60. DSONAME =
  61. FLDSONAME =
  62. GLDSONAME =
  63. IMGDSONAME =
  64. DSOCOMMAND =echo
  65. # libraries to link with:
  66. LDLIBS = -s -Zmt -Zcrtdll -Zbsd-signals -lXext -lX11 -lsocket
  67. GLDLIBS = -s -Zmt -Zcrtdll -Zbsd-signals -lXext -lX11 -lsocket -lshm
  68. LINKFLTK = ../lib/libfltk.a
  69. LINKFLTKGL = -L../lib
  70. LINKFLTKFORMS = ../lib/libfltk_forms.a ../lib/libfltk.a
  71. IMAGELIBS = -lpng -ljpeg -lz
  72. LINKFLTKIMG = ../lib/libfltk_images.a $(IMAGELIBS) ../lib/libfltk.a
  73. # Do we build the OpenGL demos?
  74. GLDEMOS =
  75. # Do we build the threads demo?
  76. THREADS =
  77. # The extension to use for executables...
  78. EXEEXT =.exe
  79. # Possible steps after linking...
  80. POSTBUILD = touch
  81. # Man page extensions...
  82. CAT1EXT =1
  83. CAT3EXT =3
  84. # Be quiet when building...
  85. .SILENT:
  86. # Build commands and filename extensions...
  87. .SUFFIXES: .0 .1 .3 .c .cxx .h .fl .man .o .z $(EXEEXT)
  88. .o$(EXEEXT):
  89. echo Linking $@...
  90. $(CXX) -I.. $(CXXFLAGS) $< $(LINKFLTK) $(LDLIBS) -o $@
  91. $(POSTBUILD) $@ ../FL/mac.r
  92. .c.o:
  93. echo Compiling $<...
  94. $(CC) -I.. $(CFLAGS) -c $<
  95. .cxx.o:
  96. echo Compiling $<...
  97. $(CXX) -I.. $(CXXFLAGS) -c $<
  98. .man.0 .man.1 .man.3:
  99. echo Formatting $<...
  100. rm -f $@
  101. $(NROFF) -man $< >$@
  102. .man.z:
  103. echo Formatting $<...
  104. rm -f $@ t.z
  105. $(NROFF) -man $< >t
  106. pack -f t
  107. mv t.z $@
  108. #
  109. # End of "$Id: makeinclude.os2x 4052 2005-02-24 21:55:12Z mike $".
  110. #