Makefile 1.0 KB

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