1 # src/egl/drivers/dri/Makefile
4 include $(TOP
)/configs
/current
7 ### Include directories
11 $(shell pkg-config
--cflags-only-I libdrm
) \
13 -I
$(TOP
)/include/GL
/internal \
15 -I
$(TOP
)/src
/mesa
/main \
16 -I
$(TOP
)/src
/mesa
/glapi \
17 -I
$(TOP
)/src
/mesa
/math \
18 -I
$(TOP
)/src
/mesa
/transform \
19 -I
$(TOP
)/src
/mesa
/shader \
20 -I
$(TOP
)/src
/mesa
/swrast \
21 -I
$(TOP
)/src
/mesa
/swrast_setup \
22 -I
$(TOP
)/src
/egl
/main \
23 -I
$(TOP
)/src
/mesa
/drivers
/dri
/common
30 OBJECTS
= $(SOURCES
:.c
=.o
)
32 DRM_LIB
= `pkg-config --libs libdrm`
36 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
40 default
: depend library Makefile
44 library
: $(TOP
)/$(LIB_DIR
)/libEGLdri.so
46 $(TOP
)/$(LIB_DIR
)/libEGLdri.so
: $(OBJECTS
)
47 $(MKLIB
) -o EGLdri
-linker
'$(CC)' -ldflags '$(LDFLAGS)' \
49 -install $(TOP
)/$(LIB_DIR
) -ldl
$(OBJECTS
) $(LIBS
)
56 depend
: $(SOURCES
) $(HEADERS
)
57 @ echo
"running $(MKDEP)"
60 $(MKDEP
) $(MKDEP_OPTIONS
) $(DEFINES
) $(INCLUDE_DIRS
) \
61 $(SOURCES
) $(HEADERS
) >/dev
/null
2>/dev
/null