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 | #
|
---|
13 | EXETARGET=1
|
---|
14 | STATIC_CRT =1
|
---|
15 | ADDITIONAL_DEP = mydep
|
---|
16 | WIN32KAPI = ..\api
|
---|
17 | WIN32KMISC = ..\misc
|
---|
18 | WIN32KINCLUDE = ..\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 | #
|
---|
31 | CINCLUDES = -I$(WIN32KINCLUDE) $(CINCLUDES)
|
---|
32 | CDEFINES = $(CDEFINES) -DRING3
|
---|
33 | !if "$(VAC3)" == "1" | "$(VAC36)" == "1"
|
---|
34 | CFLAGS = $(CFLAGS) -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext-
|
---|
35 | CXXFLAGS = $(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 | #
|
---|
42 | OBJS = \
|
---|
43 | $(OBJDIR)\Win32kCC.obj
|
---|
44 | #$(OBJDIR)\api.obj \
|
---|
45 | #$(OBJDIR)\locks.obj
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Libraries. One space before the '\'.
|
---|
50 | #
|
---|
51 | LIBS = \
|
---|
52 | $(RTLLIB) \
|
---|
53 | $(ODIN32_LIB)\win32k.lib \
|
---|
54 | os2386.lib
|
---|
55 |
|
---|
56 |
|
---|
57 | #
|
---|
58 | # OS/2 resources.
|
---|
59 | #
|
---|
60 | OS2RES = \
|
---|
61 | $(OBJDIR)\$(TARGET).res
|
---|
62 |
|
---|
63 |
|
---|
64 | #
|
---|
65 | # Target name - name of the exe without extention and path.
|
---|
66 | #
|
---|
67 | TARGET = Win32kCC
|
---|
68 |
|
---|
69 |
|
---|
70 | #
|
---|
71 | # Includes the common rules.
|
---|
72 | #
|
---|
73 | !include $(ODIN32_POST_INC)
|
---|
74 |
|
---|
75 |
|
---|
76 | #
|
---|
77 | # Dependencies.
|
---|
78 | #
|
---|
79 | mydep:
|
---|
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 |
|
---|