aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/xa-vmwgfx
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2011-11-24 21:54:54 +0100
committerThomas Hellstrom <[email protected]>2011-11-25 16:38:36 +0100
commit32b1641a59610d94c0b56bf0494b2fc1cf400e3e (patch)
treed03c7c7eac1cd4eb0d0b917b3225d3a63acf5896 /src/gallium/targets/xa-vmwgfx
parent4d04367eca66a85e26f7c0f5d6392823d13880f6 (diff)
st/xa, xa/vmwgfx: Generate exported symbol list from the st/xa symbols.
Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/targets/xa-vmwgfx')
-rw-r--r--src/gallium/targets/xa-vmwgfx/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/targets/xa-vmwgfx/Makefile b/src/gallium/targets/xa-vmwgfx/Makefile
index a4c02d1bca0..6ca446a15dc 100644
--- a/src/gallium/targets/xa-vmwgfx/Makefile
+++ b/src/gallium/targets/xa-vmwgfx/Makefile
@@ -52,13 +52,17 @@ endif
default: $(TOP)/$(LIB_DIR)/gallium/$(XA_LIB_NAME)
+# Generate list of library visible symbols
+xa_symbols: $(TOP)/src/gallium/state_trackers/xa/libxatracker.o
+ $(NM) $< | $(GREP) ' T ' | $(AWK) '{print $$3}' > $@
# Make the library
-$(TOP)/$(LIB_DIR)/gallium/$(XA_LIB_NAME): depend $(OBJECTS) $(XA_LIB_DEPS)
+$(TOP)/$(LIB_DIR)/gallium/$(XA_LIB_NAME): depend $(OBJECTS) $(XA_LIB_DEPS) \
+ xa_symbols
$(MKLIB) -o $(XA_LIB) -linker $(LD) -ldflags '$(LDFLAGS)' \
-major $(XA_MAJOR) -minor $(XA_MINOR) -patch $(XA_TINY) \
$(MKLIB_OPTIONS) \
- -exports $(TOP)/src/gallium/state_trackers/xa/xa_symbols\
+ -exports xa_symbols \
-install $(TOP)/$(LIB_DIR)/gallium \
$(OBJECTS) $(XA_LIB_DEPS) $(GALLIUM_AUXILIARIES)
@@ -91,7 +95,7 @@ clean:
-rm -f *.la
-rm -f *.pc
-rm -rf .libs
- -rm -f depend depend.bak exptmp
+ -rm -f depend depend.bak exptmp xa_symbols
depend: $(SOURCES)