1# LIBLBER 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 = liblber.la 17 18NT_SRCS = nt_err.c 19NT_OBJS = nt_err.lo 20 21UNIX_SRCS = stdio.c 22UNIX_OBJS = stdio.lo 23 24LIB_DEFS = -DLBER_LIBRARY 25 26SRCS= assert.c decode.c encode.c io.c bprint.c debug.c \ 27 memory.c options.c sockbuf.c $(@PLAT@_SRCS) 28OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo \ 29 memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS) 30XSRCS= version.c 31 32PROGRAMS= dtest etest idtest 33 34LDAP_INCDIR= ../../include 35LDAP_LIBDIR= ../../libraries 36 37XLIBS = $(LIBRARY) $(LDAP_LIBLUTIL_A) 38XXLIBS = 39NT_LINK_LIBS = $(AC_LIBS) 40UNIX_LINK_LIBS = $(AC_LIBS) 41ifneq (,$(OL_VERSIONED_SYMBOLS)) 42 SYMBOL_VERSION_FLAGS=$(OL_VERSIONED_SYMBOLS)$(LDAP_LIBDIR)/liblber/liblber.vers 43endif 44 45dtest: $(XLIBS) dtest.o 46 $(LTLINK) -o $@ dtest.o $(LIBS) 47etest: $(XLIBS) etest.o 48 $(LTLINK) -o $@ etest.o $(LIBS) 49idtest: $(XLIBS) idtest.o 50 $(LTLINK) -o $@ idtest.o $(LIBS) 51 52install-local: FORCE 53 -$(MKDIR) $(DESTDIR)$(libdir) 54 $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir) 55 $(LTFINISH) $(DESTDIR)$(libdir) 56 57