Merge remote branch 'origin/opengl-es-v2'
[mesa.git] / src / gallium / winsys / drm / intel / egl / Makefile
1 TOP = ../../../../../..
2 GALLIUMDIR = ../../../..
3 include $(TOP)/configs/current
4
5 LIBNAME = egl_i915.so
6
7 PIPE_DRIVERS = \
8 $(TOP)/src/gallium/state_trackers/egl/libegldrm.a \
9 $(GALLIUMDIR)/winsys/drm/intel/gem/libinteldrm.a \
10 $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
11 $(TOP)/src/gallium/drivers/trace/libtrace.a \
12 $(TOP)/src/gallium/drivers/i915/libi915.a
13
14 DRIVER_EXTRAS = -lm -lpthread -ldrm_intel
15
16 OBJECTS = dummy.o
17
18 default: $(TOP)/$(LIB_DIR)/$(LIBNAME)
19
20 $(TOP)/$(LIB_DIR)/$(LIBNAME): $(LIBNAME)
21 @mkdir -p $(TOP)/$(LIB_DIR)
22 $(INSTALL) $(LIBNAME) $(TOP)/$(LIB_DIR)
23
24 $(LIBNAME): $(OBJECTS) $(GALLIUM_AUXILIARIES) $(PIPE_DRIVERS) Makefile
25 $(MKLIB) -noprefix -o $@ $(OBJECTS) \
26 -Wl,--whole-archive $(PIPE_DRIVERS) -Wl,--no-whole-archive \
27 -Wl,--start-group $(GALLIUM_AUXILIARIES) -Wl,--end-group \
28 $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
29
30 clean:
31 -rm -f *.o *.so *~
32
33 depend:
34
35 symlinks:
36
37 install: $(LIBNAME)
38 $(MINSTALL) -m 755 $(LIBNAME) $(INSTALL_DIR)/$(LIB_DIR)