Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. c_executables = \
  2. alarm \
  3. brk \
  4. clone \
  5. condvar \
  6. cpuinfo \
  7. dir \
  8. divzero \
  9. dup \
  10. epoll \
  11. epoll_socket \
  12. errno \
  13. exec_fork \
  14. file \
  15. fork \
  16. fork_bomb \
  17. fork_exec \
  18. fs \
  19. futextest \
  20. get_time \
  21. helloworld \
  22. helloworld_pthread \
  23. kill \
  24. malloc \
  25. meminfo \
  26. msg_create \
  27. msg_create_libos \
  28. msg_send \
  29. msg_send_libos \
  30. multiproc \
  31. multisleep \
  32. pause \
  33. pid_alloc \
  34. pid_kill \
  35. pipe \
  36. pipe_latency \
  37. readdir \
  38. rename \
  39. script \
  40. sem \
  41. sleep \
  42. socketpair \
  43. sqrt \
  44. start \
  45. sync \
  46. system \
  47. tcp \
  48. test_start_pthread_m \
  49. time \
  50. vfork \
  51. vfork_exec
  52. cxx_executables =
  53. manifests = \
  54. manifest \
  55. exec_fork.manifest \
  56. ls.manifest \
  57. script.manifest \
  58. static.manifest
  59. exec_target = \
  60. $(c_executables) \
  61. $(cxx_executables) \
  62. ls.manifest
  63. target = \
  64. $(exec_target) \
  65. $(manifests)
  66. include ../../../../Scripts/Makefile.configs
  67. include ../../../../Scripts/Makefile.manifest
  68. include ../../../../Scripts/Makefile.Test
  69. CFLAGS-msg_create_libos += $(CFLAGS-libos)
  70. CFLAGS-msg_send_libos += $(CFLAGS-libos)
  71. LDLIBS-condvar += -lpthread
  72. LDLIBS-futextest += -lpthread
  73. LDLIBS-get_time += -lm
  74. LDLIBS-helloworld_pthread += -lpthread
  75. LDLIBS-msg_create_libos += -llibos
  76. LDLIBS-msg_send_libos += -llibos
  77. LDLIBS-sqrt += -lm
  78. LDLIBS-start += -lpthread -lm
  79. LDLIBS-sync += -lpthread
  80. LDLIBS-test_start_pthread_m += -lm
  81. %: %.c
  82. $(call cmd,csingle)
  83. %: %.cpp
  84. $(call cmd,cxxsingle)
  85. ifeq ($(filter %clean,$(MAKECMDGOALS)),)
  86. include $(wildcard *.d)
  87. endif