2 libdir = $(prefix)/lib
/bind9
4 CFLAGS
=-fPIC
-g
-I..
/include
6 all: dlz_wildcard_dynamic.so
8 dlz_dbi.o
: ..
/common
/dlz_dbi.c
9 $(CC
) $(CFLAGS
) -c ..
/common
/dlz_dbi.c
11 dlz_wildcard_dynamic.so
: dlz_wildcard_dynamic.c dlz_dbi.o
12 $(CC
) $(CFLAGS
) -shared
-o dlz_wildcard_dynamic.so \
13 dlz_wildcard_dynamic.c dlz_dbi.o
16 rm -f dlz_wildcard_dynamic.so
*.o
18 install: dlz_wildcard_dynamic.so
19 mkdir
-p
$(DESTDIR
)$(libdir)
20 install dlz_wildcard_dynamic.so
$(DESTDIR
)$(libdir)