1# Makefile.in for LDAP -llunicode
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2021 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
16LIBRARY = liblunicode.a
17
18XXDIR = $(srcdir)/ucdata/
19XXHEADERS = ucdata.h ure.h uctable.h
20
21XXSRCS	= ucdata.c ucgendat.c ure.c urestubs.c
22SRCS	= ucstr.c
23OBJS	= ucdata.o ure.o urestubs.o ucstr.o
24
25XLIB = $(LIBRARY)
26XLIBS = $(LDAP_LIBLUTIL_A) $(LDAP_LIBLBER_LA)
27#PROGRAMS = ucgendat
28
29LDAP_INCDIR= ../../include       
30LDAP_LIBDIR= ../../libraries
31
32uctable.h: $(XXDIR)/uctable.h
33
34$(XXDIR)/uctable.h: $(XXDIR)/ucgendat.c $(srcdir)/UnicodeData.txt $(srcdir)/CompositionExclusions.txt
35	$(MAKE) ucgendat
36	./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
37
38ucgendat: $(XLIBS) ucgendat.o
39	$(LTLINK) -o $@ ucgendat.o $(LIBS)
40
41.links :
42	@for i in $(XXSRCS) $(XXHEADERS); do \
43		$(RM) $$i ; \
44		ii=`find $(srcdir) -name $$i` ; \
45		$(LN_S) $$ii . ; \
46	done
47	touch .links
48
49$(XXSRCS) $(XXHEADERS) : .links
50
51clean-local: FORCE
52	@$(RM) *.dat .links $(XXHEADERS) ucgendat
53
54depend-common: .links
55