Makefile 846 B

12345678910111213141516171819202122232425262728293031323334
  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.configs
  6. include ../../../../Makefile.rules
  7. include ../Makefile.Test
  8. CFLAGS-libos = -L../../../glibc-build/libos -I../../include
  9. %.manifest: %.manifest.template
  10. rm -rf $@
  11. cp $@.template $@
  12. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  13. CFLAGS-rpc_latency.libos += $(CFLAGS-libos)
  14. CFLAGS-rpc_latency2.libos += $(CFLAGS-libos)
  15. LDLIBS-rpc_latency.libos += -llibos
  16. LDLIBS-rpc_latency2.libos += -llibos
  17. LDLIBS-test_start.m += -lm
  18. $(c_executables): %: %.c
  19. $(call cmd,csingle)
  20. $(cxx_executables): %: %.cpp
  21. $(call cmd,cxxsingle)
  22. else
  23. .IGNORE: $(c_executables) $(cxx_executables)
  24. $(c_executables) $(cxx_executables):
  25. endif