Merge master and fix conflicts
[mesa.git] / src / gallium / winsys / drm / intel / xorg / Makefile
1 TARGET = modesetting_drv.so
2 CFILES = $(wildcard ./*.c)
3 OBJECTS = $(patsubst ./%.c,./%.o,$(CFILES))
4 GALLIUMDIR = ../../../..
5 TOP = ../../../../../..
6
7 include ${TOP}/configs/current
8
9 CFLAGS = -DHAVE_CONFIG_H \
10 -g -Wall -Wimplicit-function-declaration -fPIC \
11 $(shell pkg-config --cflags pixman-1 xorg-server libdrm xproto) \
12 -I../gem \
13 -I${GALLIUMDIR}/include \
14 -I${GALLIUMDIR}/drivers \
15 -I${GALLIUMDIR}/auxiliary \
16 -I${TOP}/src/mesa \
17 -I$(TOP)/include \
18 -I$(TOP)/src/egl/main
19
20 LIBS = \
21 $(GALLIUMDIR)/state_trackers/xorg/libxorgtracker.a \
22 $(GALLIUMDIR)/winsys/drm/intel/gem/libinteldrm.a \
23 $(TOP)/src/gallium/drivers/i915simple/libi915simple.a \
24 $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
25 $(GALLIUM_AUXILIARIES)
26
27 #############################################
28
29
30
31 all default: $(TARGET)
32
33 $(TARGET): $(OBJECTS) Makefile $(GALLIUMDIR)/state_trackers/xorg/libxorgtracker.a $(LIBS)
34 $(TOP)/bin/mklib -noprefix -o $@ \
35 $(OBJECTS) $(LIBS) $(shell pkg-config --libs libdrm) -ldrm_intel
36
37 clean:
38 rm -rf $(OBJECTS) $(TARGET)
39
40 install:
41 $(INSTALL) -d $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
42 $(MINSTALL) -m 755 $(TARGET) $(DESTDIR)/$(XORG_DRIVER_INSTALL_DIR)
43
44 .PHONY = all clean install