[4770] | 1 | # $Id: makefile,v 1.16 2000-12-09 16:04:55 phaller Exp $
|
---|
[4] | 2 |
|
---|
| 3 | #
|
---|
[4723] | 4 | # Odin32
|
---|
[4] | 5 | #
|
---|
[4723] | 6 | # Top of the tree makefile
|
---|
[4] | 7 | #
|
---|
| 8 | #
|
---|
[4770] | 9 | # Usage: nmake ( debug | nodebuginfo | profile | release | all | dep | clean )
|
---|
[845] | 10 | #
|
---|
[4723] | 11 | # debug: Change to a debug build.
|
---|
| 12 | # debugsmp: Start nmake process in background that processes all
|
---|
| 13 | # dlls in reverse
|
---|
| 14 | # nodebuginfo: Change to a debug build without debug info in binaries
|
---|
| 15 | # nodebuginfosmp: Change to an SMP debug build without debug info in binaries
|
---|
[4770] | 16 | # profile: Change to a debug build with profiling hooks
|
---|
[4723] | 17 | # release: Change to a release build.
|
---|
| 18 | # releasesmp: Change to an SMP release build.
|
---|
| 19 | # all: Build the entire tree.
|
---|
| 20 | # dep: Make dependencies for the entire tree.
|
---|
| 21 | # clean: Bring tree back to a "virgin" state.
|
---|
[4] | 22 | #
|
---|
[845] | 23 | #
|
---|
[4723] | 24 | #
|
---|
[4] | 25 |
|
---|
[4717] | 26 |
|
---|
[4643] | 27 | #
|
---|
[4723] | 28 | # Check that makefile.inc exists, If it doesn't we'll try make it.
|
---|
[4643] | 29 | #
|
---|
[4723] | 30 | !if [.\tools\bin\Exists.cmd makefile.inc] == 1
|
---|
| 31 | ! if [configure.cmd noninteractive]
|
---|
| 32 | ! endif
|
---|
| 33 | !endif
|
---|
[4643] | 34 |
|
---|
| 35 |
|
---|
| 36 | #
|
---|
[4723] | 37 | # Include makefile.
|
---|
[4643] | 38 | #
|
---|
[4723] | 39 | !include makefile.inc
|
---|
[4643] | 40 |
|
---|
[4723] | 41 | all: odin_libraries needed_tools
|
---|
| 42 | cd src
|
---|
| 43 | $(MAKE) -nologo all
|
---|
| 44 | cd ..\tools\install
|
---|
| 45 | $(MAKE) -nologo all
|
---|
[4] | 46 |
|
---|
[4723] | 47 | clean:
|
---|
| 48 | cd lib
|
---|
| 49 | $(MAKE) -nologo clean
|
---|
| 50 | cd ..\tools
|
---|
| 51 | $(MAKE) -nologo clean
|
---|
| 52 | cd ..\src
|
---|
| 53 | $(MAKE) -nologo clean
|
---|
| 54 |
|
---|
[4770] | 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 |
|
---|
[4723] | 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
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | # --- common section ---
|
---|
| 107 | odin_libraries:
|
---|
| 108 | cd lib
|
---|
| 109 | $(MAKE) -nologo
|
---|
| 110 | cd ..
|
---|
| 111 |
|
---|
| 112 |
|
---|
| 113 | needed_tools:
|
---|
| 114 | cd tools
|
---|
| 115 | $(MAKE) -nologo needed
|
---|
| 116 | cd ..
|
---|
[4770] | 117 |
|
---|