5 MESA_MODULES = $(TOP)/src/mesa/mesa.a
8 ifeq ($(WINDOW_SYSTEM),dri)
9 WINOBJ=../dri_client/dri.a
11 INCLUDES = $(SHARED_INCLUDES) \
13 -I../dri_client/imports
15 OBJECTS = $(C_SOURCES:.c=.o) \
20 WINLIB=-L$(MESA)/src/glx/mini
21 MINIGLX_INCLUDES = -I$(TOP)/src/glx/mini
22 INCLUDES = $(MINIGLX_INCLUDES) \
23 -I$(DRM_SOURCE_PATH)/shared \
26 OBJECTS = $(C_SOURCES:.c=.o) \
27 $(MINIGLX_SOURCES:.c=.o) \
35 ### Include directories
40 -I$(DRM_SOURCE_PATH)/shared \
42 -I$(TOP)/include/GL/internal \
44 -I$(TOP)/src/mesa/main \
45 -I$(TOP)/src/mesa/glapi \
46 -I$(TOP)/src/mesa/math \
47 -I$(TOP)/src/mesa/transform \
48 -I$(TOP)/src/mesa/shader \
49 -I$(TOP)/src/mesa/swrast \
50 -I$(TOP)/src/mesa/swrast_setup
52 # Of course we're direct rendering. Redundant #ifdefs in the code
53 # from prehistory require this:
55 DEFINES += -DGLX_DIRECT_RENDERING
60 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
63 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
68 default: depend symlinks $(LIB_DIR)/$(LIBNAME)
71 #$(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile
72 # @echo BUILDING FOR: $(WINDOW_SYSTEM)
73 # $(TOP)/bin/mklib -o $(LIBNAME) -noprefix -install $(LIB_DIR) \
74 # $(WINLIB) $(LIB_DEPS) $(WINOBJ) $(MESA_MODULES) $(OBJECTS)
77 $(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile ../Makefile.template
78 rm -f $@ && gcc -o $@ -shared $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(GL_LIB_DEPS)
83 # Run 'make depend' to update the dependencies if you change
84 # what's included by any source file.
85 depend: $(C_SOURCES) $(ASM_SOURCES)
87 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \
93 etags `find . -name \*.[ch]` `find ../include`
96 # Remove .o and backup files
98 -rm -f *.o */*.o *~ *.o *~ *.so server/*.o $(SYMLINKS)