source: trunk/src/makefile@ 6670

Last change on this file since 6670 was 6638, checked in by bird, 24 years ago

Win32k to StateUpd rule.

File size: 3.6 KB
Line 
1# $Id: makefile,v 1.77 2001-09-05 09:30:49 bird Exp $
2
3#
4# Odin32 API
5#
6# Top of the src tree makefile
7#
8#
9# Usage: nmake ( all | libs | dep | clean )
10#
11# all: Build the entire src tree.
12# lib: Builds the libraries.
13# dep: Builds depenency information for the entire src tree.
14# clean: Bring src tree back to a "virgin" state.
15#
16#
17#
18
19
20#
21# Build environment.
22#
23!include ../makefile.inc
24
25
26#
27# Exclude lists which is to be passed in to DOWITHDIRS
28#
29NOTTOBEMADE = CVS;pe2lx;odin32api;odinwps;spy;odinldr;msvcrt;ws2help;win16ldr;oslib;custombuild # generally not made
30NOTDLLS = $(NOTTOBEMADE);peldr;dllentry # not dlls
31NOTHAVELIBS = $(NOTTOBEMADE);peldr # don't generate libs
32NOTWIN32DLLS= $(NOTDLLS);win32k;odincrt;dllentry # not win32 dlls.
33
34
35#
36# Check for SMP and MASSIVE.
37# SMP: Working backwards thru the directories traversed by a rule.
38# MASSIVE: Spawn a child processes for each process.
39#
40!ifdef SMP
41EXTRA = -r
42!endif
43!ifdef MASSIVE
44EXTRA = -s start "Odin32 Massive Build" /B /C
45!endif
46
47
48
49#
50# All rule. Make libraries and then build every directory.
51#
52all: libs build
53
54
55
56#
57# Smp rule - Dual build. Starts a second build process after libraries
58# was made.
59#
60smp: startsmp libs build
61
62startsmp: # Internal helper for the smp rule.
63 start "Odin32 SMP Build Process" /B $(MAKE_CMD) SMP=1 libs build
64
65
66#
67# Rules which supports the SMP and MASSIVE features.
68#
69# build: Invokes the all rule in every directory.
70# clean: Invokes the clean rule in every directory.
71# lib(s): Invokes the lib rule in every directory known to support it.
72# dep: Invokes the dep rule in every directory.
73#
74build:
75 $(DOWITHDIRS) -e$(NOTTOBEMADE) -lbld$(CCENV)$(DEBUG) -c $(EXTRA) \
76 $(MAKE_CMD) all
77
78lib libs:
79 $(DOWITHDIRS) -e$(NOTHAVELIBS) -c -llib $(EXTRA) \
80 $(MAKE_CMD) lib
81
82dep:
83 $(DOWITHDIRS) -e$(NOTTOBEMADE) -c -ldep $(EXTRA) \
84 $(CMDQD_SUB) $(MAKE_CMD) NODEP=1 dep
85 $(CMDQD_WAIT)
86
87clean:
88 $(DOWITHDIRS) -e$(NOTTOBEMADE) -c -lcln$(CCENV)$(DEBUG) $(EXTRA) \
89 $(CMDQD_SUB) $(MAKE_CMD) NODEP=1 clean
90 $(CMDQD_WAIT)
91
92$(COMMONRULES:clean dep lib all=):
93 $(DOWITHDIRS) -e$(NOTTOBEMADE) -c -l$@$(CCENV)$(DEBUG) $(EXTRA) \
94 $(MAKE_CMD) $@
95
96
97#
98# Custom rules
99#
100CUSTOMBUILD = kernel32 user32 gdi32 comctl32 comdlg32 shell32 shlwapi msvfw32 wsock32 winmm ole32 rpcrt4 version lz32
101custombuild:
102 $(DODIRS) "$(CUSTOMBUILD)" $(MAKE_CMD) all CUSTOMBUILD=1
103 $(DODIRS) ".\win32k\lib custombuild" $(MAKE_CMD) all
104
105custombuild_all custombuild_clean custombuild_dep:
106 $(DODIRS) "$(CUSTOMBUILD)" $(MAKE_CMD) $(@:custombuild_=) CUSTOMBUILD=1
107 $(DODIRS) ".\win32k\lib custombuild" $(MAKE_CMD) $(@:custombuild_=)
108
109
110#
111# Odin32 API DB Management
112#
113APIImport:
114 $(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp \
115 ..\..\tools\bin\APIImport.cmd
116
117StateUpd:
118 ..\tools\bin\StateUpd.exe -io+
119 -$(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp -i \
120 ..\..\tools\bin\StateUpd.cmd -ie- -ib-
121 $(DODIRS) ".\win32k" $(MAKE_CMD) StateUpd
122 ..\tools\bin\StateUpd.exe -io+
123
124ReadSignals:
125 -$(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp -i \
126 IF EXIST signals.log list signals.log
127
128ReadStateUpdLogs:
129 -$(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp -i \
130 IF EXIST stateupd.log list stateupd.log
131
132ReadAPIImportLogs:
133 -$(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp -i \
134 IF EXIST apiimport.log list apiimport.log
135
136CleanDBLogs:
137 $(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp \
138 $(RM) apiimport.log signals.log stateupd.log apiimport.def
139 $(RM) signals.log stateupd.log
140
Note: See TracBrowser for help on using the repository browser.