chiark / gitweb /
Fix typo in changelog entry for 1.6.1
[adns.git] / dynamic / Makefile.in
1 # dynamic/Makefile - dynamic library Makefile
2
3 #  This file is part of adns, which is Copyright Ian Jackson
4 #  and contributors (see the file INSTALL for full details).
5 #  
6 #  This program is free software; you can redistribute it and/or modify
7 #  it under the terms of the GNU General Public License as published by
8 #  the Free Software Foundation; either version 3, or (at your option)
9 #  any later version.
10 #  
11 #  This program is distributed in the hope that it will be useful,
12 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #  GNU General Public License for more details.
15 #  
16 #  You should have received a copy of the GNU General Public License
17 #  along with this program; if not, write to the Free Software Foundation.
18
19 srcdir=         @srcdir@
20 VPATH=          @srcdir@
21
22 TARGETS=        $(SHLIBFILE) $(SHLIBSONAME) $(SHLIBFORLINK)
23 include         ../settings.make
24 include         $(srcdir)/../src/adns.make
25
26 ALLOBJS=        $(addsuffix _p.o, $(basename $(LIBOBJS)))
27
28 install:
29                 mkdir -p $(libdir)
30                 $(INSTALL_PROGRAM) $(SHLIBFILE) $(DESTDIR)$(libdir)/$(SHLIBFILE)
31                 ln -sf $(SHLIBFILE) $(DESTDIR)$(libdir)/$(SHLIBSONAME)
32                 ln -sf $(SHLIBSONAME) $(DESTDIR)$(libdir)/$(SHLIBFORLINK)
33
34 uninstall:
35                 rm -f $(libdir)/$(SHLIBFILE) $(libdir)/$(SHLIBSONAME)
36
37 $(SHLIBFORLINK):
38                 ln -s $(SHLIBSONAME) $(SHLIBFORLINK)
39
40 $(SHLIBSONAME):
41                 ln -s $(SHLIBFILE) $(SHLIBSONAME)
42
43 $(SHLIBFILE):   $(ALLOBJS)
44                 rm -f $@
45                 $(MKSHLIB_1) $@ $(MKSHLIB_2) $(ALLOBJS) $(LDLIBS) $(MKSHLIB_3)
46
47 %_p.o:          $(srcdir)/../src/%.c $(srcdir)/../src/adns.h \
48                         $(srcdir)/../src/internal.h ../src/config.h
49                 $(SHLIBCC) -I. -I../src -I$(srcdir)/../src -c -o $@ $<
50
51 $(LIBOBJS):