summaryrefslogtreecommitdiff
path: root/xc/lib/GL/glx/Imakefile
blob: e844375b9bc984036b128431d1b422b9234fa2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
XCOMM $XFree86: xc/lib/GL/glx/Imakefile,v 1.19 2003/05/08 09:25:35 herrb Exp $
XCOMM The contents of this file are subject to the GLX Public License Version 1.0
XCOMM (the "License"). You may not use this file except in compliance with the
XCOMM License. You may obtain a copy of the License at Silicon Graphics, Inc.,
XCOMM attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
XCOMM or at http://www.sgi.com/software/opensource/glx/license.html.
XCOMM
XCOMM Software distributed under the License is distributed on an "AS IS"
XCOMM basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
XCOMM IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
XCOMM PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
XCOMM language governing rights and limitations under the License.
XCOMM
XCOMM The Original Software is GLX version 1.2 source code, released February,
XCOMM 1999. The developer of the Original Software is Silicon Graphics, Inc.
XCOMM Those portions of the Subject Software created by Silicon Graphics, Inc.
XCOMM are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.

#include <Threads.tmpl>

#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx

XCOMM #define IHaveSubdirs
XCOMM #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
XCOMM 
XCOMM SUBDIRS = \
XCOMM 	glu \
XCOMM 	glw

/* Files from Mesa */

LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi)
LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi)
#ifdef i386Architecture
LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86)
#endif
#ifdef SparcArchitecture
LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/mesa/sparc)
#endif

/*
 * Maybe some of these could come from
 * xc/extras/ogl-sample/main/glx/lib at some point.
 */
     GLX_SRCS = \
		clientattrib.c \
		compsize.c \
		dispatch.c \
		eval.c \
		g_render.c \
		g_single.c \
		g_vendpriv.c \
		glapi.c \
		glthread.c \
		glxcmds.c \
		glxext.c \
		glxextensions.c \
		glcontextmodes.c \
		indirect_init.c \
		pixel.c \
		pixelstore.c \
		render2.c \
		renderpix.c \
		single2.c \
		singlepix.c \
		vertarr.c \
	        xfont.c

     GLX_OBJS = \
	        clientattrib.o \
		compsize.o \
		dispatch.o \
		eval.o \
		g_render.o \
		g_single.o \
		g_vendpriv.o \
		glapi.o \
		glthread.o \
		glxcmds.o \
		glxext.o \
		glxextensions.o \
		glcontextmodes.o \
		indirect_init.o \
		pixel.o \
		pixelstore.o \
		render2.o \
		renderpix.o \
		single2.o \
		singlepix.o \
		vertarr.o \
	        xfont.o

     GLX_DEFS = GlxDefines VidModeExtensionDefines

#ifdef i386Architecture
      ASM_DIR = x86
#endif
#ifdef SparcArchitecture
      ASM_DIR = sparc
#endif

#if BuildXF86DRI
     DRI_INCS = -I$(GLXLIBSRC)/dri -I$(SERVERSRC)/GL/dri
#if defined(i386Architecture) && MesaUseX86Asm
     ASM_SRCS = glapi_x86.S
     ASM_OBJS = glapi_x86.o
     ASM_DEFS = -DUSE_X86_ASM
#endif
#if defined(SparcArchitecture)
     ASM_SRCS = glapi_sparc.S
     ASM_OBJS = glapi_sparc.o
     ASM_DEFS = -DUSE_SPARC_ASM
#endif

#if GlxBuiltInXMesa
  XMESA_DEFINES = -DGLX_BUILT_IN_XMESA
#endif
#endif

         SRCS = $(GLX_SRCS) $(ASM_SRCS)
         OBJS = $(GLX_OBJS) $(ASM_OBJS)
      DEFINES = $(GLX_DEFS) $(ASM_DEFS) $(XMESA_DEFINES)

     INCLUDES = -I$(XINCLUDESRC) \
		-I$(MESASRCDIR)/include \
		-I$(EXTINCSRC) \
		-I$(GLXLIBSRC)/glx \
		-I$(MESASRCDIR)/src/mesa/main \
		-I$(MESASRCDIR)/src/mesa/glapi \
		-I$(MESASRCDIR)/src/mesa/drivers/x11 \
		-I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
		-I$(XF86OSSRC) \
		$(DRI_INCS)

#include <Library.tmpl>

LibraryObjectRule()

#if BuildXF86DRI && defined(i386Architecture) && MesaUseX86Asm
ObjectFromAsmSource(glapi_x86, NullParameter)
#endif
#if BuildXF86DRI && defined(SparcArchitecture)
STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES)
ObjectFromAsmSource(glapi_sparc, NullParameter)
#endif

SubdirLibraryRule($(OBJS))
NormalLintTarget($(SRCS))

DependTarget()