DEADSOFTWARE

* -> old; Trurl-based -> new
[bbcp.git] / new / _OpenBSD_ / Lin / Rsrc / loader / Makefile
1 # This is BSD Makefile
2 # BSD GNU
3 # ${.TARGET} $@
4 # ${.ALLSRC} $^
5 # ${.IMPSRC} $<
7 CFLAGS += -Wall -O0 -g
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
17 #BlackBox: BlackBox.c
18 # ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -L. -lBB -pthread
20 BlackBox: BlackBox-dl.c
21 ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -pthread
23 #dev0: BlackBox1.c
24 # ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -L . -lBB0
26 dev0: dev0.c
27 ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC}
29 libdlobsdwrap.so: libdlobsdwrap.c
30 ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -fPIC -shared
32 clean:
33 rm -f dev0 BlackBox libdlobsdwrap.so