Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  10. CFLAGS-msg_create_libos += $(CFLAGS-libos)
  11. CFLAGS-msg_send_libos += $(CFLAGS-libos)
  12. LDLIBS-condvar += -lpthread
  13. LDLIBS-futextest += -lpthread
  14. LDLIBS-get_time += -lm
  15. LDLIBS-helloworld_pthread += -lpthread
  16. LDLIBS-msg_create_libos += -llibos
  17. LDLIBS-msg_send_libos += -llibos
  18. LDLIBS-sqrt += -lm
  19. LDLIBS-start += -lpthread -lm
  20. LDLIBS-sync += -lpthread
  21. LDLIBS-test_start_pthread_m += -lm
  22. %: %.c
  23. $(call cmd,csingle)
  24. %: %.cpp
  25. $(call cmd,cxxsingle)
  26. ifeq ($(filter %clean,$(MAKECMDGOALS)),)
  27. include $(wildcard *.d)
  28. endif
  29. else
  30. .IGNORE: $(c_executables) $(cxx_executables)
  31. $(c_executables) $(cxx_executables):
  32. endif