source: trunk/src/makefile@ 8889

Last change on this file since 8889 was 8225, checked in by bird, 23 years ago

Added uxtheme to CUSTOMBUILD module list.

File size: 4.2 KB
RevLine 
[8225]1# $Id: makefile,v 1.85 2002-04-10 19:16:03 bird Exp $
[4]2
3#
[4722]4# Odin32 API
[4]5#
6# Top of the src tree makefile
7#
8#
[2715]9# Usage: nmake ( all | libs | dep | clean )
[4]10#
11# all: Build the entire src tree.
[1585]12# lib: Builds the libraries.
[2715]13# dep: Builds depenency information for the entire src tree.
[4]14# clean: Bring src tree back to a "virgin" state.
15#
16#
17#
[2715]18
19
[4644]20#
21# Build environment.
22#
[4722]23!include ../makefile.inc
[4]24
[1492]25
[2734]26#
27# Exclude lists which is to be passed in to DOWITHDIRS
28#
[6376]29NOTTOBEMADE = CVS;pe2lx;odin32api;odinwps;spy;odinldr;msvcrt;ws2help;win16ldr;oslib;custombuild # generally not made
[7410]30NOTDLLS = $(NOTTOBEMADE);peldr;dllentry;guidlib # not dlls
[2743]31NOTHAVELIBS = $(NOTTOBEMADE);peldr # don't generate libs
[2932]32NOTWIN32DLLS= $(NOTDLLS);win32k;odincrt;dllentry # not win32 dlls.
[1492]33
[1585]34
[4644]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#
[6916]40EXTRA =
[4644]41!ifdef SMP
42EXTRA = -r
43!endif
44!ifdef MASSIVE
45EXTRA = -s start "Odin32 Massive Build" /B /C
46!endif
[6916]47# TEMPORARY: ignore return codes while we're working with watcom and nmake.
48!if defined(WAT) && defined(NMAKE)
49EXTRA = $(EXTRA) -i
50!endif
[4]51
[4644]52
[2909]53#
[4644]54# All rule. Make libraries and then build every directory.
[2909]55#
[4644]56all: libs build
57
58
59
[2909]60#
[4644]61# Smp rule - Dual build. Starts a second build process after libraries
62# was made.
63#
64smp: startsmp libs build
[1585]65
[4644]66startsmp: # Internal helper for the smp rule.
67 start "Odin32 SMP Build Process" /B $(MAKE_CMD) SMP=1 libs build
[2909]68
69
[4644]70#
71# Rules which supports the SMP and MASSIVE features.
72#
73# build: Invokes the all rule in every directory.
74# clean: Invokes the clean rule in every directory.
75# lib(s): Invokes the lib rule in every directory known to support it.
76# dep: Invokes the dep rule in every directory.
77#
78build:
[6872]79 @$(DOWITHDIRS) -e$(NOTTOBEMADE) -lbld$(CCENV)$(DEBUG) -c $(EXTRA) \
[4644]80 $(MAKE_CMD) all
[1585]81
[4644]82lib libs:
[7997]83 @$(DOWITHDIRS) -e$(NOTHAVELIBS) -c -llib$(CCENV)$(DEBUG) $(EXTRA) \
[4644]84 $(MAKE_CMD) lib
85
[2715]86dep:
[6872]87 @$(DOWITHDIRS) -e$(NOTTOBEMADE) -c -ldep $(EXTRA) \
[6540]88 $(CMDQD_SUB) $(MAKE_CMD) NODEP=1 dep
89 $(CMDQD_WAIT)
[2715]90
[4]91clean:
[6872]92 @$(DOWITHDIRS) -e$(NOTTOBEMADE) -c -lcln$(CCENV)$(DEBUG) $(EXTRA) \
[6540]93 $(CMDQD_SUB) $(MAKE_CMD) NODEP=1 clean
94 $(CMDQD_WAIT)
[1649]95
[6447]96$(COMMONRULES:clean dep lib all=):
[6872]97 @$(DOWITHDIRS) -e$(NOTTOBEMADE) -c -l$@$(CCENV)$(DEBUG) $(EXTRA) \
[6447]98 $(MAKE_CMD) $@
[2743]99
[6447]100
[2743]101#
[6422]102# Custom rules
103#
[8223]104CUSTOMBUILD = kernel32 user32 advapi32 comctl32 comdlg32 ctl3d32 ddraw ddraw \
105 dinput gdi32 icmp imagehlp iphlpapi lz32 msvfw32 ntdll ole32 riched32 \
106 rpcrt4 shell32 shlwapi version wininet winmm winspool wnaspi32 ws2_32 \
[8225]107 wsock32 uxtheme
[7102]108
[6422]109custombuild:
[6872]110 @$(DODIRS) "$(CUSTOMBUILD)" $(MAKE_CMD) all CUSTOMBUILD=1
111 @$(DODIRS) ".\win32k\lib custombuild" $(MAKE_CMD) all
[6422]112
113custombuild_all custombuild_clean custombuild_dep:
[6872]114 @$(DODIRS) "$(CUSTOMBUILD)" $(MAKE_CMD) $(@:custombuild_=) CUSTOMBUILD=1
115 @$(DODIRS) ".\win32k\lib custombuild" $(MAKE_CMD) $(@:custombuild_=)
[6422]116
117
118#
[2743]119# Odin32 API DB Management
120#
[2749]121APIImport:
[6872]122 @$(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp \
[2743]123 ..\..\tools\bin\APIImport.cmd
124
[2749]125StateUpd:
[2788]126 ..\tools\bin\StateUpd.exe -io+
[6872]127 -@$(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp -i \
[3941]128 ..\..\tools\bin\StateUpd.cmd -ie- -ib-
[6872]129 @$(DODIRS) ".\win32k" $(MAKE_CMD) StateUpd
[2788]130 ..\tools\bin\StateUpd.exe -io+
[2743]131
[2749]132ReadSignals:
[6872]133 -@$(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp -i \
[2749]134 IF EXIST signals.log list signals.log
135
136ReadStateUpdLogs:
[6872]137 -@$(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp -i \
[2751]138 IF EXIST stateupd.log list stateupd.log
[2749]139
140ReadAPIImportLogs:
[6872]141 -@$(DOWITHDIRS) -e$(NOTWIN32DLLS) -cp -i \
[2749]142 IF EXIST apiimport.log list apiimport.log
143
144CleanDBLogs:
[6872]145 @$(DOWITHDIRS) -e$(NOTWIN32DLLS:win32k;=) -cp \
[2743]146 $(RM) apiimport.log signals.log stateupd.log apiimport.def
[2750]147 $(RM) signals.log stateupd.log
[2743]148
[6916]149
150!ifdef NMAKE
151#
152# Common: If MULTIJOBS is defined make sure cmdqd is running.
153#
154!ifndef NO_MULTIJOBS
155! ifdef MULTIJOBS
156! if [$(CMDQD) queryrunning] != 0
157! if [$(DODIRS) "$(ODIN32_BASE)\tools\cmdqd" $(MAKE_CMD) all] == 0
158! endif
159! if [$(CMDQD) init 7] == 0
160! endif
161! endif
162! endif
163!endif
164!endif
165
Note: See TracBrowser for help on using the repository browser.