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