Makefile 935 B

12345678910111213141516171819202122232425262728293031323334
  1. c_executables = $(patsubst %.c,%,$(wildcard *.c))
  2. cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
  3. manifests = $(patsubst %.template,%,$(wildcard *.manifest.template)) manifest
  4. exec_target = $(c_executables) $(cxx_executables) ls.manifest
  5. target = $(exec_target) $(manifests)
  6. include ../../../../Scripts/Makefile.configs
  7. include ../../../../Scripts/Makefile.manifest
  8. include ../../../../Scripts/Makefile.Test
  9. CFLAGS-msg_create_libos += $(CFLAGS-libos)
  10. CFLAGS-msg_send_libos += $(CFLAGS-libos)
  11. LDLIBS-condvar += -lpthread
  12. LDLIBS-futextest += -lpthread
  13. LDLIBS-get_time += -lm
  14. LDLIBS-helloworld_pthread += -lpthread
  15. LDLIBS-msg_create_libos += -llibos
  16. LDLIBS-msg_send_libos += -llibos
  17. LDLIBS-sqrt += -lm
  18. LDLIBS-start += -lpthread -lm
  19. LDLIBS-sync += -lpthread
  20. LDLIBS-test_start_pthread_m += -lm
  21. %: %.c
  22. $(call cmd,csingle)
  23. %: %.cpp
  24. $(call cmd,cxxsingle)
  25. ifeq ($(filter %clean,$(MAKECMDGOALS)),)
  26. include $(wildcard *.d)
  27. endif