gallium: fix refcount bug introduced in eb20e2984
[mesa.git] / src / egl / main / Makefile
1 # src/egl/main/Makefile
2
3 TOP = ../../..
4 include $(TOP)/configs/current
5
6
7 INCLUDE_DIRS = -I$(TOP)/include -I$(TOP)/src/mesa/glapi
8
9 HEADERS = \
10 eglconfig.h \
11 eglconfigutil.h \
12 eglcontext.h \
13 egldefines.h \
14 egldisplay.h \
15 egldriver.h \
16 eglglobals.h \
17 egllog.h \
18 eglhash.h \
19 eglmisc.h \
20 eglmode.h \
21 eglscreen.h \
22 eglstring.h \
23 eglsurface.h \
24 eglx.h
25
26 SOURCES = \
27 eglapi.c \
28 eglconfig.c \
29 eglconfigutil.c \
30 eglcontext.c \
31 egldisplay.c \
32 egldriver.c \
33 eglglobals.c \
34 egllog.c \
35 eglhash.c \
36 eglmisc.c \
37 eglmode.c \
38 eglscreen.c \
39 eglstring.c \
40 eglsurface.c \
41 eglx.c
42
43 OBJECTS = $(SOURCES:.c=.o)
44
45
46 # Undefined for now
47 LOCAL_CFLAGS = -D_EGL_PLATFORM_X=1
48
49 LIBS = -lX11
50
51
52 .c.o:
53 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@
54
55
56
57 default: depend library
58
59
60 # EGL Library
61 library: $(TOP)/$(LIB_DIR)/libEGL.so
62
63 $(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
64 $(TOP)/bin/mklib -o EGL -major 1 -minor 0 \
65 -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) $(LIBS)
66
67
68
69 clean:
70 rm -f *.o *.so*
71 rm -f core.*
72
73
74 depend: $(SOURCES) $(HEADERS)
75 @ echo "running $(MKDEP)"
76 @ rm -f depend
77 @ touch depend
78 $(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) \
79 $(SOURCES) $(HEADERS) > /dev/null 2>/dev/null
80
81
82 include depend
83 # DO NOT DELETE