]> git.sur5r.net Git - openldap/blob - libraries/liblunicode/Makefile.in
Sync with HEAD
[openldap] / libraries / liblunicode / Makefile.in
1 # Makefile.in for LDAP -llunicode
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2003 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15
16 LIBRARY = liblunicode.a
17
18 XXDIR = $(srcdir)/*/
19 XXHEADERS = ucdata.h ure.h
20
21 XXSRCS  = ucdata.c ucgendat.c ure.c urestubs.c
22 SRCS    = ucstr.c
23 OBJS    = ucdata.o ure.o urestubs.o ucstr.o
24
25 XLIB = $(LIBRARY)
26 XLIBS = $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
27 PROGRAMS = ucgendat
28
29 LDAP_INCDIR= ../../include       
30 LDAP_LIBDIR= ../../libraries
31
32 ucgendat: $(XLIBS) ucgendat.o
33         $(LTLINK) -o $@ ucgendat.o $(LIBS)
34         ./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
35
36 DATFILES = case.dat cmbcl.dat comp.dat ctype.dat decomp.dat num.dat kdecomp.dat
37
38 install-local: $(PROGRAMS) FORCE
39         -$(MKDIR) $(DESTDIR)$(datadir)/ucdata
40         @for i in $(DATFILES); do \
41                 echo $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
42                 $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
43         done
44
45 .links :
46         @for i in $(XXSRCS) $(XXHEADERS); do \
47                 $(RM) $$i ; \
48                 $(LN_S) $(XXDIR)$$i . ; \
49         done
50         touch .links
51
52 $(XXSRCS) : .links
53
54 clean-local: FORCE
55         @$(RM) *.dat .links $(XXHEADERS)
56
57 depend-common: .links