mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
sync up with Makefile changes on master
This commit is contained in:
parent
949600b693
commit
eb189c856d
4 changed files with 162 additions and 54 deletions
|
|
@ -28,45 +28,67 @@ default: depend subdirs libmesa.a libglapi.a
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Make archive of core object files
|
# Helper libraries used by many drivers:
|
||||||
|
|
||||||
|
# Make archive of core mesa object files
|
||||||
libmesa.a: $(SOLO_OBJECTS)
|
libmesa.a: $(SOLO_OBJECTS)
|
||||||
@ $(TOP)/bin/mklib -o mesa -static $(SOLO_OBJECTS);
|
@ $(TOP)/bin/mklib -o mesa -static $(SOLO_OBJECTS);
|
||||||
@if [ "${CONFIG_NAME}" = "beos" ] ; then \
|
@if [ "${CONFIG_NAME}" = "beos" ] ; then \
|
||||||
mimeset -f "$@" ; \
|
mimeset -f "$@" ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make archive of gl* API dispatcher functions (when not building DRI/GLX)
|
# Make archive of gl* API dispatcher functions only
|
||||||
libglapi.a: $(GLAPI_OBJECTS)
|
libglapi.a: $(GLAPI_OBJECTS)
|
||||||
@ $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS)
|
@ $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Stand-alone Mesa libGL
|
# BeOS driver target
|
||||||
STAND_ALONE_DRIVER_SOURCES = \
|
|
||||||
$(COMMON_DRIVER_SOURCES) \
|
|
||||||
$(X11_DRIVER_SOURCES)
|
|
||||||
|
|
||||||
STAND_ALONE_DRIVER_OBJECTS = $(STAND_ALONE_DRIVER_SOURCES:.c=.o)
|
beos-driver: depend subdirs libmesa.a
|
||||||
|
cd drivers/beos && $(MAKE)
|
||||||
STAND_ALONE_OBJECTS = \
|
|
||||||
$(CORE_OBJECTS) \
|
|
||||||
$(STAND_ALONE_DRIVER_OBJECTS)
|
|
||||||
|
|
||||||
|
|
||||||
stand-alone: depend subdirs $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
|
######################################################################
|
||||||
|
# DRI drivers
|
||||||
|
|
||||||
osmesa-only: depend subdirs libmesa.a libglapi.a
|
dri-drivers: depend subdirs libmesa.a
|
||||||
|
cd drivers/dri && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# Xlib driver (libGL.so)
|
||||||
|
|
||||||
|
xlib-driver: depend subdirs libmesa.a libglapi.a
|
||||||
|
cd drivers/x11 && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# osmesa driver (libOSMesa.so)
|
||||||
|
|
||||||
|
osmesa-driver: depend subdirs libmesa.a libglapi.a
|
||||||
cd drivers/osmesa && $(MAKE)
|
cd drivers/osmesa && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
# Make the GL library
|
#####################################################################
|
||||||
$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(STAND_ALONE_OBJECTS) $(PIPE_LIB) $(CELL_LIB) $(CELL_LIB_SPU)
|
# fbdev driver (libGL.so)
|
||||||
@ $(TOP)/bin/mklib -o $(GL_LIB) \
|
|
||||||
-linker "$(CC)" \
|
fbdev-driver: depend subdirs libmesa.a libglapi.a
|
||||||
-major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
|
cd drivers/fbdev && $(MAKE)
|
||||||
-install $(TOP)/$(LIB_DIR) \
|
|
||||||
$(MKLIB_OPTIONS) $(STAND_ALONE_OBJECTS) \
|
|
||||||
$(PIPE_LIB) $(CELL_LIB) $(CELL_LIB_SPU) $(GL_LIB_DEPS)
|
#####################################################################
|
||||||
|
# DirectFB driver (libGL.so)
|
||||||
|
|
||||||
|
directfb-libgl: $(CORE_OBJECTS)
|
||||||
|
@ $(TOP)/bin/mklib -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
|
-major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
|
||||||
|
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) $(CORE_OBJECTS) \
|
||||||
|
$(GL_LIB_DEPS)
|
||||||
|
|
||||||
|
directfb-driver: depend subdirs directfb-libgl
|
||||||
|
cd drivers/directfb && $(MAKE)
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
|
||||||
36
src/mesa/drivers/fbdev/Makefile
Normal file
36
src/mesa/drivers/fbdev/Makefile
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# src/mesa/drivers/fbdev/Makefile for libGL.so
|
||||||
|
|
||||||
|
TOP = ../../../..
|
||||||
|
|
||||||
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES = glfbdev.c
|
||||||
|
|
||||||
|
OBJECTS = $(SOURCES:.c=.o)
|
||||||
|
|
||||||
|
INCLUDE_DIRS = \
|
||||||
|
-I$(TOP)/include \
|
||||||
|
-I$(TOP)/src/mesa \
|
||||||
|
-I$(TOP)/src/mesa/main
|
||||||
|
|
||||||
|
CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||||
|
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
||||||
|
default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(CORE_OBJECTS) $(OBJECTS)
|
||||||
|
@ $(TOP)/bin/mklib -o $(GL_LIB) \
|
||||||
|
-linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
|
-major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
|
||||||
|
-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
|
||||||
|
$(CORE_MESA) $(OBJECTS) $(GL_LIB_DEPS)
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f $(OBJECTS)
|
||||||
|
|
@ -1,2 +1,81 @@
|
||||||
default:
|
# src/mesa/drivers/x11/Makefile for libGL.so
|
||||||
cd ../.. ; make
|
|
||||||
|
# This builds "stand-alone" Mesa, a version of libGL that does not need the
|
||||||
|
# GLX extension. All rendering is converted to Xlib calls. No hardware
|
||||||
|
# acceleration.
|
||||||
|
|
||||||
|
|
||||||
|
TOP = ../../../..
|
||||||
|
|
||||||
|
include $(TOP)/configs/current
|
||||||
|
|
||||||
|
|
||||||
|
GL_MAJOR = 1
|
||||||
|
GL_MINOR = 5
|
||||||
|
GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
|
||||||
|
|
||||||
|
|
||||||
|
HEADERS = \
|
||||||
|
glxapi.h \
|
||||||
|
glxheader.h \
|
||||||
|
realglx.h \
|
||||||
|
xfonts.h \
|
||||||
|
xmesaP.h \
|
||||||
|
xm_glide.h \
|
||||||
|
xm_image.h
|
||||||
|
|
||||||
|
SOURCES = \
|
||||||
|
fakeglx.c \
|
||||||
|
glxapi.c \
|
||||||
|
realglx.c \
|
||||||
|
xfonts.c \
|
||||||
|
xm_api.c \
|
||||||
|
xm_buffer.c \
|
||||||
|
xm_dd.c \
|
||||||
|
xm_glide.c \
|
||||||
|
xm_image.c \
|
||||||
|
xm_line.c \
|
||||||
|
xm_span.c \
|
||||||
|
xm_tri.c
|
||||||
|
|
||||||
|
OBJECTS = $(SOURCES:.c=.o)
|
||||||
|
|
||||||
|
INCLUDE_DIRS = \
|
||||||
|
-I$(TOP)/include \
|
||||||
|
-I$(TOP)/src/mesa \
|
||||||
|
-I$(TOP)/src/mesa/main
|
||||||
|
|
||||||
|
CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
||||||
|
default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
|
||||||
|
|
||||||
|
|
||||||
|
$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(CORE_MESA)
|
||||||
|
@ $(TOP)/bin/mklib -o $(GL_LIB) \
|
||||||
|
-linker '$(CC)' -ldflags '$(LDFLAGS)' \
|
||||||
|
-major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \
|
||||||
|
-install $(TOP)/$(LIB_DIR) \
|
||||||
|
$(MKLIB_OPTIONS) $(GL_LIB_DEPS) $(OBJECTS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f *.o *~
|
||||||
|
-rm -f depend depend.bak
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
depend: $(SOURCES) $(HEADERS)
|
||||||
|
@ echo "running $(MKDEP)"
|
||||||
|
@ touch depend
|
||||||
|
@$(MKDEP) $(MKDEP_OPTIONS) $(DEFINES) $(INCLUDE_DIRS) $(SOURCES) $(HEADERS) \
|
||||||
|
> /dev/null 2>/dev/null
|
||||||
|
|
||||||
|
|
||||||
|
-include depend
|
||||||
|
|
|
||||||
|
|
@ -288,21 +288,6 @@ SPARC_API = \
|
||||||
__COMMON_DRIVER_SOURCES = \
|
__COMMON_DRIVER_SOURCES = \
|
||||||
drivers/common/driverfuncs.c
|
drivers/common/driverfuncs.c
|
||||||
|
|
||||||
OSMESA_DRIVER_SOURCES = \
|
|
||||||
drivers/osmesa/osmesa.c
|
|
||||||
|
|
||||||
GLIDE_DRIVER_SOURCES = \
|
|
||||||
drivers/glide/fxapi.c \
|
|
||||||
drivers/glide/fxdd.c \
|
|
||||||
drivers/glide/fxddspan.c \
|
|
||||||
drivers/glide/fxddtex.c \
|
|
||||||
drivers/glide/fxsetup.c \
|
|
||||||
drivers/glide/fxtexman.c \
|
|
||||||
drivers/glide/fxtris.c \
|
|
||||||
drivers/glide/fxvb.c \
|
|
||||||
drivers/glide/fxglidew.c \
|
|
||||||
drivers/glide/fxg.c
|
|
||||||
|
|
||||||
SVGA_DRIVER_SOURCES = \
|
SVGA_DRIVER_SOURCES = \
|
||||||
drivers/svga/svgamesa.c \
|
drivers/svga/svgamesa.c \
|
||||||
drivers/svga/svgamesa8.c \
|
drivers/svga/svgamesa8.c \
|
||||||
|
|
@ -320,11 +305,9 @@ FBDEV_DRIVER_SOURCES = \
|
||||||
ALL_SOURCES = \
|
ALL_SOURCES = \
|
||||||
$(GLAPI_SOURCES) \
|
$(GLAPI_SOURCES) \
|
||||||
$(SOLO_SOURCES) \
|
$(SOLO_SOURCES) \
|
||||||
$(MESA_ASM_SOURCES) \
|
$(MESA_ASM_SOURCES) \
|
||||||
$(COMMON_DRIVER_SOURCES)\
|
$(COMMON_DRIVER_SOURCES)\
|
||||||
$(X11_DRIVER_SOURCES) \
|
$(FBDEV_DRIVER_SOURCES)
|
||||||
$(FBDEV_DRIVER_SOURCES) \
|
|
||||||
$(OSMESA_DRIVER_SOURCES)
|
|
||||||
|
|
||||||
SOLO_SOURCES = \
|
SOLO_SOURCES = \
|
||||||
$(MAIN_SOURCES) \
|
$(MAIN_SOURCES) \
|
||||||
|
|
@ -361,8 +344,6 @@ GLAPI_OBJECTS = \
|
||||||
|
|
||||||
CORE_OBJECTS = $(SOLO_OBJECTS) $(GLAPI_OBJECTS)
|
CORE_OBJECTS = $(SOLO_OBJECTS) $(GLAPI_OBJECTS)
|
||||||
|
|
||||||
OSMESA_DRIVER_OBJECTS = $(OSMESA_DRIVER_SOURCES:.c=.o)
|
|
||||||
|
|
||||||
COMMON_DRIVER_OBJECTS = $(COMMON_DRIVER_SOURCES:.c=.o)
|
COMMON_DRIVER_OBJECTS = $(COMMON_DRIVER_SOURCES:.c=.o)
|
||||||
|
|
||||||
FBDEV_DRIVER_OBJECTS = $(FBDEV_DRIVER_SOURCES:.c=.o)
|
FBDEV_DRIVER_OBJECTS = $(FBDEV_DRIVER_SOURCES:.c=.o)
|
||||||
|
|
@ -378,13 +359,3 @@ INCLUDE_DIRS = \
|
||||||
-I$(TOP)/src/gallium/include \
|
-I$(TOP)/src/gallium/include \
|
||||||
-I$(TOP)/src/gallium/drivers \
|
-I$(TOP)/src/gallium/drivers \
|
||||||
-I$(TOP)/src/gallium/auxiliary
|
-I$(TOP)/src/gallium/auxiliary
|
||||||
|
|
||||||
OLD_INCLUDE_DIRS = \
|
|
||||||
-I$(TOP)/src/mesa/tnl \
|
|
||||||
-I$(TOP)/src/mesa/math \
|
|
||||||
-I$(TOP)/src/mesa/swrast \
|
|
||||||
-I$(TOP)/src/mesa/swrast_setup \
|
|
||||||
-I$(TOP)/src/mesa/shader \
|
|
||||||
-I$(TOP)/src/mesa/shader/grammar \
|
|
||||||
-I$(TOP)/src/mesa/shader/slang \
|
|
||||||
-I$(TOP)/s$(TOP)/src/gallium/auxiliary/tgsi
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue