source: trunk/makefile@ 5200

Last change on this file since 5200 was 4770, checked in by phaller, 25 years ago

Added profiling support

File size: 2.6 KB
Line 
1# $Id: makefile,v 1.16 2000-12-09 16:04:55 phaller Exp $
2
3#
4# Odin32
5#
6# Top of the tree makefile
7#
8#
9# Usage: nmake ( debug | nodebuginfo | profile | 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# profile: Change to a debug build with profiling hooks
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.
22#
23#
24#
25
26
27#
28# Check that makefile.inc exists, If it doesn't we'll try make it.
29#
30!if [.\tools\bin\Exists.cmd makefile.inc] == 1
31! if [configure.cmd noninteractive]
32! endif
33!endif
34
35
36#
37# Include makefile.
38#
39!include makefile.inc
40
41all: odin_libraries needed_tools
42 cd src
43 $(MAKE) -nologo all
44 cd ..\tools\install
45 $(MAKE) -nologo all
46
47clean:
48 cd lib
49 $(MAKE) -nologo clean
50 cd ..\tools
51 $(MAKE) -nologo clean
52 cd ..\src
53 $(MAKE) -nologo clean
54
55profile: 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
61debug: odin_libraries needed_tools
62 cd src
63 $(MAKE) -nologo all DEBUG=1
64 cd ..\tools\install
65 $(MAKE) -nologo all DEBUG=1
66
67debugsmp: odin_libraries needed_tools
68 cd src
69 $(MAKE) -nologo DEBUG=1 smp
70 cd ..\tools\install
71 $(MAKE) -nologo DEBUG=1 all
72
73nodebuginfo: 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
79nodebuginfosmp: 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
85release: odin_libraries needed_tools
86 SET DEBUG=
87 cd src
88 $(MAKE) -nologo all
89 cd ..\tools\install
90 $(MAKE) -nologo all
91
92releasesmp: odin_libraries needed_tools
93 SET DEBUG=
94 cd src
95 $(MAKE) -nologo smp
96 cd ..\tools\install
97 $(MAKE) -nologo all
98
99dep: needed_tools
100 cd tools
101 $(MAKE) -nologo dep
102 cd ..\src
103 $(MAKE) -nologo dep
104
105
106# --- common section ---
107odin_libraries:
108 cd lib
109 $(MAKE) -nologo
110 cd ..
111
112
113needed_tools:
114 cd tools
115 $(MAKE) -nologo needed
116 cd ..
117
Note: See TracBrowser for help on using the repository browser.