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