18
18
GBM_LIBS = $(LIBUDEV_LIBS) $(LIBDRM_LIB) \
19
19
$(TOP)/src/gallium/state_trackers/gbm/libgbm.a \
20
20
$(TOP)/src/gallium/drivers/identity/libidentity.a \
21
$(TOP)/src/gallium/drivers/galahad/libgalahad.a \
21
22
$(TOP)/src/gallium/drivers/trace/libtrace.a \
22
23
$(TOP)/src/gallium/drivers/rbug/librbug.a \
23
24
$(GALLIUM_AUXILIARIES)
37
38
-I$(TOP)/src/gallium/include \
38
39
-I$(TOP)/src/gallium/winsys
40
pipe_LIBS = $(LIBDRM_LIB) \
41
42
$(TOP)/src/gallium/drivers/identity/libidentity.a \
42
43
$(TOP)/src/gallium/drivers/trace/libtrace.a \
43
44
$(TOP)/src/gallium/drivers/rbug/librbug.a \
44
45
$(GALLIUM_AUXILIARIES)
46
pipe_CLFLAGS = $(LIBDRM_CFLAGS)
47
# as if we are DRI modules
48
pipe_SYS = $(DRI_LIB_DEPS)
51
-DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_GALAHAD \
48
54
pipe_LDFLAGS = -Wl,--no-undefined
51
i915_LIBS = -ldrm_intel \
52
58
$(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
53
59
$(TOP)/src/gallium/drivers/i915/libi915.a
60
i915_SYS = -ldrm_intel
56
i965_LIBS = -ldrm_intel \
57
64
$(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
58
65
$(TOP)/src/gallium/drivers/i965/libi965.a \
59
66
$(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a
67
i965_SYS = -ldrm_intel
61
69
# nouveau pipe driver
62
nouveau_LIBS = -ldrm_nouveau \
63
71
$(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
64
72
$(TOP)/src/gallium/drivers/nvfx/libnvfx.a \
65
73
$(TOP)/src/gallium/drivers/nv50/libnv50.a \
66
74
$(TOP)/src/gallium/drivers/nvc0/libnvc0.a \
67
75
$(TOP)/src/gallium/drivers/nouveau/libnouveau.a
76
nouveau_SYS = -ldrm_nouveau
71
80
$(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
72
81
$(TOP)/src/gallium/drivers/r300/libr300.a
82
r300_SYS = -ldrm_radeon
75
r600_LIBS = -ldrm -ldrm_radeon \
76
86
$(TOP)/src/gallium/winsys/r600/drm/libr600winsys.a \
77
87
$(TOP)/src/gallium/drivers/r600/libr600.a
88
r600_SYS = -ldrm_radeon
79
90
# vmwgfx pipe driver
140
152
$(MKLIB) -o $@ -noprefix -linker '$(CC)' \
141
153
-ldflags '-L$(TOP)/$(LIB_DIR) $(pipe_LDFLAGS) $(LDFLAGS)' \
142
154
$(MKLIB_OPTIONS) $< \
143
-Wl,--start-group $($*_LIBS) $(pipe_LIBS) -Wl,--end-group
155
-Wl,--start-group $(pipe_LIBS) $($*_LIBS) -Wl,--end-group \
156
$(pipe_SYS) $($*_SYS)
145
158
$(pipe_OBJECTS): %.o: %.c
146
159
$(CC) -c -o $@ $< $(pipe_INCLUDES) $(pipe_CFLAGS) $(CFLAGS)