~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to lib/tevent/tevent.mk

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
TEVENT_SOBASE = libtevent.$(SHLIBEXT)
 
2
TEVENT_SONAME = $(TEVENT_SOBASE).0
 
3
TEVENT_SOLIB = $(TEVENT_SOBASE).$(PACKAGE_VERSION)
 
4
TEVENT_STLIB = libtevent.a
 
5
 
 
6
$(TEVENT_STLIB): $(TEVENT_OBJ)
 
7
        ar -rv $(TEVENT_STLIB) $(TEVENT_OBJ)
 
8
 
 
9
$(TEVENT_SOBASE): $(TEVENT_SOLIB)
 
10
        ln -fs $< $@
 
11
 
 
12
$(TEVENT_SONAME): $(TEVENT_SOLIB)
 
13
        ln -fs $< $@
 
14
 
 
15
dirs::
 
16
        @mkdir -p lib
 
17
 
 
18
installdirs::
 
19
        mkdir -p $(DESTDIR)$(includedir)
 
20
        mkdir -p $(DESTDIR)$(libdir)
 
21
        mkdir -p $(DESTDIR)$(libdir)/pkgconfig
 
22
 
 
23
installheaders:: installdirs
 
24
        cp $(srcdir)/tevent.h $(DESTDIR)$(includedir)
 
25
 
 
26
installlibs:: installdirs
 
27
        cp tevent.pc $(DESTDIR)$(libdir)/pkgconfig
 
28
        cp $(TEVENT_STLIB) $(TEVENT_SOLIB) $(DESTDIR)$(libdir)
 
29
 
 
30
install:: all installdirs installheaders installlibs $(PYTHON_INSTALL_TARGET)
 
31
 
 
32
clean::
 
33
        rm -f $(TEVENT_SOBASE) $(TEVENT_SONAME) $(TEVENT_SOLIB) $(TEVENT_STLIB)
 
34
        rm -f tevent.pc