egl: s/softpipe_egl.so/egl_softpipe.so/
[mesa.git] / src / gallium / winsys / egl_xlib / Makefile
1 # src/gallium/winsys/egl_xlib/Makefile
2
3 # Build softpipe/xlib/EGL driver library/object: "egl_softpipe.so"
4
5
6 TOP = ../../../..
7 include $(TOP)/configs/current
8
9
10 DRIVER_NAME = egl_softpipe.so
11
12
13 INCLUDE_DIRS = \
14 -I$(TOP)/include \
15 -I$(TOP)/src/egl/main \
16 -I$(TOP)/src/mesa \
17 -I$(TOP)/src/mesa/main \
18 -I$(TOP)/src/gallium/include \
19 -I$(TOP)/src/gallium/drivers \
20 -I$(TOP)/src/gallium/auxiliary
21
22 WINSYS_SOURCES = \
23 egl_xlib.c \
24 sw_winsys.c
25
26 WINSYS_OBJECTS = $(WINSYS_SOURCES:.c=.o)
27
28
29 LIBS = \
30 $(GALLIUM_DRIVERS) \
31 $(TOP)/src/mesa/libglapi.a \
32 $(TOP)/src/mesa/libmesa.a \
33 $(GALLIUM_AUXILIARIES)
34
35
36 LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
37
38
39 .c.o:
40 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@
41
42
43 .PHONY: library
44
45
46 default: depend library Makefile
47
48
49 library: $(TOP)/$(LIB_DIR)/$(DRIVER_NAME)
50
51
52 # Make the egl_softpipe.so library
53 $(TOP)/$(LIB_DIR)/$(DRIVER_NAME): $(WINSYS_OBJECTS) $(LIBS)
54 $(TOP)/bin/mklib -o $(DRIVER_NAME) \
55 -linker "$(CC)" \
56 -noprefix \
57 -install $(TOP)/$(LIB_DIR) \
58 $(MKLIB_OPTIONS) $(WINSYS_OBJECTS) \
59 --start-group $(LIBS) --end-group
60
61
62 depend: $(ALL_SOURCES)
63 @ echo "running $(MKDEP)"
64 @ rm -f depend # workaround oops on gutsy?!?
65 @ touch depend
66 @ $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(ALL_SOURCES) \
67 > /dev/null 2>/dev/null
68
69
70 install: default
71 $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
72 @if [ -e $(TOP)/$(LIB_DIR) ]; then \
73 $(INSTALL) $(TOP)/$(LIB_DIR)/$(DRIVER_NAME) $(INSTALL_DIR)/$(LIB_DIR); \
74 fi
75
76
77 # Emacs tags
78 tags:
79 etags `find . -name \*.[ch]` $(TOP)/include/GL/*.h
80
81 clean:
82 -rm -f *.o *~ *.bak
83
84
85 include depend