]> git.sur5r.net Git - openldap/blob - libraries/liblunicode/Makefile.in
fix ITS#3499 (may need further testing)
[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-2005 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 uctable.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 uctable.h: ucgendat.c $(srcdir)/UnicodeData.txt $(srcdir)/CompositionExclusions.txt
33         $(MAKE) ucgendat
34         ./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
35
36 ucgendat: $(XLIBS) ucgendat.o
37         $(LTLINK) -o $@ ucgendat.o $(LIBS)
38
39 .links :
40         @for i in $(XXSRCS) $(XXHEADERS); do \
41                 $(RM) $$i ; \
42                 $(LN_S) $(XXDIR)$$i . ; \
43         done
44         touch .links
45
46 $(XXSRCS) : .links
47
48 clean-local: FORCE
49         @$(RM) *.dat .links $(XXHEADERS) ucgendat
50
51 depend-common: .links