Makefile 627 B

1234567891011121314151617181920212223242526
  1. c_executables = $(patsubst %.c,%,$(wildcard *.c))
  2. cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
  3. exec_target = $(c_executables) $(cxx_executables)
  4. target = $(exec_target) manifest
  5. include ../../../../Scripts/Makefile.Test
  6. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  7. CFLAGS-rpc_latency += $(CFLAGS-libos)
  8. CFLAGS-rpc_latency2 += $(CFLAGS-libos)
  9. LDLIBS-rpc_latency += -llibos
  10. LDLIBS-rpc_latency2 += -llibos
  11. LDLIBS-test_start += -lm
  12. %: %.c
  13. $(call cmd,csingle)
  14. %: %.cpp
  15. $(call cmd,cxxsingle)
  16. else
  17. .IGNORE: $(c_executables) $(cxx_executables)
  18. $(c_executables) $(cxx_executables):
  19. endif