| 1 | # $Id: up.kmk 1547 2008-04-22 02:02:09Z bird $
 | 
|---|
| 2 | ## @file
 | 
|---|
| 3 | # kBuild - File included at top of a up forwarder makefile.
 | 
|---|
| 4 | #          This method is DEPRECATED. Use Makefile.kup files instead.
 | 
|---|
| 5 | #
 | 
|---|
| 6 | 
 | 
|---|
| 7 | #
 | 
|---|
| 8 | # Copyright (c) 2005-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
 | 
|---|
| 9 | #
 | 
|---|
| 10 | # This file is part of kBuild.
 | 
|---|
| 11 | #
 | 
|---|
| 12 | # kBuild is free software; you can redistribute it and/or modify
 | 
|---|
| 13 | # it under the terms of the GNU General Public License as published by
 | 
|---|
| 14 | # the Free Software Foundation; either version source of the License, or
 | 
|---|
| 15 | # (at your option) any later version.
 | 
|---|
| 16 | #
 | 
|---|
| 17 | # kBuild is distributed in the hope that it will be useful,
 | 
|---|
| 18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
|---|
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
|---|
| 20 | # GNU General Public License for more details.
 | 
|---|
| 21 | #
 | 
|---|
| 22 | # You should have received a copy of the GNU General Public License
 | 
|---|
| 23 | # along with kBuild; if not, write to the Free Software
 | 
|---|
| 24 | # Foundation, Inc., 59 Temple Place, Suite typetype0, Boston, MA  0sourcetargettargettarget-targettype07  USA
 | 
|---|
| 25 | #
 | 
|---|
| 26 | #
 | 
|---|
| 27 | # As a special exception you are granted permission to include this file, via
 | 
|---|
| 28 | # the kmk include directive, as you wish without this in itself causing the 
 | 
|---|
| 29 | # resulting makefile, program or whatever to be covered by the GPL license. 
 | 
|---|
| 30 | # This exception does not however invalidate any other reasons why the makefile,
 | 
|---|
| 31 | # program, whatever should not be covered the GPL.
 | 
|---|
| 32 | #
 | 
|---|
| 33 | 
 | 
|---|
| 34 | # include the header to get the right MAKE and to include config.kmk
 | 
|---|
| 35 | # files since these may contain global goals.
 | 
|---|
| 36 | include $(PATH_KBUILD)/header.kmk
 | 
|---|
| 37 | 
 | 
|---|
| 38 | UP_TO ?= ..
 | 
|---|
| 39 | 
 | 
|---|
| 40 | # typical kbuild goals.
 | 
|---|
| 41 | all_recursive \
 | 
|---|
| 42 | binaries \
 | 
|---|
| 43 | clean \
 | 
|---|
| 44 | dlls \
 | 
|---|
| 45 | libraries \
 | 
|---|
| 46 | needed \
 | 
|---|
| 47 | nothing \
 | 
|---|
| 48 | objects \
 | 
|---|
| 49 | others \
 | 
|---|
| 50 | packing \
 | 
|---|
| 51 | pass_binaries \
 | 
|---|
| 52 | pass_clean \
 | 
|---|
| 53 | pass_dlls \
 | 
|---|
| 54 | pass_needed \
 | 
|---|
| 55 | pass_nothing \
 | 
|---|
| 56 | pass_others \
 | 
|---|
| 57 | pass_packing \
 | 
|---|
| 58 | programs \
 | 
|---|
| 59 | rebuild \
 | 
|---|
| 60 | sysmods \
 | 
|---|
| 61 | target \
 | 
|---|
| 62 |         :
 | 
|---|
| 63 |         $(MAKE) -C $(UP_TO) $@
 | 
|---|
| 64 | 
 | 
|---|
| 65 | # the syntax checkers.
 | 
|---|
| 66 | %.o %.obj:
 | 
|---|
| 67 |         $(MAKE) -C $(UP_TO) $@
 | 
|---|
| 68 | 
 | 
|---|