Changeset 9a0367f in mainline for Makefile


Ignore:
Timestamp:
2009-01-20T18:38:16Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
27fb3d6
Parents:
b1747a5
Message:

configuration system overhaul (requires newt)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rb1747a5 r9a0367f  
    3737ifeq ($(PLATFORM),amd64)
    3838        KARCH = amd64
    39         MACHINE = opteron
    4039        UARCH = amd64
    4140        BARCH = amd64
     
    112111
    113112all:
    114         tools/config.py HelenOS.config default $(PLATFORM) $(COMPILER) $(CONFIG_DEBUG)
     113        tools/config.py HelenOS.config default
    115114        $(MAKE) -C . build
    116115
    117 build:
    118 ifneq ($(MACHINE),)
    119         $(MAKE) -C kernel ARCH=$(KARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG) MACHINE=$(MACHINE)
    120 else
    121         $(MAKE) -C kernel ARCH=$(KARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
    122 endif
    123         $(MAKE) -C uspace ARCH=$(UARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
    124 ifneq ($(IMAGE),)
    125         $(MAKE) -C boot ARCH=$(BARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG) IMAGE=$(IMAGE)
    126 else
    127         $(MAKE) -C boot ARCH=$(BARCH) COMPILER=$(COMPILER) CONFIG_DEBUG=$(CONFIG_DEBUG)
    128 endif
     116build: Makefile.config
     117        $(MAKE) -C kernel ARCH=$(KARCH)
     118        $(MAKE) -C uspace ARCH=$(UARCH)
     119        $(MAKE) -C boot ARCH=$(BARCH) IMAGE=$(IMAGE)
    129120
    130 config:
     121config: HelenOS.config
    131122        tools/config.py HelenOS.config
    132123
    133 distclean:
    134         -$(MAKE) -C kernel distclean
    135         -$(MAKE) -C uspace distclean
    136         -$(MAKE) -C boot distclean
     124distclean: clean
    137125        rm -f Makefile.config tools/*.pyc
    138126
    139127clean:
    140         -$(MAKE) -C kernel clean
    141         -$(MAKE) -C uspace clean
    142         -$(MAKE) -C boot clean
     128        -$(MAKE) -C kernel clean ARCH=$(KARCH)
     129        -$(MAKE) -C uspace clean ARCH=$(UARCH)
     130        -$(MAKE) -C boot clean ARCH=$(BARCH) IMAGE=$(IMAGE)
    143131
    144132cscope:
Note: See TracChangeset for help on using the changeset viewer.