targets/egl: Give egl targets a good build enviroment
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 29 May 2010 09:39:52 +0000 (11:39 +0200)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 29 May 2010 11:19:13 +0000 (13:19 +0200)
src/gallium/targets/Makefile.egl

index 4f8641e056169dc004f3433e134b121dd587f831..4fa13e85ce4a04431b6f9ff36b353b8c47aafb3f 100644 (file)
@@ -33,10 +33,20 @@ endif
 kms_ST = $(TOP)/src/gallium/state_trackers/egl/libeglkms.a
 kms_LIBS = $(common_LIBS)
 
+### Include directories
+INCLUDES = \
+       -I$(TOP)/include \
+       -I$(TOP)/src/gallium/include \
+       -I$(TOP)/src/gallium/auxiliary \
+       -I$(TOP)/src/gallium/drivers \
+       -I$(TOP)/src/gallium/winsys \
+       -I$(TOP)/src/egl/main \
+       $(LIBDRM_CFLAGS)
+
 ##### RULES #####
 
 .c.o:
-       $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
+       $(CC) -c $(INCLUDES) $(CFLAGS) $(EGL_DRIVER_DEFINES) $< -o $@
 
 
 ##### TARGETS #####