diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-01-09 17:52:06 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-01-09 17:52:06 +0000 |
commit | 61e843ff4bf9b9e8c4a7a8a485cee852a4f1dd86 (patch) | |
tree | 0aa8c369fa7ca9d1d7bcb2697adb7d6644707140 | |
parent | 75aac1b49665b471a4da79de95441c625923f18f (diff) |
xlib: move state tracker to glx/xlib
Also, remove makefile hacks.
-rw-r--r-- | src/gallium/state_trackers/Makefile | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/Makefile | 25 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/Makefile (renamed from src/gallium/state_trackers/xlib/Makefile) | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/fakeglx.c (renamed from src/gallium/state_trackers/xlib/fakeglx.c) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/fakeglx.h (renamed from src/gallium/state_trackers/xlib/fakeglx.h) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/fakeglx_fonts.c (renamed from src/gallium/state_trackers/xlib/fakeglx_fonts.c) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glxapi.c (renamed from src/gallium/state_trackers/xlib/glxapi.c) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glxapi.h (renamed from src/gallium/state_trackers/xlib/glxapi.h) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c (renamed from src/gallium/state_trackers/xlib/xm_api.c) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.h (renamed from src/gallium/state_trackers/xlib/xm_api.h) | 0 | ||||
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_winsys.h (renamed from src/gallium/state_trackers/xlib/xm_winsys.h) | 0 | ||||
-rw-r--r-- | src/gallium/winsys/xlib/Makefile | 6 |
12 files changed, 31 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/Makefile b/src/gallium/state_trackers/Makefile index 7e8cc03854..07b3fbf311 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 0000000000..f779035763 --- /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 index 442d99d638..1b63db1f0e 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 index 65e7048188..65e7048188 100644 --- a/src/gallium/state_trackers/xlib/fakeglx.c +++ b/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 index e5fd960072..e5fd960072 100644 --- a/src/gallium/state_trackers/xlib/fakeglx.h +++ b/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 index e359046756..e359046756 100644 --- a/src/gallium/state_trackers/xlib/fakeglx_fonts.c +++ b/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 index 1ff04804f1..1ff04804f1 100644 --- a/src/gallium/state_trackers/xlib/glxapi.c +++ b/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 index b4e12b4162..b4e12b4162 100644 --- a/src/gallium/state_trackers/xlib/glxapi.h +++ b/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 index 82d125b5f3..82d125b5f3 100644 --- a/src/gallium/state_trackers/xlib/xm_api.c +++ b/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 index 2b8302d174..2b8302d174 100644 --- a/src/gallium/state_trackers/xlib/xm_api.h +++ b/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 index b22d65a569..b22d65a569 100644 --- a/src/gallium/state_trackers/xlib/xm_winsys.h +++ b/src/gallium/state_trackers/glx/xlib/xm_winsys.h diff --git a/src/gallium/winsys/xlib/Makefile b/src/gallium/winsys/xlib/Makefile index 129d038d4f..fbc947f363 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) |