Makefile 514 B

1234567891011121314151617181920212223242526
  1. include ../../Scripts/Makefile.configs
  2. include ../../Scripts/Makefile.rules
  3. ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
  4. files_to_build += user_start.o user_shared_start.o
  5. endif
  6. .PHONY: all test
  7. all: $(files_to_build)
  8. test:
  9. user_start.o: user_start.S
  10. $(call cmd,as_o_S)
  11. ASFLAGS-user_shared_start.o = -DSHARED -fPIC
  12. user_shared_start.o: user_start.S
  13. $(call cmd,as_o_S)
  14. include $(wildcard *.d)
  15. .PHONY: clean
  16. clean:
  17. $(RM) $(files_to_build) *.d
  18. .PHONY: distclean
  19. distclean: clean