/modules/freetype2/builds/compiler/watcom.mk

http://github.com/zpao/v8monkey · Makefile · 81 lines · 17 code · 22 blank · 42 comment · 0 complexity · 4b06843a40ad67fb08c8931975cfd51e MD5 · raw file

  1. #
  2. # FreeType 2 Watcom-specific definitions
  3. #
  4. # Copyright 1996-2000, 2003, 2006 by
  5. # David Turner, Robert Wilhelm, and Werner Lemberg.
  6. #
  7. # This file is part of the FreeType project, and may only be used, modified,
  8. # and distributed under the terms of the FreeType project license,
  9. # LICENSE.TXT. By continuing to use, modify, or distribute this file you
  10. # indicate that you have read the license and understand and accept it
  11. # fully.
  12. # Compiler command line name
  13. #
  14. CC := wcc386
  15. COMPILER_SEP := $(SEP)
  16. # The object file extension (for standard and static libraries). This can be
  17. # .o, .tco, .obj, etc., depending on the platform.
  18. #
  19. O := obj
  20. SO := obj
  21. # The library file extension (for standard and static libraries). This can
  22. # be .a, .lib, etc., depending on the platform.
  23. #
  24. A := lib
  25. SA := lib
  26. # Path inclusion flag. Some compilers use a different flag than `-I' to
  27. # specify an additional include path. Examples are `/i=' or `-J'.
  28. #
  29. I := -I=
  30. # C flag used to define a macro before the compilation of a given source
  31. # object. Usually it is `-D' like in `-DDEBUG'.
  32. #
  33. D := -D
  34. # The link flag used to specify a given library file on link. Note that
  35. # this is only used to compile the demo programs, not the library itself.
  36. #
  37. L := -l
  38. # Target flag.
  39. #
  40. T := -FO=
  41. # C flags
  42. #
  43. # These should concern: debug output, optimization & warnings.
  44. #
  45. # Use the ANSIFLAGS variable to define the compiler flags used to enfore
  46. # ANSI compliance.
  47. #
  48. CFLAGS ?= -zq
  49. # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
  50. #
  51. ANSIFLAGS := -za
  52. # Library linking
  53. #
  54. CLEAN_LIBRARY ?= $(DELETE) $(subst /,$(SEP),$(PROJECT_LIBRARY))
  55. LINK_LIBRARY = $(subst /,$(COMPILER_SEP), \
  56. wlib -q -n $@; \
  57. $(foreach m, $(OBJECTS_LIST), wlib -q $@ +$(m);) \
  58. echo > nul)
  59. # EOF