summaryrefslogtreecommitdiffstats
path: root/contrib/dlz/modules/filesystem/Makefile
blob: fd87ee89b245f19408887ea28b558a93c77f1d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
prefix = /usr
libdir = $(prefix)/lib/bind9

CFLAGS=-fPIC -g -I../include

all: dlz_filesystem_dynamic.so

dir.o: dir.c
	$(CC) $(CFLAGS) -c dir.c

dlz_filesystem_dynamic.so: dlz_filesystem_dynamic.c dir.o
	$(CC) $(CFLAGS) -shared -o dlz_filesystem_dynamic.so \
		dlz_filesystem_dynamic.c dir.o

clean:
	rm -f dlz_filesystem_dynamic.so *.o

install: dlz_filesystem_dynamic.so
	mkdir -p $(DESTDIR)$(libdir)
	install dlz_filesystem_dynamic.so $(DESTDIR)$(libdir)