1GALLIUM_CFLAGS = \ 2 -I$(top_srcdir)/include \ 3 -I$(top_srcdir)/src \ 4 -I$(top_srcdir)/src/gallium/include \ 5 -I$(top_srcdir)/src/gallium/auxiliary \ 6 $(DEFINES) 7 8# src/gallium/auxiliary must appear before src/gallium/drivers 9# because there are stupidly two rbug_context.h files in 10# different directories, and which one is included by the 11# preprocessor is determined by the ordering of the -I flags. 12GALLIUM_DRIVER_CFLAGS = \ 13 -I$(srcdir)/include \ 14 -I$(top_srcdir)/src \ 15 -I$(top_srcdir)/include \ 16 -I$(top_srcdir)/src/gallium/include \ 17 -I$(top_srcdir)/src/gallium/auxiliary \ 18 -I$(top_srcdir)/src/gallium/drivers \ 19 -I$(top_srcdir)/src/gallium/winsys \ 20 $(DEFINES) \ 21 $(VISIBILITY_CFLAGS) 22 23GALLIUM_DRIVER_CXXFLAGS = \ 24 -I$(srcdir)/include \ 25 -I$(top_srcdir)/src \ 26 -I$(top_srcdir)/include \ 27 -I$(top_srcdir)/src/gallium/include \ 28 -I$(top_srcdir)/src/gallium/auxiliary \ 29 -I$(top_srcdir)/src/gallium/drivers \ 30 -I$(top_srcdir)/src/gallium/winsys \ 31 $(DEFINES) \ 32 $(VISIBILITY_CXXFLAGS) 33 34GALLIUM_TARGET_CFLAGS = \ 35 -I$(top_srcdir)/src \ 36 -I$(top_srcdir)/include \ 37 -I$(top_srcdir)/src/loader \ 38 -I$(top_srcdir)/src/gallium/include \ 39 -I$(top_srcdir)/src/gallium/auxiliary \ 40 -I$(top_srcdir)/src/gallium/drivers \ 41 -I$(top_srcdir)/src/gallium/winsys \ 42 -I$(top_builddir)/src/util/ \ 43 -I$(top_builddir)/src/gallium/drivers/ \ 44 $(DEFINES) \ 45 $(PTHREAD_CFLAGS) \ 46 $(LIBDRM_CFLAGS) \ 47 $(VISIBILITY_CFLAGS) 48 49GALLIUM_COMMON_LIB_DEPS = \ 50 -lm \ 51 $(LIBUNWIND_LIBS) \ 52 $(LIBSENSORS_LIBS) \ 53 $(CLOCK_LIB) \ 54 $(PTHREAD_LIBS) \ 55 $(DLOPEN_LIBS) 56 57if HAVE_LIBDRM 58GALLIUM_COMMON_LIB_DEPS += \ 59 $(LIBDRM_LIBS) 60endif 61 62GALLIUM_WINSYS_CFLAGS = \ 63 -I$(top_srcdir)/src \ 64 -I$(top_srcdir)/include \ 65 -I$(top_srcdir)/src/gallium/include \ 66 -I$(top_srcdir)/src/gallium/auxiliary \ 67 $(DEFINES) \ 68 $(VISIBILITY_CFLAGS) 69 70 71GALLIUM_PIPE_LOADER_WINSYS_LIBS = \ 72 $(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \ 73 $(top_builddir)/src/gallium/winsys/sw/wrapper/libwsw.la 74 75if HAVE_DRISW 76GALLIUM_PIPE_LOADER_WINSYS_LIBS += \ 77 $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la 78endif 79 80if HAVE_DRISW_KMS 81GALLIUM_PIPE_LOADER_WINSYS_LIBS += \ 82 $(top_builddir)/src/gallium/winsys/sw/kms-dri/libswkmsdri.la \ 83 $(LIBDRM_LIBS) 84endif 85