1634N/A--- src/Makefile.am Fri Jan 8 13:37:38 2016
1634N/A+++ src/Makefile.am Fri Jan 8 13:45:10 2016
1634N/A@@ -64,3 +64,41 @@
98N/A lg_xaa.c \
98N/A lg_xaa.h
1634N/A endif
98N/A+
98N/A+
98N/A+# Generate linker mapfiles for symbols found in other modules and use them
98N/A+# and library flag additions to make sure all symbols are resolvable
98N/A+
98N/A+MAPFILES = \
98N/A+ mapfile-cirrus_drv-external \
98N/A+ mapfile-cirrus_alpine-external \
98N/A+ mapfile-cirrus_laguna-external
98N/A+
98N/A+BUILT_SOURCES = $(MAPFILES)
98N/A+
98N/A+cirrus_drv_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_alpine-external \
98N/A+ -Wl,-M,mapfile-cirrus_laguna-external \
965N/A+ -lpciaccess -lvgahw -lvbe
98N/A+
98N/A+cirrus_alpine_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
1333N/A+ -lfb -lint10 -lpciaccess -lshadowfb -lvgahw
98N/A+
98N/A+cirrus_laguna_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
1333N/A+ -lfb -lint10 -lvgahw
98N/A+
98N/A+mapfiles: $(MAPFILES)
98N/A+
98N/A+mapfile-cirrus_drv-external: $(cirrus_drv_la_OBJECTS)
98N/A+mapfile-cirrus_alpine-external: $(cirrus_alpine_la_OBJECTS)
98N/A+mapfile-cirrus_laguna-external: $(cirrus_laguna_la_OBJECTS)
98N/A+
98N/A+mapfile-%-external:
98N/A+ -rm -f $@
98N/A+ printf '# Functions exported to loadable modules\n\n' > $@
98N/A+ printf '{\n global:\n' >> $@
98N/A+ /usr/ccs/bin/nm -g $? | grep -v UNDEF | sed -n -e 's/^.*\|FUNC \|GLOB \|.*\|\(.*\)$$/ \1 = FUNCTION extern;/p' -e 's/^.*\|OBJT \|GLOB \|.*\|\(.*\)$$/ \1 = DATA extern;/p' >> $@
98N/A+ printf '};\n' >> $@
98N/A+