Makefile 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. c_executables = \
  2. fork \
  3. helloworld \
  4. vfork
  5. cxx_executables =
  6. exec_target = \
  7. $(c_executables) \
  8. $(cxx_executables)
  9. target = \
  10. $(c_executables) \
  11. $(cxx_executables) \
  12. manifest
  13. include ../../../../Scripts/Makefile.configs
  14. include ../../../../Scripts/Makefile.manifest
  15. include ../../../../Scripts/Makefile.Test
  16. .PHONY: crt_init-recurse
  17. crt_init-recurse:
  18. $(MAKE) -C ../crt_init all
  19. ../crt_init/user_shared_start.o ../crt_init/user_start.o: crt_init-recurse
  20. @true
  21. LDLIBS-user_start = $(PALDIR)/../crt_init/user_start.o
  22. .PHONY: crt_init-recurse
  23. crt_init-recurse:
  24. $(MAKE) -C $(PALDIR)/../crt_init/ all
  25. $(PALDIR)/../crt_init/user_start.o: crt_init-recurse
  26. @true
  27. CFLAGS += $(CFLAGS-libos-debug)
  28. CXXFLAGS += $(CXXFLAGS-libos-debug)
  29. LDLIBS += $(LDLIBS-user_start) $(LDFLAGS-libos-debug)
  30. $(c_executables): %: %.c $(LDLIBS-user_start)
  31. $(call cmd,csingle)
  32. $(cxx_executables): %: %.cpp $(LDLIBS-user_start)
  33. $(call cmd,cxxsingle)