source: trunk/tools/makefile@ 2912

Last change on this file since 2912 was 2728, checked in by sandervl, 26 years ago

clean build fix

File size: 1.8 KB
Line 
1# $Id: makefile,v 1.8 2000-02-10 01:16:30 sandervl Exp $
2
3#
4# PD-Win32 API
5#
6# Top of the tools tree makefile
7#
8#
9# Usage: nmake ( all | needed | dep | clean )
10#
11# all: Build the entire tools tree.
12# needed: Builds the tools used during compilation of the src tree.
13# dep: Make dependencies for the tools tree.
14# clean: Bring tools tree back to a "virgin" state.
15#
16#
17#
18!include ..\include\pdwin32.tools
19
20!ifdef DEBUG
21MAKE_CMD = nmake -nologo DEBUG=1
22!else
23MAKE_CMD = nmake -nologo
24!endif
25
26
27all:
28 cd common
29 $(MAKE_CMD)
30 cd ..\database
31 $(MAKE_CMD)
32 cd ..\impdef
33 $(MAKE_CMD)
34 cd ..\fastdep
35 $(MAKE_CMD)
36 cd ..\wrc
37 $(MAKE_CMD) -f makefile.os2
38 cd ..\omfdumper
39 $(MAKE_CMD)
40 cd ..\sdf
41 $(MAKE_CMD)
42 cd ..
43
44# compile tools needed to compile rest of the tree.
45needed:
46 cd fastdep
47 $(MAKE_CMD)
48 cd ..\common
49 $(MAKE_CMD) NODEP=1 dep
50 $(MAKE_CMD) needed
51 cd ..\impdef
52 $(MAKE_CMD) NODEP=1 dep
53 $(MAKE_CMD)
54 cd ..
55
56
57dep:
58 cd common
59 $(MAKE_CMD) NODEP=1 dep
60 cd ..\database
61 $(MAKE_CMD) NODEP=1 dep
62 cd ..\impdef
63 $(MAKE_CMD) NODEP=1 dep
64 cd ..\wrc
65 $(MAKE_CMD) -f makefile.os2 NODEP=1 dep
66 cd ..\omfdumper
67 $(MAKE_CMD) NODEP=1 dep
68 cd ..\sdf
69 $(MAKE_CMD) NODEP=1 dep
70 cd ..
71
72
73clean:
74 cd common
75 $(MAKE_CMD) NODEP=1 clean
76 cd ..\database
77 $(MAKE_CMD) NODEP=1 clean
78 cd ..\impdef
79 $(MAKE_CMD) NODEP=1 clean
80 cd ..\fastdep
81 $(MAKE_CMD) NODEP=1 clean
82 cd ..\wrc
83 $(MAKE_CMD) -f makefile.os2 NODEP=1 clean
84 cd ..\omfdumper
85 $(MAKE_CMD) NODEP=1 clean
86 cd ..\sdf
87 $(MAKE_CMD) NODEP=1 clean
88
89 cd ..\bin
90# wrc.exe requires lots of tools so better not remove it...
91# $(RM) *.exe *.dll
92 cd ..\..
93
Note: See TracBrowser for help on using the repository browser.