1 # Makefile.in for LDAP -llunicode 2 # $OpenLDAP$ 3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>. 4 ## 5 ## Copyright 1998-2024 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)/ucdata/ 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_LIBLUTIL_A) $(LDAP_LIBLBER_LA) 27 #PROGRAMS = ucgendat 28 29 LDAP_INCDIR= ../../include 30 LDAP_LIBDIR= ../../libraries 31 32 uctable.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 38 ucgendat: $(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 51 clean-local: FORCE 52 @$(RM) *.dat .links $(XXHEADERS) ucgendat 53 54 depend-common: .links 55