Changeset b5e68c8 in mainline for Makefile


Ignore:
Timestamp:
2011-05-12T16:49:44Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f36787d7
Parents:
e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    re80329d6 rb5e68c8  
    2828
    2929CSCOPE = cscope
     30CHECK = tools/check.sh
    3031CONFIG = tools/config.py
    3132AUTOTOOL = tools/autotool.py
     
    4142CONFIG_HEADER = config.h
    4243
    43 .PHONY: all precheck cscope autotool config_default config distclean clean
     44.PHONY: all precheck cscope autotool config_auto config_default config distclean clean check releasefile release
    4445
    4546all: $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER)
     
    5556        find kernel boot uspace -regex '^.*\.[chsS]$$' | xargs $(CSCOPE) -b -k -u -f$(CSCOPE).out
    5657
     58# Pre-integration build check
     59check: $(CHECK)
     60ifdef JOBS
     61        $(CHECK) -j $(JOBS)
     62else
     63        $(CHECK)
     64endif
     65
     66# Autotool (detects compiler features)
     67
    5768$(COMMON_MAKEFILE): autotool
    5869$(COMMON_HEADER): autotool
     
    6273        -[ -f $(COMMON_HEADER_PREV) ] && diff -q $(COMMON_HEADER_PREV) $(COMMON_HEADER) && mv -f $(COMMON_HEADER_PREV) $(COMMON_HEADER)
    6374
     75# Build-time configuration
     76
    6477$(CONFIG_MAKEFILE): config_default
    6578$(CONFIG_HEADER): config_default
    6679
    6780config_default: $(CONFIG_RULES)
    68         $(CONFIG) $< default
     81ifeq ($(HANDS_OFF),y)
     82        $(CONFIG) $< hands-off $(PROFILE)
     83else
     84        $(CONFIG) $< default $(PROFILE)
     85endif
    6986
    7087config: $(CONFIG_RULES)
    7188        $(CONFIG) $<
    7289
     90# Release files
     91
     92releasefile: all
     93        $(MAKE) -C release releasefile
     94
     95release:
     96        $(MAKE) -C release release
     97
     98# Cleaning
     99
    73100distclean: clean
    74         rm -f $(CSCOPE).out $(COMMON_MAKEFILE) $(COMMON_HEADER) $(COMMON_HEADER_PREV) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) tools/*.pyc tools/checkers/*.pyc
     101        rm -f $(CSCOPE).out $(COMMON_MAKEFILE) $(COMMON_HEADER) $(COMMON_HEADER_PREV) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) tools/*.pyc tools/checkers/*.pyc release/HelenOS-*
    75102
    76103clean:
Note: See TracChangeset for help on using the changeset viewer.