Changeset 6874 for trunk/makefile


Ignore:
Timestamp:
Sep 30, 2001, 2:39:51 AM (24 years ago)
Author:
bird
Message:

Updated to have all rules and process more quietly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/makefile

    r4770 r6874  
    1 # $Id: makefile,v 1.16 2000-12-09 16:04:55 phaller Exp $
     1# $Id: makefile,v 1.17 2001-09-30 00:39:51 bird Exp $
    22
    33#
     
    3939!include makefile.inc
    4040
    41 all:        odin_libraries  needed_tools
    42     cd src
    43     $(MAKE) -nologo  all
    44     cd ..\tools\install
    45     $(MAKE) -nologo  all
    4641
    47 clean:
    48     cd lib
    49     $(MAKE) -nologo clean
    50     cd ..\tools
    51     $(MAKE) -nologo clean
    52     cd ..\src
    53     $(MAKE) -nologo clean
    54 
    55 profile:      odin_libraries  needed_tools
    56     cd src
    57     $(MAKE) -nologo all DEBUG=1 PROFILE=1
    58     cd ..\tools\install
    59     $(MAKE) -nologo all DEBUG=1 PROFILE=1
    60 
    61 debug:      odin_libraries  needed_tools
    62     cd src
    63     $(MAKE) -nologo all DEBUG=1
    64     cd ..\tools\install
    65     $(MAKE) -nologo all DEBUG=1
    66 
    67 debugsmp:   odin_libraries  needed_tools
    68     cd src
    69     $(MAKE) -nologo DEBUG=1 smp
    70     cd ..\tools\install
    71     $(MAKE) -nologo DEBUG=1 all
    72 
    73 nodebuginfo:    odin_libraries  needed_tools
    74     cd src
    75     $(MAKE) -nologo all DEBUG=1 NODEBUGINFO=1
    76     cd ..\tools\install
    77     $(MAKE) -nologo all DEBUG=1 NODEBUGINFO=1
    78 
    79 nodebuginfosmp: odin_libraries  needed_tools
    80     cd src
    81     $(MAKE) -nologo DEBUG=1 NODEBUGINFO=1 smp
    82     cd ..\tools\install
    83     $(MAKE) -nologo DEBUG=1 NODEBUGINFO=1 all
    84 
    85 release:    odin_libraries  needed_tools
    86     SET DEBUG=
    87     cd src
    88     $(MAKE) -nologo all
    89     cd ..\tools\install
    90     $(MAKE) -nologo all
    91 
    92 releasesmp: odin_libraries  needed_tools
    93     SET DEBUG=
    94     cd src
    95     $(MAKE) -nologo smp
    96     cd ..\tools\install
    97     $(MAKE) -nologo all
    98 
    99 dep: needed_tools
    100     cd tools
    101     $(MAKE) -nologo dep
    102     cd ..\src
    103     $(MAKE) -nologo dep
     42#
     43# (Re?)Define make command.
     44#
     45MAKE_CMD = $(MAKE) -nologo
    10446
    10547
    106 # --- common section ---
    107 odin_libraries:
    108     cd lib
    109     $(MAKE) -nologo
    110     cd ..
     48#
     49# Build which are normally built.
     50#
     51BLDDIRS = src tools\install
     52ALL_DIRS = include lib src tools
    11153
    11254
    113 needed_tools:
    114     cd tools
    115     $(MAKE) -nologo needed
    116     cd ..
     55#
     56# The ordinary rules.
     57#
     58all:            odin_libraries  needed
     59    @$(DODIRS) "$(BLDDIRS)"     $(MAKE_CMD) all
    11760
     61clean nothing:
     62    @$(DODIRS) "$(ALL_DIRS)"    $(MAKE_CMD) $@
     63
     64libs: lib
     65lib dep:        needed
     66    @$(DODIRS) "$(ALL_DIRS)"    $(MAKE_CMD) $@
     67
     68
     69#
     70# Special build mode rules.
     71#
     72debug:          odin_libraries  needed
     73    @$(DODIRS) "$(BLDDIRS)"     $(MAKE_CMD) DEBUG=1 all
     74
     75debugsmp:       odin_libraries  needed
     76    @$(DODIRS) "src"            $(MAKE_CMD) DEBUG=1 smp
     77    @$(DODIRS) "tools\install"  $(MAKE_CMD) DEBUG=1 all
     78
     79nodebuginfo:    odin_libraries  needed
     80    @$(DODIRS) "$(BLDDIRS)"     $(MAKE_CMD) DEBUG=1 NODEBUGINFO=1 all
     81
     82nodebuginfosmp: odin_libraries  needed
     83    @$(DODIRS) "src"            $(MAKE_CMD) DEBUG=1 NODEBUGINFO=1 smp
     84    @$(DODIRS) "tools\install"  $(MAKE_CMD) DEBUG=1 NODEBUGINFO=1 all
     85
     86profile:        odin_libraries  needed
     87    @$(DODIRS) "$(BLDDIRS)"     $(MAKE_CMD) DEBUG=1 PROFILE=1 all
     88
     89profilesmp:     odin_libraries  needed
     90    @$(DODIRS) "src"            $(MAKE_CMD) DEBUG=1 PROFILE=1 smp
     91    @$(DODIRS) "tools\install"  $(MAKE_CMD) DEBUG=1 PROFILE=1 all
     92
     93release:        odin_libraries  needed
     94    SET DEBUG=
     95    @$(DODIRS) "$(BLDDIRS)"     $(MAKE_CMD) all
     96
     97releasesmp:     odin_libraries  needed
     98    SET DEBUG=
     99    @$(DODIRS) "src"            $(MAKE_CMD) smp
     100    @$(DODIRS) "tools\install"  $(MAKE_CMD) all
     101
     102
     103#
     104# Common rules.
     105#
     106odin_libraries:
     107    @$(DODIRS) "lib"            $(MAKE_CMD)
     108
     109needed_tools: needed
     110needed:
     111    @$(DODIRS) "tools"          $(MAKE_CMD) $@
     112
Note: See TracChangeset for help on using the changeset viewer.