Show
Ignore:
Timestamp:
05/24/08 09:57:44 (6 months ago)
Author:
mwhitworth
Message:

Update main makefile to reflect new modular kernel.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/hybrid/Makefile

    r443 r547  
    99 
    1010#Change to N to produce a smaller kernel if debug functionality is not required 
    11 CONFIG_ALLSYMS = N 
     11CONFIG_ALLSYMS = Y 
    1212 
    1313#Make sure all makefiles can see everything 
     
    1717SUBDIRS = arch/$(ARCH) devices fs kernel lib memory net video user 
    1818 
     19DIRMODULES = CdRoot/System/Modules CdRoot/System/Modules/Core CdRoot/System/Modules/Input CdRoot/System/Modules/Network CdRoot/System/Modules/Storage CdRoot/System/Modules/Filesystems CdRoot/System/Modules/Video 
     20DIRLIST = CdRoot CdRoot/Applications CdRoot/Mount CdRoot/System/Devices CdRoot/System/Include CdRoot/System/Runtime CdRoot/System/Runtime/C CdRoot/System/Startup/ 
     21 
    1922all: cd  
    20         mkdir -p CdRoot CdRoot/Applications CdRoot/Mount CdRoot/System/Devices CdRoot/System/Include CdRoot/System/Runtime CdRoot/System/Runtime/C CdRoot/System/Modules CdRoot/System/Startup 
     23        mkdir -p $(DIRLIST) 
    2124        make -C user install 
    2225        mkisofs -o cd.iso -b Boot/isoboot -no-emul-boot -c Boot/boot.cat -boot-load-size 4 -boot-info-table -iso-level 3 -l CdRoot 
     
    3336        cp arch/$(ARCH)/boot/setup CdRoot/Boot/KeLoader 
    3437        cp kern CdRoot/Boot/Kernel 
     38        cp Boot.modules CdRoot/Boot/Boot.modules 
     39        mv CdRoot/System/Modules/Filesystems/cdfs.sys CdRoot/System/Modules/Core/cdfs.sys 
     40        mv CdRoot/System/Modules/Storage/ata_ide.sys CdRoot/System/Modules/Core/ata_ide.sys 
     41        mv CdRoot/System/Modules/Video/console.sys CdRoot/System/Modules/Core/ 
    3542        cp about.txt CdRoot/readme.txt 
    3643         
     
    4451 
    4552kern: subdirs 
    46         ld -M -T link.ld arch/$(ARCH)/boot/*.o arch/$(ARCH)/lib/*.o arch/$(ARCH)/kernel/*.o arch/$(ARCH)/mm/*.o devices/*.o devices/net/*.o devices/input/*.o devices/storage/*.o devices/storage/ata/*.o devices/pci/*.o kernel/*.o net/*.o net/inet/*.o video/*.o fs/*.o fs/isofs/*.o fs/vfs/*.o fs/fat/*.o fs/ext3/*.o lib/*.o memory/*.o -o kern > kernel.txt 
     53        ld -M -T link.ld arch/$(ARCH)/boot/*.o arch/$(ARCH)/lib/*.o arch/$(ARCH)/kernel/*.o arch/$(ARCH)/mm/*.o kernel/*.o lib/*.o memory/*.o video/*.o -o kern > kernel.txt 
     54        mkdir -p $(DIRMODULES) 
     55        make -C net modules_install 
     56        make -C fs modules_install 
     57        make -C devices modules_install 
     58        make -C memory modules_install 
     59        make -C video modules_install 
     60        make -C kernel modules_install 
    4761 
    4862subdirs: