source: trunk/makefile@ 4673

Last change on this file since 4673 was 4643, checked in by bird, 25 years ago

Some changes to the SMP rules.
Started to make it more Watcom friendly - not at all completed.

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