1# 2# Common make for acpica tools and utilities 3# 4 5# 6# Main rule will only generate versions that are appropriate for the running 7# OS, either 64-bit or 32-bit. 8# 9all: $(PROGS) 10$(PROGS): FORCE 11 @cd $(BUILD_DIRECTORY_PATH)/$@; \ 12 mkdir -p obj; \ 13 $(MAKE) || exit "$$?"; \ 14 echo "$(TARGET) version of $@:"; \ 15 ls -al ../bin/$@.efi; \ 16 echo ""; 17 18# 19# Simple clean removes all .obj files, but leaves the executables 20# in the local bin directory 21# 22clean: FORCE 23 @for toolname in $(PROGS); do \ 24 (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ 25 if [ -d "obj" ] ; then \ 26 echo "Removing $$toolname:"; \ 27 pwd; \ 28 $(MAKE) clean; \ 29 rmdir obj; \ 30 echo ""; \ 31 fi; \ 32 ); \ 33 done; 34 35# 36# Very clean removes all executables and the local bin directory 37# 38veryclean: FORCE 39 @for toolname in $(PROGS); do \ 40 (cd $(BUILD_DIRECTORY_PATH)/$$toolname; \ 41 if [ -d "obj" ] ; then \ 42 echo "Removing $$toolname:"; \ 43 pwd; \ 44 $(MAKE) clean; \ 45 rmdir obj; \ 46 echo ""; \ 47 fi; \ 48 ); \ 49 if [ -e "$(BUILD_DIRECTORY_PATH)/bin/$$toolname" ] ; then \ 50 rm $(BUILD_DIRECTORY_PATH)/bin/$$toolname; \ 51 fi; \ 52 done; \ 53 if [ -d "bin" ] ; then \ 54 rmdir bin; \ 55 fi; 56 57machine: FORCE 58 @echo "Target architecture: $(TARGET)"; 59 @echo "Host architecture: $(ACPI_HOST)"; 60 61FORCE: 62