1 | # $Id: Xx2Lx.mak,v 1.1 2001-03-11 16:37:17 bird Exp $
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Odin32 API
|
---|
5 | #
|
---|
6 | # xx2lx.exe makefile
|
---|
7 | #
|
---|
8 |
|
---|
9 |
|
---|
10 | #
|
---|
11 | # Tell buildenvironment that we're making an vio exe and to invoke additional dep rule
|
---|
12 | #
|
---|
13 | VIO=1
|
---|
14 | EXETARGET=1
|
---|
15 |
|
---|
16 |
|
---|
17 | #
|
---|
18 | # Compiler, tools, and interference rules thru the win32k makefile.inc file.
|
---|
19 | #
|
---|
20 | !include ..\..\makefile.inc
|
---|
21 | !include makefile.inc
|
---|
22 |
|
---|
23 |
|
---|
24 | #
|
---|
25 | # Sanity check
|
---|
26 | #
|
---|
27 | !ifndef WIN32KINCLUDE
|
---|
28 | !error "Fatal error! WIN32KINCLUDE is undefined!"
|
---|
29 | !endif
|
---|
30 |
|
---|
31 |
|
---|
32 | #
|
---|
33 | # Tools and Flags Addjustments
|
---|
34 | #
|
---|
35 | CINCLUDES = -I$(WIN32KINCLUDE) $(CINCLUDES)
|
---|
36 | CDEFINES = $(CDEFINES) -DRING3 -DXX2LX
|
---|
37 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
---|
38 | CFLAGS = $(CFLAGS) -Ge+ -Gm- -Gn- -Ti+ -Rn -Wall+ppt-ppc-inl-cnv-gnr-vft-gen-uni-ext-
|
---|
39 | CXXFLAGS = $(CXXFLAGS) -Ge+ -Gm- -Gn- -Ti+ -Rn -Gx -Wall+ppt-ppc-inl-cnv-gnr-vft-
|
---|
40 | CLISTING = -Fa$(OBJDIR)\$(@B).s
|
---|
41 | COBJOUT = -Fo$(OBJDIR)\$(@B).obj
|
---|
42 | LD2FLAGS = $(LD2FLAGS) /A:16 /Stack:4096
|
---|
43 | !else
|
---|
44 | !error "Compiler is not yet supported."
|
---|
45 | !endif
|
---|
46 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Interference rules.
|
---|
50 | #
|
---|
51 | !if "$(VAC3)" == "1" || "$(VAC36)" == "1"
|
---|
52 | {$(WIN32KMISC)}.c.obj:
|
---|
53 | @echo compiling: $(@B).c
|
---|
54 | @$(CC) $(CFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $<
|
---|
55 |
|
---|
56 | {$(WIN32KMISC)}.cpp.obj:
|
---|
57 | @echo compiling: $(@B).cpp
|
---|
58 | @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $<
|
---|
59 |
|
---|
60 | {$(WIN32KLDR)}.cpp.obj:
|
---|
61 | @echo compiling: $(@B).cpp
|
---|
62 | @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $<
|
---|
63 |
|
---|
64 | {$(WIN32KPE2LX)}.cpp{$(OBJDIR)}.obj:
|
---|
65 | @echo compiling: $(@B).cpp
|
---|
66 | @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $<
|
---|
67 |
|
---|
68 | {$(WIN32KELF2LX)}.cpp{$(OBJDIR)}.obj:
|
---|
69 | @echo compiling: $(@B).cpp
|
---|
70 | @$(CXX) $(CXXFLAGS) $(CINCLUDES) $(CDEFINES) -c $(CLISTING) $(COBJOUT) $<
|
---|
71 |
|
---|
72 | !else
|
---|
73 | !error "Compiler is not yet supported."
|
---|
74 | !endif
|
---|
75 |
|
---|
76 |
|
---|
77 | #
|
---|
78 | # Object files. Prefix with OBJDIR and one space before the '\'.
|
---|
79 | #
|
---|
80 | OBJS =\
|
---|
81 | $(OBJDIR)\xx2lxmain.obj\
|
---|
82 | $(OBJDIR)\modulebase.obj\
|
---|
83 | $(OBJDIR)\pe2lx.obj\
|
---|
84 | $(OBJDIR)\elf2lx.obj\
|
---|
85 | $(OBJDIR)\malloc.obj\
|
---|
86 | $(OBJDIR)\smalloc_avl.obj\
|
---|
87 | $(OBJDIR)\avl.obj\
|
---|
88 | $(OBJDIR)\rmalloc_avl.obj\
|
---|
89 | $(OBJDIR)\new.obj\
|
---|
90 | $(OBJDIR)\stricmp.obj\
|
---|
91 | $(OBJDIR)\vprintf.obj
|
---|
92 |
|
---|
93 |
|
---|
94 | #
|
---|
95 | # Libraries. One space before the '\'.
|
---|
96 | #
|
---|
97 | LIBS = \
|
---|
98 | $(RTLLIB_NRE) \
|
---|
99 | os2386.lib
|
---|
100 |
|
---|
101 |
|
---|
102 | #
|
---|
103 | # Target name - name of the exe without extention and path.
|
---|
104 | #
|
---|
105 | TARGET = xx2lx
|
---|
106 |
|
---|
107 |
|
---|
108 | #
|
---|
109 | # Includes the common rules.
|
---|
110 | #
|
---|
111 | !include $(ODIN32_POST_INC)
|
---|
112 |
|
---|