source: trunk/src/win32k/utils/makefile@ 10367

Last change on this file since 10367 was 9876, checked in by sandervl, 23 years ago

KSO: makefile updates

File size: 1.7 KB
Line 
1# $Id: makefile,v 1.8 2003-02-28 10:32:23 sandervl Exp $
2
3#
4# Odin32 API
5#
6# Win32kCC.exe makefile
7#
8
9
10#
11# Tell buildenvironment that we're making an exe and to invoke additional dep rule
12#
13EXETARGET=1
14STATIC_CRT =1
15ADDITIONAL_DEP = mydep
16WIN32KAPI = ..\api
17WIN32KMISC = ..\misc
18WIN32KINCLUDE = ..\include
19
20
21#
22# Compiler, tools, and interference rules thru the win32k makefile.inc file.
23#
24!include ..\..\..\makefile.inc
25
26
27#
28# Tools and Flags Addjustments
29# (The author of this is kinda SM when it comes to warnings... ;-)
30#
31CINCLUDES = -I$(WIN32KINCLUDE) $(CINCLUDES)
32CDEFINES = $(CDEFINES) -DRING3
33!if "$(VAC3)" == "1" | "$(VAC36)" == "1"
34CFLAGS = $(CFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext-
35CXXFLAGS = $(CXXFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft-
36!endif
37
38
39#
40# Object files. Prefix with OBJDIR and one space before the '\'.
41#
42OBJS = \
43$(OBJDIR)\Win32kCC.obj
44#$(OBJDIR)\api.obj \
45#$(OBJDIR)\locks.obj
46
47
48#
49# Libraries. One space before the '\'.
50#
51LIBS = \
52$(RTLLIB) \
53$(ODIN32_LIB)\win32k.lib \
54os2386.lib
55
56
57#
58# OS/2 resources.
59#
60OS2RES = \
61$(OBJDIR)\$(TARGET).res
62
63
64#
65# Target name - name of the exe without extention and path.
66#
67TARGET = Win32kCC
68
69
70#
71# Includes the common rules.
72#
73!include $(ODIN32_POST_INC)
74
75
76#
77# Dependencies.
78#
79mydep:
80 $(DEPEND) -a -o$$(OBJDIR) $(CINCLUDES) $(WIN32KINCLUDE)\*.h
81
82
83#
84# Extra rules to build api.obj and locks.obj
85#
86!if "$(VAC3)" == "1" | "$(VAC36)" == "1" || "$(WAT)" == "1"
87$(OBJDIR)\api.obj: $(WIN32KAPI)\api.cpp
88 $(CC) $(CXXFLAGS) $(CDEFINES) $(CINCLUDES) -Fo$(OBJDIR)\$(@B).obj $**
89
90$(OBJDIR)\locks.obj: $(WIN32KMISC)\locks.asm
91 $(AS) $(ASFLAGS) -I:$(WIN32KINCLUDE) -Fdo:$(OBJDIR) $**
92!else
93!error "not ready for this compiler yet"
94!endif
95
96
97
98
Note: See TracBrowser for help on using the repository browser.