9 all: libdlobsdwrap.so dev0 BlackBox
11 # libdlobsdwrap.so: universal method of correct access to dl* functions
12 # in case of dynamic loading of libBB*.so "ld.so" in LibDl may be used instead of "libc.so", but not in case of static linking
13 # wrapper method is universal
15 # -pthread required to dlopen libraries that depends on pthread
18 # ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -L. -lBB -pthread
20 BlackBox
: BlackBox-dl.c
21 ${CC} ${CFLAGS} -o
${.TARGET
} ${.ALLSRC
} -pthread
24 # ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -L . -lBB0
27 ${CC} ${CFLAGS} -o
${.TARGET
} ${.ALLSRC
}
29 libdlobsdwrap.so
: libdlobsdwrap.c
30 ${CC} ${CFLAGS} -o
${.TARGET
} ${.ALLSRC
} -fPIC
-shared
33 rm -f dev0 BlackBox libdlobsdwrap.so