Makefile 713 B

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