Makefile 656 B

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