1 | # $Id: makefile,v 1.6 2000-03-07 11:12:31 bird Exp $
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Odin32 API
|
---|
5 | #
|
---|
6 | # Makefile for Mesa OpenGL
|
---|
7 | #
|
---|
8 |
|
---|
9 | # Directory macros.
|
---|
10 | PDWIN32_INCLUDE = ..\..\..\include
|
---|
11 | PDWIN32_LIB = ..\..\..\lib
|
---|
12 | PDWIN32_BIN = ..\..\..\$(OBJDIR)
|
---|
13 | PDWIN32_TOOLS = ..\..\..\tools\bin
|
---|
14 |
|
---|
15 |
|
---|
16 | # Compiler, tools, and interference rules.
|
---|
17 | !include $(PDWIN32_INCLUDE)/pdwin32.mk
|
---|
18 |
|
---|
19 | # Flag overloads and local macros.
|
---|
20 | CLEANEXTRAS = lz32rsrc.asm
|
---|
21 |
|
---|
22 |
|
---|
23 | MESADEFS = -DNO_PARALLEL -DNO_STEREO -DGL_MESA_window_pos -DTHREADS -DDIVE \
|
---|
24 | -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM_NOT
|
---|
25 | CFLAGS = -I. -IGL $(CFLAGS_WIN32APP) -I..\glut $(MESADEFS) /Tdp /Wcnd-
|
---|
26 | CXXFLAGS = -I. -IGL $(CXXFLAGS_WIN32APP) -I..\glut $(MESADEFS) /Tdp /Wcnd-
|
---|
27 |
|
---|
28 |
|
---|
29 | # Object files. All objects should be prefixed with $(OBJDIR)!
|
---|
30 | OBJS = \
|
---|
31 | $(OBJDIR)\wgl.obj \
|
---|
32 | $(OBJDIR)\accum.obj \
|
---|
33 | $(OBJDIR)\alpha.obj \
|
---|
34 | $(OBJDIR)\alphabuf.obj \
|
---|
35 | $(OBJDIR)\api1.obj \
|
---|
36 | $(OBJDIR)\api2.obj \
|
---|
37 | $(OBJDIR)\apiext.obj \
|
---|
38 | $(OBJDIR)\attrib.obj \
|
---|
39 | $(OBJDIR)\bbox.obj \
|
---|
40 | $(OBJDIR)\bitmap.obj \
|
---|
41 | $(OBJDIR)\blend.obj \
|
---|
42 | $(OBJDIR)\clip.obj \
|
---|
43 | $(OBJDIR)\colortab.obj \
|
---|
44 | $(OBJDIR)\config.obj \
|
---|
45 | $(OBJDIR)\context.obj \
|
---|
46 | $(OBJDIR)\copypix.obj \
|
---|
47 | $(OBJDIR)\cva.obj \
|
---|
48 | $(OBJDIR)\depth.obj \
|
---|
49 | $(OBJDIR)\dlist.obj \
|
---|
50 | $(OBJDIR)\drawpix.obj \
|
---|
51 | $(OBJDIR)\enable.obj \
|
---|
52 | $(OBJDIR)\enums.obj \
|
---|
53 | $(OBJDIR)\eval.obj \
|
---|
54 | $(OBJDIR)\extensions.obj \
|
---|
55 | $(OBJDIR)\feedback.obj \
|
---|
56 | $(OBJDIR)\fog.obj \
|
---|
57 | $(OBJDIR)\get.obj \
|
---|
58 | $(OBJDIR)\glmisc.obj \
|
---|
59 | $(OBJDIR)\hash.obj \
|
---|
60 | $(OBJDIR)\image.obj \
|
---|
61 | $(OBJDIR)\light.obj \
|
---|
62 | $(OBJDIR)\lines.obj \
|
---|
63 | $(OBJDIR)\logic.obj \
|
---|
64 | $(OBJDIR)\masking.obj \
|
---|
65 | $(OBJDIR)\matrix.obj \
|
---|
66 | $(OBJDIR)\mmath.obj \
|
---|
67 | $(OBJDIR)\pb.obj \
|
---|
68 | $(OBJDIR)\pixel.obj \
|
---|
69 | $(OBJDIR)\pipeline.obj \
|
---|
70 | $(OBJDIR)\points.obj \
|
---|
71 | $(OBJDIR)\pointers.obj \
|
---|
72 | $(OBJDIR)\polygon.obj \
|
---|
73 | $(OBJDIR)\quads.obj \
|
---|
74 | $(OBJDIR)\rastpos.obj \
|
---|
75 | $(OBJDIR)\readpix.obj \
|
---|
76 | $(OBJDIR)\rect.obj \
|
---|
77 | $(OBJDIR)\scissor.obj \
|
---|
78 | $(OBJDIR)\shade.obj \
|
---|
79 | $(OBJDIR)\span.obj \
|
---|
80 | $(OBJDIR)\stages.obj \
|
---|
81 | $(OBJDIR)\stencil.obj \
|
---|
82 | $(OBJDIR)\teximage.obj \
|
---|
83 | $(OBJDIR)\texobj.obj \
|
---|
84 | $(OBJDIR)\texstate.obj \
|
---|
85 | $(OBJDIR)\translate.obj \
|
---|
86 | $(OBJDIR)\triangle.obj \
|
---|
87 | $(OBJDIR)\varray.obj \
|
---|
88 | $(OBJDIR)\vb.obj \
|
---|
89 | $(OBJDIR)\vbcull.obj \
|
---|
90 | $(OBJDIR)\vbfill.obj \
|
---|
91 | $(OBJDIR)\vbindirect.obj \
|
---|
92 | $(OBJDIR)\vbrender.obj \
|
---|
93 | $(OBJDIR)\vbxform.obj \
|
---|
94 | $(OBJDIR)\vector.obj \
|
---|
95 | $(OBJDIR)\vertices.obj \
|
---|
96 | $(OBJDIR)\winpos.obj \
|
---|
97 | $(OBJDIR)\xform.obj \
|
---|
98 | $(OBJDIR)\zoom.obj \
|
---|
99 | $(OBJDIR)\x86.obj \
|
---|
100 | $(OBJDIR)\common_x86.obj \
|
---|
101 | $(OBJDIR)\initterm.obj \
|
---|
102 | $(OBJDIR)\texture.obj \
|
---|
103 | $(OBJDIR)\mthreads.obj \
|
---|
104 | $(OBJDIR)\wmesa.obj \
|
---|
105 | $(OBJDIR)\x86a.obj \
|
---|
106 | $(OBJDIR)\vertex.obj \
|
---|
107 | $(OBJDIR)\mmx_blend.obj \
|
---|
108 | $(OBJDIR)\osmesa.obj \
|
---|
109 | $(OBJDIR)\mesadive.obj \
|
---|
110 | $(OBJDIR)\internal.obj \
|
---|
111 | $(OBJDIR)\mesarsrc.obj
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 | # Target name - name of the dll without extention and path.
|
---|
116 | TARGET = opengl32
|
---|
117 |
|
---|
118 |
|
---|
119 | # All rule - build objs, target dll, copies dll to bin and makes libs.
|
---|
120 | all: $(OBJDIR) \
|
---|
121 | $(OBJDIR)\$(TARGET).dll \
|
---|
122 | $(PDWIN32_BIN)\$(TARGET).dll \
|
---|
123 | lib
|
---|
124 |
|
---|
125 |
|
---|
126 | # Lib rule - build importlibrary (and evt. other libs)
|
---|
127 | lib: $(TARGET).lib $(PDWIN32_LIB)\$(TARGET).lib
|
---|
128 |
|
---|
129 |
|
---|
130 | # Dll rule - builds the target dll.
|
---|
131 | $(OBJDIR)\$(TARGET).dll: $(OBJS) $(TARGET).def $(OBJDIR)\$(TARGET).lrf
|
---|
132 | -4 $(LD2) $(LD2FLAGS) @$(OBJDIR)\$(TARGET).lrf
|
---|
133 |
|
---|
134 |
|
---|
135 | # Linker file - creates the parameter file passed on to the linker.
|
---|
136 | $(OBJDIR)\$(TARGET).lrf: makefile
|
---|
137 | @echo Creating file <<$@
|
---|
138 | /OUT:$(OBJDIR)\$(TARGET).dll
|
---|
139 | /MAP:$(OBJDIR)\$(TARGET).map
|
---|
140 | $(OBJS)
|
---|
141 | $(PDWIN32_LIB)\ODINCRT.LIB
|
---|
142 | $(PDWIN32_LIB)\KERNEL32.LIB
|
---|
143 | $(PDWIN32_LIB)\GDI32.LIB
|
---|
144 | $(PDWIN32_LIB)\USER32.LIB
|
---|
145 | $(RTLLIB_O)
|
---|
146 | OS2386.LIB
|
---|
147 | MMPM2.LIB
|
---|
148 | $(TARGET).def
|
---|
149 | <<keep
|
---|
150 |
|
---|
151 |
|
---|
152 |
|
---|
153 | # Dep rule - makes depenencies for C, C++ and Asm files.
|
---|
154 | dep:
|
---|
155 | $(DEPEND) -I$(PDWIN32_INCLUDE);$(PDWIN32_INCLUDE)\win -IGL \
|
---|
156 | *.c *.cpp *.h *.asm *.inc $(PDWIN32_INCLUDE)\*.h
|
---|
157 |
|
---|
158 |
|
---|
159 | # Includes the common rules.
|
---|
160 | !include $(PDWIN32_INCLUDE)/pdwin32.post
|
---|
161 |
|
---|