Drop some Glide remnants
[mesa.git] / src / mesa / drivers / x11 / Makefile
1 # src/mesa/drivers/x11/Makefile for libGL.so
2
3 # This builds "stand-alone" Mesa, a version of libGL that does not need the
4 # GLX extension. All rendering is converted to Xlib calls. No hardware
5 # acceleration.
6
7
8 TOP = ../../../..
9
10 include $(TOP)/configs/current
11
12
13 GL_MAJOR = 1
14 GL_MINOR = 5
15 GL_TINY = 0$(MESA_MAJOR)$(MESA_MINOR)0$(MESA_TINY)
16
17
18 HEADERS = \
19 glxapi.h \
20 glxheader.h \
21 xfonts.h \
22 xmesaP.h \
23 xm_image.h
24
25 SOURCES = \
26 fakeglx.c \
27 glxapi.c \
28 xfonts.c \
29 xm_api.c \
30 xm_buffer.c \
31 xm_dd.c \
32 xm_image.c \
33 xm_line.c \
34 xm_span.c \
35 xm_tri.c
36
37 OBJECTS = $(SOURCES:.c=.o)
38
39 INCLUDE_DIRS = \
40 -I$(TOP)/include \
41 -I$(TOP)/src/mapi \
42 -I$(TOP)/src/mesa \
43 -I$(TOP)/src/mesa/main \
44 $(X11_INCLUDES)
45
46 CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mapi/glapi/libglapi.a
47
48 ifeq ($(SHARED_GLAPI),1)
49 GL_LIB_DEPS := -L$(TOP)/$(LIB_DIR) -l$(GLAPI_LIB) $(GL_LIB_DEPS)
50 endif
51
52
53 .c.o:
54 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
55
56
57 default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
58
59
60 $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(CORE_MESA)
61 @ $(MKLIB) -o $(GL_LIB) -linker '$(CXX)' -ldflags '$(LDFLAGS)' \
62 -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
63 -install $(TOP)/$(LIB_DIR) \
64 -cplusplus $(MKLIB_OPTIONS) \
65 -id $(INSTALL_LIB_DIR)/lib$(GL_LIB).$(GL_MAJOR).dylib \
66 $(GL_LIB_DEPS) $(OBJECTS) $(CORE_MESA)
67
68
69
70 clean:
71 -rm -f *.o *~
72 -rm -f depend depend.bak
73
74
75
76 depend: $(SOURCES) $(HEADERS)
77 @ echo "running $(MKDEP)"
78 @ touch depend
79 @$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(SOURCES) $(HEADERS) \
80 > /dev/null 2>/dev/null
81
82
83 -include depend