Home | History | Annotate | Line # | Download | only in samba4
Makefile revision 1.1.1.8
      1  1.1.1.2      tron # $OpenLDAP$
      2      1.1      adam # This work is part of OpenLDAP Software <http://www.openldap.org/>.
      3      1.1      adam #
      4  1.1.1.8  christos # Copyright 1998-2024 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.2      tron LDAP_SRC = ../../..
     16  1.1.1.3  christos LDAP_BUILD = $(LDAP_SRC)
     17  1.1.1.2      tron LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
     18  1.1.1.7  christos LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \
     19  1.1.1.2      tron 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     20  1.1.1.2      tron 
     21  1.1.1.8  christos PLAT = UNIX
     22  1.1.1.8  christos NT_LIB = -L$(LDAP_BUILD)/servers/slapd -lslapd
     23  1.1.1.8  christos NT_LDFLAGS = -no-undefined -avoid-version
     24  1.1.1.8  christos UNIX_LDFLAGS = -version-info $(LTVER)
     25  1.1.1.8  christos 
     26  1.1.1.2      tron LIBTOOL = $(LDAP_BUILD)/libtool
     27  1.1.1.2      tron CC = gcc
     28  1.1.1.7  christos OPT = -g -O2
     29  1.1.1.2      tron DEFS = -DSLAPD_OVER_RDNVAL=SLAPD_MOD_DYNAMIC \
     30  1.1.1.2      tron 	-DSLAPD_OVER_PGUID=SLAPD_MOD_DYNAMIC \
     31  1.1.1.2      tron 	-DSLAPD_OVER_VERNUM=SLAPD_MOD_DYNAMIC
     32  1.1.1.2      tron INCS = $(LDAP_INC)
     33  1.1.1.8  christos LIBS = $($(PLAT)_LIB) $(LDAP_LIB)
     34  1.1.1.8  christos LD_FLAGS = $(LDFLAGS) $($(PLAT)_LDFLAGS) -rpath $(moduledir) -module
     35      1.1      adam 
     36  1.1.1.2      tron PROGRAMS = pguid.la rdnval.la vernum.la
     37  1.1.1.2      tron LTVER = 0:0:0
     38      1.1      adam 
     39      1.1      adam prefix=/usr/local
     40      1.1      adam exec_prefix=$(prefix)
     41      1.1      adam ldap_subdir=/openldap
     42      1.1      adam 
     43      1.1      adam libdir=$(exec_prefix)/lib
     44      1.1      adam libexecdir=$(exec_prefix)/libexec
     45      1.1      adam moduledir = $(libexecdir)$(ldap_subdir)
     46      1.1      adam 
     47  1.1.1.2      tron .SUFFIXES: .c .o .lo
     48      1.1      adam 
     49  1.1.1.2      tron .c.lo:
     50  1.1.1.7  christos 	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(OPT) $(CPPFLAGS) $(DEFS) $(INCS) -c $<
     51      1.1      adam 
     52  1.1.1.2      tron all: $(PROGRAMS)
     53      1.1      adam 
     54  1.1.1.2      tron pguid.la: pguid.lo
     55  1.1.1.8  christos 	$(LIBTOOL) --mode=link $(CC) $(LD_FLAGS) -o $@ $? $(LIBS)
     56      1.1      adam 
     57  1.1.1.2      tron rdnval.la: rdnval.lo
     58  1.1.1.8  christos 	$(LIBTOOL) --mode=link $(CC) $(LD_FLAGS) -o $@ $? $(LIBS)
     59      1.1      adam 
     60  1.1.1.2      tron vernum.la: vernum.lo
     61  1.1.1.8  christos 	$(LIBTOOL) --mode=link $(CC) $(LD_FLAGS) -o $@ $? $(LIBS)
     62      1.1      adam 
     63      1.1      adam clean:
     64  1.1.1.2      tron 	rm -rf *.o *.lo *.la .libs
     65      1.1      adam 
     66      1.1      adam install: $(PROGRAMS)
     67      1.1      adam 	mkdir -p $(DESTDIR)$(moduledir)
     68      1.1      adam 	for p in $(PROGRAMS) ; do \
     69      1.1      adam 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     70      1.1      adam 	done
     71      1.1      adam 
     72