Makefile 663 B

12345678910111213141516171819202122232425262728
  1. apps = lmbench gcc busybox lighttpd bash apache make
  2. targets = pal
  3. clean-extra = clean-all
  4. level = ../
  5. include ../Makefile
  6. manifest_rules = \
  7. -e 's:\$$(PWD):$(shell pwd)/$(appdir):g' \
  8. -e 's:\$$(BIN):$(subst .manifest,,$(notdir $@)):g' \
  9. -e 's:\$$(SHIMPATH):$(shell readlink -f ../../src/libsysdb.so):g' \
  10. -e 's:\$$(GLIBCDIR):$(shell readlink -f $(glibc_dir)):g' \
  11. $(extra_rules)
  12. %.manifest: %.manifest.template libpal.so
  13. rm -f $@ $@.backup
  14. sed $(manifest_rules) $< >$@
  15. chmod +x $@
  16. libpal.so:
  17. make pal
  18. build-all:
  19. for f in $(apps); do (cd $$f; make $(DEBUG) || true; cd ..); done
  20. clean-all:
  21. for f in $(apps); do (cd $$f; make clean; cd ..); done