remove realglx.[ch] from build
[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/mesa \
44 -I$(TOP)/src/mesa/main
45
46 CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
47
48
49
50 .c.o:
51 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
52
53
54 default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
55
56
57 $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(CORE_MESA)
58 @ $(TOP)/bin/mklib -o $(GL_LIB) \
59 -linker '$(CC)' -ldflags '$(LDFLAGS)' \
60 -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
61 -install $(TOP)/$(LIB_DIR) \
62 $(MKLIB_OPTIONS) $(GL_LIB_DEPS) $(OBJECTS)
63
64
65
66 clean:
67 -rm -f *.o *~
68 -rm -f depend depend.bak
69
70
71
72 depend: $(SOURCES) $(HEADERS)
73 @ echo "running $(MKDEP)"
74 @ touch depend
75 @$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(SOURCES) $(HEADERS) \
76 > /dev/null 2>/dev/null
77
78
79 -include depend