glapi: Move to src/mapi/.
[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)0$(MESA_MINOR)0$(MESA_TINY)
16
17
18 HEADERS = \
19 glxapi.h \
20 glxheader.h \
21 xfonts.h \
22 xmesaP.h \
23 xm_glide.h \
24 xm_image.h
25
26 SOURCES = \
27 fakeglx.c \
28 glxapi.c \
29 xfonts.c \
30 xm_api.c \
31 xm_buffer.c \
32 xm_dd.c \
33 xm_glide.c \
34 xm_image.c \
35 xm_line.c \
36 xm_span.c \
37 xm_tri.c
38
39 OBJECTS = $(SOURCES:.c=.o)
40
41 INCLUDE_DIRS = \
42 -I$(TOP)/include \
43 -I$(TOP)/src/mapi \
44 -I$(TOP)/src/mesa \
45 -I$(TOP)/src/mesa/main \
46 $(X11_INCLUDES)
47
48 CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mapi/glapi/libglapi.a
49
50
51
52 .c.o:
53 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
54
55
56 default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
57
58
59 $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(CORE_MESA)
60 @ $(MKLIB) -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
61 -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
62 -install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
63 -id $(INSTALL_LIB_DIR)/lib$(GL_LIB).$(GL_MAJOR).dylib \
64 $(GL_LIB_DEPS) $(OBJECTS) $(CORE_MESA)
65
66
67
68 clean:
69 -rm -f *.o *~
70 -rm -f depend depend.bak
71
72
73
74 depend: $(SOURCES) $(HEADERS)
75 @ echo "running $(MKDEP)"
76 @ touch depend
77 @$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(SOURCES) $(HEADERS) \
78 > /dev/null 2>/dev/null
79
80
81 -include depend