code_junkie

What is this Makefile Doing?

Nov 12th, 2011
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. # debugging support
  2. ifeq ($(DEBUG), true)
  3. CFLAGS+=-DDEBUG -g
  4. endif
  5.  
  6. ifeq ($(DEBUG), gdb)
  7. CFLAGS+=-g
  8. endif
  9.  
  10. ifeq ($(PROFILING), true)
  11. CFLAGS+=-p
  12. endif
  13.  
  14. # symbolic names debugging
  15. ifeq ($(DEBUG_NAMES), true)
  16. CFLAGS+=-DDEBUG_NAMES
  17. endif
  18.  
  19. # architecture TODO: add others
  20. ifeq ($(ARCH), unix)
  21. CFLAGS+=-DUNIX
  22. endif
  23.  
  24. # TODO: GC settings
  25. ifeq ($(HEAP), malloc)
  26. CFLAGS+=-DHEAP_MALLOC
  27. endif
  28.  
  29. ifeq ($(STACK), malloc)
  30. CFLAGS+=-DSTACK_MALLOC
  31. endif
  32.  
  33. # class loading method
  34. ifeq ($(CLASS), external)
  35. CFLAGS+=-DEXTERNAL_TUK
  36. endif
  37.  
  38. # monitor allocation
  39. ifeq ($(MONITORS), ondemand)
  40. CFLAGS+=-DON_DEMAND_MONITORS
  41. endif
  42.  
  43. ifeq ($(DEBUG), true)
  44.  
  45. CFLAGS+=-DDEBUG -g
  46.  
  47. endif
  48.  
  49. man cc
  50. man gcc
  51. cc --help
  52. gcc --help
Add Comment
Please, Sign In to add comment