Makefile 853 B

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