Changeset ecfd7e5 in mainline


Ignore:
Timestamp:
2006-01-15T14:23:08Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
350514c
Parents:
56a39dde
Message:

use new style uspace configuration

Files:
2 added
9 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r56a39dde recfd7e5  
    2727#
    2828
    29 ## Make some default assumptions
     29## Include configuration
    3030#
    3131
    32 ifndef ARCH
    33         ARCH = ia32
    34 endif
     32-include Makefile.config
    3533
    36 SOURCES = \
     34DIRS = \
    3735        libc \
    3836        init \
    3937        softfloat
    4038
    41 CLEANS := $(addsuffix .clean,$(SOURCES))
     39BUILDS := $(addsuffix .build,$(DIRS))
     40CLEANS := $(addsuffix .clean,$(DIRS))
    4241
    43 .PHONY: all $(SOURCES) $(CLEANS) clean
     42.PHONY: all config build $(BUILDS) $(CLEANS) clean distclean
    4443
    45 all: $(SOURCES)
     44all:
     45        tools/config.py default $(ARCH)
     46        $(MAKE) -C . build
     47
     48config:
     49        tools/config.py
     50
     51build: $(BUILDS)
    4652
    4753clean: $(CLEANS)
    4854        find $(SOURCES) -name '*.o' -follow -exec rm \{\} \;
    4955
     56distclean: clean
     57        -rm Makefile.config
     58
    5059$(CLEANS):
    5160        $(MAKE) -C $(basename $@) clean ARCH=$(ARCH)
    5261
    53 $(SOURCES):
    54         $(MAKE) -C $@ all ARCH=$(ARCH)
     62$(BUILDS):
     63        $(MAKE) -C $(basename $@) all ARCH=$(ARCH)
Note: See TracChangeset for help on using the changeset viewer.