Home | History | Annotate | Line # | Download | only in samba4
Makefile revision 1.1.1.1.12.1
      1  1.1.1.1.12.1   tls # $OpenLDAP$
      2           1.1  adam # This work is part of OpenLDAP Software <http://www.openldap.org/>.
      3           1.1  adam #
      4  1.1.1.1.12.1   tls # Copyright 1998-2014 The OpenLDAP Foundation.
      5           1.1  adam # Copyright 2004 Howard Chu, Symas Corp. All Rights Reserved.
      6           1.1  adam #
      7           1.1  adam # Redistribution and use in source and binary forms, with or without
      8           1.1  adam # modification, are permitted only as authorized by the OpenLDAP
      9           1.1  adam # Public License.
     10           1.1  adam #
     11           1.1  adam # A copy of this license is available in the file LICENSE in the
     12           1.1  adam # top-level directory of the distribution or, alternatively, at
     13           1.1  adam # <http://www.OpenLDAP.org/license.html>.
     14           1.1  adam 
     15  1.1.1.1.12.1   tls LDAP_SRC = ../../..
     16  1.1.1.1.12.1   tls LDAP_BUILD = ../../..
     17  1.1.1.1.12.1   tls LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
     18  1.1.1.1.12.1   tls LDAP_LIB = $(LDAP_BUILD)/libraries/libldap_r/libldap_r.la \
     19  1.1.1.1.12.1   tls 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     20  1.1.1.1.12.1   tls 
     21  1.1.1.1.12.1   tls LIBTOOL = $(LDAP_BUILD)/libtool
     22  1.1.1.1.12.1   tls CC = gcc
     23  1.1.1.1.12.1   tls OPT = -g -O2 -Wall
     24  1.1.1.1.12.1   tls DEFS = -DSLAPD_OVER_RDNVAL=SLAPD_MOD_DYNAMIC \
     25  1.1.1.1.12.1   tls 	-DSLAPD_OVER_PGUID=SLAPD_MOD_DYNAMIC \
     26  1.1.1.1.12.1   tls 	-DSLAPD_OVER_VERNUM=SLAPD_MOD_DYNAMIC
     27  1.1.1.1.12.1   tls INCS = $(LDAP_INC)
     28  1.1.1.1.12.1   tls LIBS = $(LDAP_LIB)
     29           1.1  adam 
     30  1.1.1.1.12.1   tls PROGRAMS = pguid.la rdnval.la vernum.la
     31  1.1.1.1.12.1   tls LTVER = 0:0:0
     32           1.1  adam 
     33           1.1  adam prefix=/usr/local
     34           1.1  adam exec_prefix=$(prefix)
     35           1.1  adam ldap_subdir=/openldap
     36           1.1  adam 
     37           1.1  adam libdir=$(exec_prefix)/lib
     38           1.1  adam libexecdir=$(exec_prefix)/libexec
     39           1.1  adam moduledir = $(libexecdir)$(ldap_subdir)
     40           1.1  adam 
     41  1.1.1.1.12.1   tls .SUFFIXES: .c .o .lo
     42           1.1  adam 
     43  1.1.1.1.12.1   tls .c.lo:
     44  1.1.1.1.12.1   tls 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
     45           1.1  adam 
     46  1.1.1.1.12.1   tls all: $(PROGRAMS)
     47           1.1  adam 
     48  1.1.1.1.12.1   tls pguid.la: pguid.lo
     49  1.1.1.1.12.1   tls 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
     50           1.1  adam 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     51           1.1  adam 
     52  1.1.1.1.12.1   tls rdnval.la: rdnval.lo
     53  1.1.1.1.12.1   tls 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
     54           1.1  adam 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     55           1.1  adam 
     56  1.1.1.1.12.1   tls vernum.la: vernum.lo
     57  1.1.1.1.12.1   tls 	$(LIBTOOL) --mode=link $(CC) $(OPT) -version-info $(LTVER) \
     58           1.1  adam 	-rpath $(moduledir) -module -o $@ $? $(LIBS)
     59           1.1  adam 
     60           1.1  adam clean:
     61  1.1.1.1.12.1   tls 	rm -rf *.o *.lo *.la .libs
     62           1.1  adam 
     63           1.1  adam install: $(PROGRAMS)
     64           1.1  adam 	mkdir -p $(DESTDIR)$(moduledir)
     65           1.1  adam 	for p in $(PROGRAMS) ; do \
     66           1.1  adam 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     67           1.1  adam 	done
     68           1.1  adam 
     69