Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. level = ../
  7. include ../../../../Makefile.configs
  8. include ../../../../Makefile.rules
  9. include ../Makefile
  10. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  11. CFLAGS-msg_create.libos += $(CFLAGS-libos)
  12. CFLAGS-msg_send.libos += $(CFLAGS-libos)
  13. LDLIBS-condvar.pthread += -lpthread
  14. LDLIBS-futextest.pthread += -lpthread
  15. LDLIBS-get_time.m += -lm
  16. LDLIBS-helloworld.pthread += -lpthread
  17. LDLIBS-msg_create.libos += -llibos
  18. LDLIBS-msg_send.libos += -llibos
  19. LDLIBS-sqrt.m += -lm
  20. LDLIBS-start.pthread.m += -lpthread -lm
  21. LDLIBS-sync.pthread += -lpthread
  22. LDLIBS-test_start_pthread_m.m += -lm
  23. $(c_executables): %: %.c
  24. $(call cmd,csingle)
  25. $(cxx_executables): %: %.cpp
  26. $(call cmd,cxxsingle)
  27. include $(wildcard *.d)
  28. else
  29. .IGNORE: $(c_executables) $(cxx_executables)
  30. $(c_executables) $(cxx_executables):
  31. endif