From 61e843ff4bf9b9e8c4a7a8a485cee852a4f1dd86 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 9 Jan 2009 17:52:06 +0000 Subject: [PATCH] xlib: move state tracker to glx/xlib Also, remove makefile hacks. --- src/gallium/state_trackers/Makefile | 2 +- src/gallium/state_trackers/glx/Makefile | 25 +++++++++++++++++++ .../state_trackers/{ => glx}/xlib/Makefile | 4 +-- .../state_trackers/{ => glx}/xlib/fakeglx.c | 0 .../state_trackers/{ => glx}/xlib/fakeglx.h | 0 .../{ => glx}/xlib/fakeglx_fonts.c | 0 .../state_trackers/{ => glx}/xlib/glxapi.c | 0 .../state_trackers/{ => glx}/xlib/glxapi.h | 0 .../state_trackers/{ => glx}/xlib/xm_api.c | 0 .../state_trackers/{ => glx}/xlib/xm_api.h | 0 .../state_trackers/{ => glx}/xlib/xm_winsys.h | 0 src/gallium/winsys/xlib/Makefile | 6 ++--- 12 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 src/gallium/state_trackers/glx/Makefile rename src/gallium/state_trackers/{ => glx}/xlib/Makefile (84%) rename src/gallium/state_trackers/{ => glx}/xlib/fakeglx.c (100%) rename src/gallium/state_trackers/{ => glx}/xlib/fakeglx.h (100%) rename src/gallium/state_trackers/{ => glx}/xlib/fakeglx_fonts.c (100%) rename src/gallium/state_trackers/{ => glx}/xlib/glxapi.c (100%) rename src/gallium/state_trackers/{ => glx}/xlib/glxapi.h (100%) rename src/gallium/state_trackers/{ => glx}/xlib/xm_api.c (100%) rename src/gallium/state_trackers/{ => glx}/xlib/xm_api.h (100%) rename src/gallium/state_trackers/{ => glx}/xlib/xm_winsys.h (100%) diff --git a/src/gallium/state_trackers/Makefile b/src/gallium/state_trackers/Makefile index 7e8cc038545..07b3fbf3119 100644 --- a/src/gallium/state_trackers/Makefile +++ b/src/gallium/state_trackers/Makefile @@ -2,7 +2,7 @@ TOP = ../../.. include $(TOP)/configs/current -SUBDIRS = xlib +SUBDIRS = glx default: subdirs diff --git a/src/gallium/state_trackers/glx/Makefile b/src/gallium/state_trackers/glx/Makefile new file mode 100644 index 00000000000..f779035763e --- /dev/null +++ b/src/gallium/state_trackers/glx/Makefile @@ -0,0 +1,25 @@ +TOP = ../../../.. +include $(TOP)/configs/current + + +SUBDIRS = xlib + + +default: subdirs + + +subdirs: + @for dir in $(SUBDIRS) ; do \ + if [ -d $$dir ] ; then \ + (cd $$dir && $(MAKE)) || exit 1 ; \ + fi \ + done + + +clean: + rm -f `find . -name \*.[oa]` + rm -f `find . -name depend` + + +# Dummy install target +install: diff --git a/src/gallium/state_trackers/xlib/Makefile b/src/gallium/state_trackers/glx/xlib/Makefile similarity index 84% rename from src/gallium/state_trackers/xlib/Makefile rename to src/gallium/state_trackers/glx/xlib/Makefile index 442d99d638c..1b63db1f0ea 100644 --- a/src/gallium/state_trackers/xlib/Makefile +++ b/src/gallium/state_trackers/glx/xlib/Makefile @@ -1,4 +1,4 @@ -TOP = ../../../.. +TOP = ../../../../.. include $(TOP)/configs/current LIBNAME = xlib @@ -19,7 +19,7 @@ C_SOURCES = \ xm_api.c -include ../../Makefile.template +include ../../../Makefile.template symlinks: diff --git a/src/gallium/state_trackers/xlib/fakeglx.c b/src/gallium/state_trackers/glx/xlib/fakeglx.c similarity index 100% rename from src/gallium/state_trackers/xlib/fakeglx.c rename to src/gallium/state_trackers/glx/xlib/fakeglx.c diff --git a/src/gallium/state_trackers/xlib/fakeglx.h b/src/gallium/state_trackers/glx/xlib/fakeglx.h similarity index 100% rename from src/gallium/state_trackers/xlib/fakeglx.h rename to src/gallium/state_trackers/glx/xlib/fakeglx.h diff --git a/src/gallium/state_trackers/xlib/fakeglx_fonts.c b/src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c similarity index 100% rename from src/gallium/state_trackers/xlib/fakeglx_fonts.c rename to src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c diff --git a/src/gallium/state_trackers/xlib/glxapi.c b/src/gallium/state_trackers/glx/xlib/glxapi.c similarity index 100% rename from src/gallium/state_trackers/xlib/glxapi.c rename to src/gallium/state_trackers/glx/xlib/glxapi.c diff --git a/src/gallium/state_trackers/xlib/glxapi.h b/src/gallium/state_trackers/glx/xlib/glxapi.h similarity index 100% rename from src/gallium/state_trackers/xlib/glxapi.h rename to src/gallium/state_trackers/glx/xlib/glxapi.h diff --git a/src/gallium/state_trackers/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c similarity index 100% rename from src/gallium/state_trackers/xlib/xm_api.c rename to src/gallium/state_trackers/glx/xlib/xm_api.c diff --git a/src/gallium/state_trackers/xlib/xm_api.h b/src/gallium/state_trackers/glx/xlib/xm_api.h similarity index 100% rename from src/gallium/state_trackers/xlib/xm_api.h rename to src/gallium/state_trackers/glx/xlib/xm_api.h diff --git a/src/gallium/state_trackers/xlib/xm_winsys.h b/src/gallium/state_trackers/glx/xlib/xm_winsys.h similarity index 100% rename from src/gallium/state_trackers/xlib/xm_winsys.h rename to src/gallium/state_trackers/glx/xlib/xm_winsys.h diff --git a/src/gallium/winsys/xlib/Makefile b/src/gallium/winsys/xlib/Makefile index 129d038d4f2..fbc947f363b 100644 --- a/src/gallium/winsys/xlib/Makefile +++ b/src/gallium/winsys/xlib/Makefile @@ -19,7 +19,7 @@ INCLUDE_DIRS = \ -I$(TOP)/src/mesa/main \ -I$(TOP)/src/gallium/include \ -I$(TOP)/src/gallium/drivers \ - -I$(TOP)/src/gallium/state_trackers/xlib \ + -I$(TOP)/src/gallium/state_trackers/glx/xlib \ -I$(TOP)/src/gallium/auxiliary XLIB_WINSYS_SOURCES = \ @@ -38,6 +38,7 @@ XLIB_WINSYS_OBJECTS = $(XLIB_WINSYS_SOURCES:.c=.o) LIBS = \ $(GALLIUM_DRIVERS) \ + $(TOP)/src/gallium/state_trackers/glx/xlib/libxlib.a \ $(TOP)/src/mesa/libglapi.a \ $(TOP)/src/mesa/libmesa.a \ $(GALLIUM_AUXILIARIES) \ @@ -58,13 +59,12 @@ default: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) # Make the libGL.so library -$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) +$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(XLIB_WINSYS_OBJECTS) $(LIBS) Makefile $(TOP)/bin/mklib -o $(GL_LIB) \ -linker "$(CC)" \ -major $(GL_MAJOR) -minor $(GL_MINOR) -patch $(GL_TINY) \ -install $(TOP)/$(LIB_DIR) \ $(MKLIB_OPTIONS) $(XLIB_WINSYS_OBJECTS) \ - $(TOP)/src/gallium/state_trackers/xlib/*.o \ --start-group $(LIBS) --end-group $(GL_LIB_DEPS) -- 2.30.2