Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. SRCDIR = ltp-master
  2. BUILDDIR = opt/ltp
  3. TESTCASEDIR = $(BUILDDIR)/testcases/bin
  4. target = $(BUILDDIR)/bin/run_in_graphene.awk $(TESTCASEDIR)/pal_loader build-manifest
  5. exec_target =
  6. clean-extra = clean-build
  7. level = ../../
  8. include ../../Makefile
  9. master.zip:
  10. wget https://github.com/linux-test-project/ltp/archive/master.zip
  11. $(SRCDIR)/configure: master.zip
  12. unzip master.zip
  13. cd $(SRCDIR) && make autotools
  14. $(BUILDDIR)/runltp: $(SRCDIR)/configure
  15. cd $(SRCDIR) && ./configure
  16. cd $(SRCDIR) && make all
  17. cd $(SRCDIR) && make "DESTDIR=$(PWD)" SKIP_IDCHECK=1 install
  18. patch -d $(dir $@) < runltp.patch
  19. $(BUILDDIR)/bin/run_in_graphene.awk: run_in_graphene.awk $(BUILDDIR)/runltp
  20. cp -f $< $@
  21. $(TESTCASEDIR)/pal_loader: $(BUILDDIR)/runltp
  22. ln -sf $(call relative-to,$(dir $@),../../../Runtime/pal_loader) $@
  23. build-manifest: $(TESTCASEDIR)/manifest.template $(TESTCASEDIR)/Makefile
  24. cd $(TESTCASEDIR) && make
  25. $(TESTCASEDIR)/manifest.template: manifest.template
  26. cp -f $< $@
  27. $(TESTCASEDIR)/Makefile: Makefile.testcases
  28. ln -sf ../../../../$< $@
  29. clean-build:
  30. rm -rf $(BUILDDIR)