File: Makefile

package info (click to toggle)
libdbi-drivers 0.9.0-13
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,160 kB
  • sloc: ansic: 19,030; sh: 10,963; xml: 2,759; makefile: 584
file content (18 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: test_dl all-libs/stamp
	./test_dl G all-libs
	./test_dl N all-libs

libtest_dbi_lib.so:
	gcc test_dbi_lib.c -export-dynamic -shared -Wl,-soname,libtest_dbi_lib.so -o libtest_dbi_lib.so -ldbi -fPIC

test_dl: libtest_dbi_lib.so
	gcc test_dl.c -o test_dl -ldl

all-libs/stamp:
	rm -rf all-libs
	mkdir -p all-libs 
	olddir=`pwd` && cd ../.. && rootdir=`pwd` && for f in `find drivers -name 'libdbd*.so'` ; do  ln -vs $$rootdir/$$f $$olddir/all-libs ; done

clean:
	rm -f test_dl libtest_dbi_lib.so
	rm -rf all-libs