Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.3 KiB

  1. # Compilation flags:
  2. #
  3. # -DNDEBUG is for the production code; it removes all assertion checks
  4. # (note that <assert.h> looks at this symbol).
  5. #
  6. # -DNO_MALLOPT uses regular malloc instead of the mallopt() version.
  7. # ***** Unless you use this flag, you must use "-lmalloc" to link
  8. # ***** your application!
  9. #
  10. # -DMEMORY_DEBUG turns on the M_DEBUG option of mallopt; this can
  11. # increase the running time a LOT.
  12. #
  13. # -DGLU_TESS_API_FLOAT compiles a single-precision version of the library.
  14. #
  15. # -float prevents automatic promotion to double precision; this will produce
  16. # faster code when compiled with -DGLU_TESS_API_FLOAT.
  17. #
  18. # -DNO_BRANCH_CONDITIONS uses & and | instead of && and || on a couple
  19. # of heavily-used tests (VertEq and VertLeq); some compilers can generate
  20. # better code with these (use special instructions to avoid branching).
  21. #
  22. # -DDEBUG is *only* for use with the test program called "trite". It uses
  23. # some variables which are defined by the test program, so you won't
  24. # be able to link it with anything else.
  25. #
  26. MAJORCOMP=opengl
  27. MINORCOMP=libtess
  28. TARGETNAME=libtess
  29. TARGETPATH=$(_OBJ_DIR)
  30. TARGETLIBS=
  31. TARGETTYPE=LIBRARY
  32. INCLUDES=..\inc;..\..\inc
  33. C_DEFINES=-DNT -D__STDC__ -DNDEBUG -DNO_MALLOPT -DGLU32 -DGLU_V12
  34. # There are several build options which are controlled by compiling
  35. # different source files.
  36. # The choices are:
  37. #
  38. # - memory model:
  39. #
  40. # mem-simp.c:
  41. # Uses regular malloc() and free() for memory allocation.
  42. # (useful for debugging)
  43. # memalloc.c:
  44. # Uses a much faster block-based allocator.
  45. #
  46. # -> When using either of these memory models, the corresponding
  47. # header file must be copied to memalloc.h. e.g. for mem-fast.c,
  48. # copy mem-fast.h to memalloc.h
  49. #
  50. # Currently there is only one implementation for the following modules,
  51. # but the API was designed with multiple choices in mind:
  52. #
  53. # - dictionary:
  54. #
  55. # A dynamic dictionary based on doubly-linked lists.
  56. #
  57. # - normals:
  58. #
  59. # Approximates the normal from 3 widely separated vertices.
  60. #
  61. # Default choices for the above models are:
  62. MEMALLOC = mem-simp
  63. SOURCES=geom.c \
  64. errorstr.c \
  65. mesh.c \
  66. render.c \
  67. sweep.c \
  68. tess.c \
  69. tessmono.c \
  70. dict.c \
  71. priority.c \
  72. normal.c \
  73. $(MEMALLOC).c