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 \
24 -I$(DRM_SOURCE_PATH)/libdrm \
27 OBJECTS = $(C_SOURCES:.c=.o) \
28 $(MINIGLX_SOURCES:.c=.o) \
36 ### Include directories
41 -I$(DRM_SOURCE_PATH)/shared \
43 -I$(TOP)/include/GL/internal \
45 -I$(TOP)/src/mesa/main \
46 -I$(TOP)/src/mesa/glapi \
47 -I$(TOP)/src/mesa/math \
48 -I$(TOP)/src/mesa/transform \
49 -I$(TOP)/src/mesa/shader \
50 -I$(TOP)/src/mesa/swrast \
51 -I$(TOP)/src/mesa/swrast_setup
53 # Of course we're direct rendering. Redundant #ifdefs in the code
54 # from prehistory require this:
56 DEFINES += -DGLX_DIRECT_RENDERING
61 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
64 $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
69 default: depend symlinks $(LIB_DIR)/$(LIBNAME)
72 #$(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile
73 # @echo BUILDING FOR: $(WINDOW_SYSTEM)
74 # $(TOP)/bin/mklib -o $(LIBNAME) -noprefix -install $(LIB_DIR) \
75 # $(WINLIB) $(LIB_DEPS) $(WINOBJ) $(MESA_MODULES) $(OBJECTS)
78 $(LIB_DIR)/$(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(WINOBJ) Makefile ../Makefile.template
79 rm -f $@ && gcc -o $@ -shared $(OBJECTS) $(MESA_MODULES) $(WINOBJ) $(GL_LIB_DEPS)
84 # Run 'make depend' to update the dependencies if you change
85 # what's included by any source file.
86 depend: $(C_SOURCES) $(ASM_SOURCES)
88 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \
94 etags `find . -name \*.[ch]` `find ../include`
97 # Remove .o and backup files
99 -rm -f *.o */*.o *~ *.o *~ *.so server/*.o $(SYMLINKS) depend