apps = lmbench gcc busybox lighttpd bash apache make packed_apps = lmbench targets = pal pal_sec clean-extra = clean-all level = ../ include ../Makefile manifest_rules = \ -e 's:\$$(PAL):$(abspath $(PWD)/../pal_loader):g' \ -e 's:\$$(PWD):$(PWD)/:g' \ -e 's:\$$(BIN):$(subst .manifest,,$(notdir $@)):g' \ -e 's:\$$(SHIMPATH):$(abspath ../../src/libsysdb.so):g' \ -e 's:\$$(GLIBCDIR):$(abspath $(glibc_dir))/:g' \ -e 's:\$$(HOSTNAME):$(shell hostname)/:g' \ $(extra_rules) %.manifest: %.manifest.template rm -f $@ $@.backup sed $(manifest_rules) $< >$@ chmod +x $@ ifeq ($(SYS),x86_64-linux-gnu) build-all: for f in $(apps); do (cd $$f; make $(DEBUG) || true; cd ..); done .PHONY: pack pack: for f in $(packed_apps); do (cd $$f; make pack; cd ..); done else build-all: for f in $(packed_apps); do (cd $$f; make || true; cd ..); done endif clean-all: for f in $(apps); do (cd $$f; make clean; cd ..); done