3 # Copyright (C) 2000-2018 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
6 # Make the stupid bacula.def file so that we don't have to do it
9 # Kern Sibbald, June 2007
12 TOPDIR=`(cd ../../..;pwd)`
13 TOPDIR=${DEPKGS:-${TOPDIR}}
14 NM=x86_64-w64-mingw32-nm
16 echo "LIBRARY bacula.dll"
21 # remove "static" objects before running
22 rm -f parse_conf.* res.*
24 for i in `ls *.o | grep -v -e parse_conf.o -e res.o`; do \
26 ${NM} $i | grep -e "^[0-9a-f]* T _" -e "^[0-9a-f]* T b_reg" -e "^[0-9a-f]* T fnmatch" | cut -c20- ; \
30 DATA="console_command b_plugin_list plugin_bopen plugin_bclose plugin_bwrite plugin_bread plugin_blseek exepath version dist_name"
32 for i in ${DATA}; do \