Changeset 40 for trunk/data/diskdev-cmds

Show
Ignore:
Timestamp:
01/27/08 23:39:26 (1 year ago)
Author:
saurik
Message:

If possible, diskdev-cmds should have few external requirements (like /System).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/diskdev-cmds/make.sh

    r11 r40  
    1212    tproj=$(basename "${tproj}" .tproj) 
    1313    echo ${tproj} 
    14     arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -framework IOKit -framework CoreFoundation -lutil 
     14 
     15    extra= 
     16    if [[ ${tproj} = mount_cd9660 ]]; then 
     17        extra="${extra} -framework IOKit" 
     18    fi 
     19 
     20    if [[ ${tproj} = mount_cd9660 || ${tproj} = newfs_hfs ]]; then 
     21        extra="${extra} -framework CoreFoundation" 
     22    fi 
     23 
     24    arm-apple-darwin-gcc -Idisklib -o "${tproj}" $(find "${tproj}.tproj" -name '*.c') disklib/libdisk.a -lutil ${extra} 
    1525    arm-apple-darwin-strip "${tproj}" 
    1626done