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+ mapfile-cirrus_drv-external \
98N/A+ mapfile-cirrus_alpine-external \
98N/A+ mapfile-cirrus_laguna-external
98N/A+BUILT_SOURCES = $(MAPFILES)
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+cirrus_alpine_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
1333N/A+ -lfb -lint10 -lpciaccess -lshadowfb -lvgahw
98N/A+cirrus_laguna_la_LDFLAGS += \
98N/A+ -Wl,-M,mapfile-cirrus_drv-external \
98N/A+mapfiles: $(MAPFILES)
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+mapfile-%-external:
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' >> $@