| [4643] | 1 | # $Id: makefile,v 1.13 2000-11-20 05:00:50 bird Exp $
|
|---|
| [4] | 2 |
|
|---|
| 3 | #
|
|---|
| [845] | 4 | # PD-Win32 API
|
|---|
| [4] | 5 | #
|
|---|
| 6 | # Top of the tree makefile
|
|---|
| 7 | #
|
|---|
| 8 | #
|
|---|
| [2714] | 9 | # Usage: nmake ( debug | nodebuginfo | release | all | dep | clean )
|
|---|
| [845] | 10 | #
|
|---|
| [4] | 11 | # debug: Change to a debug build.
|
|---|
| [1594] | 12 | # debugsmp: Start nmake process in background that processes all
|
|---|
| [1620] | 13 | # dlls in reverse
|
|---|
| [1492] | 14 | # nodebuginfo: Change to a debug build without debug info in binaries
|
|---|
| [1594] | 15 | # nodebuginfosmp: Change to an SMP debug build without debug info in binaries
|
|---|
| [4] | 16 | # release: Change to a release build.
|
|---|
| [1594] | 17 | # releasesmp: Change to an SMP release build.
|
|---|
| [4] | 18 | # all: Build the entire tree.
|
|---|
| [2714] | 19 | # dep: Make dependencies for the entire tree.
|
|---|
| [4] | 20 | # clean: Bring tree back to a "virgin" state.
|
|---|
| 21 | #
|
|---|
| [845] | 22 | #
|
|---|
| 23 | #
|
|---|
| [4] | 24 |
|
|---|
| [4643] | 25 | #
|
|---|
| 26 | # Directory macros.
|
|---|
| 27 | #
|
|---|
| 28 | PDWIN32_INCLUDE = .\include
|
|---|
| 29 | PDWIN32_TOOLS = .\tools
|
|---|
| 30 | PDWIN32_LIB = .\lib
|
|---|
| 31 | PDWIN32_BIN = .\bin
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | #
|
|---|
| 35 | # Include makefile. (Not completeled)
|
|---|
| 36 | #
|
|---|
| 37 | #!include $(PDWIN32_INCLUDE)/pdwin32.mk
|
|---|
| 38 |
|
|---|
| [845] | 39 | all: odin_libraries needed_tools
|
|---|
| [2711] | 40 | cd src
|
|---|
| [4643] | 41 | nmake -nologo all
|
|---|
| [3470] | 42 | cd ..\tools\install
|
|---|
| [4643] | 43 | nmake -nologo all
|
|---|
| [4] | 44 |
|
|---|
| [887] | 45 | clean:
|
|---|
| [2711] | 46 | cd lib
|
|---|
| 47 | nmake -nologo clean
|
|---|
| 48 | cd ..\tools
|
|---|
| 49 | nmake -nologo clean
|
|---|
| 50 | cd ..\src
|
|---|
| 51 | nmake -nologo clean
|
|---|
| [4] | 52 |
|
|---|
| [845] | 53 | debug: odin_libraries needed_tools
|
|---|
| [2711] | 54 | cd src
|
|---|
| 55 | nmake -nologo all DEBUG=1
|
|---|
| [3470] | 56 | cd ..\tools\install
|
|---|
| 57 | nmake -nologo all DEBUG=1
|
|---|
| [4] | 58 |
|
|---|
| [1594] | 59 | debugsmp: odin_libraries needed_tools
|
|---|
| [2711] | 60 | cd src
|
|---|
| [4643] | 61 | nmake -nologo DEBUG=1 smp
|
|---|
| [3470] | 62 | cd ..\tools\install
|
|---|
| [4643] | 63 | nmake -nologo DEBUG=1 all
|
|---|
| [1594] | 64 |
|
|---|
| [1492] | 65 | nodebuginfo: odin_libraries needed_tools
|
|---|
| [2711] | 66 | cd src
|
|---|
| 67 | nmake -nologo all DEBUG=1 NODEBUGINFO=1
|
|---|
| [3470] | 68 | cd ..\tools\install
|
|---|
| 69 | nmake -nologo all DEBUG=1 NODEBUGINFO=1
|
|---|
| [1492] | 70 |
|
|---|
| [1594] | 71 | nodebuginfosmp: odin_libraries needed_tools
|
|---|
| [2711] | 72 | cd src
|
|---|
| [4643] | 73 | nmake -nologo DEBUG=1 NODEBUGINFO=1 smp
|
|---|
| [3470] | 74 | cd ..\tools\install
|
|---|
| [4643] | 75 | nmake -nologo DEBUG=1 NODEBUGINFO=1 all
|
|---|
| [1594] | 76 |
|
|---|
| [845] | 77 | release: odin_libraries needed_tools
|
|---|
| [4024] | 78 | SET DEBUG=
|
|---|
| [2711] | 79 | cd src
|
|---|
| 80 | nmake -nologo all
|
|---|
| [3470] | 81 | cd ..\tools\install
|
|---|
| 82 | nmake -nologo all
|
|---|
| [23] | 83 |
|
|---|
| [1594] | 84 | releasesmp: odin_libraries needed_tools
|
|---|
| [4024] | 85 | SET DEBUG=
|
|---|
| [2711] | 86 | cd src
|
|---|
| [4643] | 87 | nmake -nologo smp
|
|---|
| [3470] | 88 | cd ..\tools\install
|
|---|
| 89 | nmake -nologo all
|
|---|
| [23] | 90 |
|
|---|
| [2711] | 91 | dep: needed_tools
|
|---|
| 92 | cd tools
|
|---|
| 93 | nmake -nologo dep
|
|---|
| 94 | cd ..\src
|
|---|
| 95 | nmake -nologo dep
|
|---|
| [23] | 96 |
|
|---|
| [2711] | 97 |
|
|---|
| [23] | 98 | # --- common section ---
|
|---|
| 99 | odin_libraries:
|
|---|
| 100 | cd lib
|
|---|
| 101 | nmake -nologo
|
|---|
| 102 | cd ..
|
|---|
| 103 |
|
|---|
| [845] | 104 |
|
|---|
| 105 | needed_tools:
|
|---|
| 106 | cd tools
|
|---|
| 107 | nmake needed
|
|---|
| 108 | cd ..
|
|---|