Makefile 747 B

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