Changeset 41f7564 in mainline for boot/Makefile


Ignore:
Timestamp:
2006-07-17T00:53:53Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
231fcb2
Parents:
41c4444
Message:

cleanup and unify the build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile

    r41c4444 r41f7564  
    3030#
    3131
     32-include ../version
    3233-include Makefile.config
    3334
    34 ## Common flags
     35## Paths
    3536#
    3637
     
    3839KERNELDIR = $(BASE)/kernel
    3940USPACEDIR = $(BASE)/uspace
    40 
    41 ## Setup arch configuration
    42 #
    43 
    44 -include arch/$(ARCH)/Makefile.inc
    45 
    46 ifeq ($(ARCH),xen32)
    47         UARCH = ia32
    48 else
    49         UARCH = $(ARCH)
    50 endif
    5141
    5242ifeq ($(CONFIG_DEBUG),y)
     
    5848endif
    5949
    60 .PHONY: all build config distclean arch_distclean clean kernel uspace clean_kernel clean_uspace distclean_kernel distclean_uspace
     50.PHONY: all build config distclean clean generic_clean
    6151
    6252all:
    63         tools/config.py default
    64         $(MAKE) -C . build $(ARCH)
     53        ../tools/config.py boot.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG) $(IMAGE)
     54        $(MAKE) -C . build
     55
     56-include arch/$(ARCH)/Makefile.inc
    6557
    6658config:
    67         tools/config.py
     59        ../tools/config.py boot.config
    6860
    69 distclean: clean arch_distclean
     61distclean: clean
    7062        -rm Makefile.config
    7163
    72 kernel:
    73         $(MAKE) -C $(KERNELDIR) NARCH=$(ARCH)
    74 
    75 uspace:
    76         $(MAKE) -C $(USPACEDIR) NARCH=$(UARCH)
    77 
    78 clean_kernel:
    79         $(MAKE) -C $(KERNELDIR) clean ARCH=$(ARCH)
    80 
    81 clean_uspace:
    82         $(MAKE) -C $(USPACEDIR) clean ARCH=$(UARCH)
    83 
    84 clean_boot_gen:
     64generic_clean:
    8565        -rm generic/*.o genarch/*.o
    86 
    87 distclean_kernel:
    88         $(MAKE) -C $(KERNELDIR) distclean ARCH=$(ARCH)
    89 
    90 distclean_uspace:
    91         $(MAKE) -C $(USPACEDIR) distclean ARCH=$(UARCH)
Note: See TracChangeset for help on using the changeset viewer.