Home | History | Annotate | Line # | Download | only in samba4
Makefile revision 1.1.1.2.6.1
      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.2.6.1  pgoyette # Copyright 1998-2016 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.2.6.1  pgoyette 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.2      tron LDAP_LIB = $(LDAP_BUILD)/libraries/libldap_r/libldap_r.la \
     19      1.1.1.2      tron 	$(LDAP_BUILD)/libraries/liblber/liblber.la
     20      1.1.1.2      tron 
     21      1.1.1.2      tron LIBTOOL = $(LDAP_BUILD)/libtool
     22      1.1.1.2      tron CC = gcc
     23      1.1.1.2      tron OPT = -g -O2 -Wall
     24      1.1.1.2      tron DEFS = -DSLAPD_OVER_RDNVAL=SLAPD_MOD_DYNAMIC \
     25      1.1.1.2      tron 	-DSLAPD_OVER_PGUID=SLAPD_MOD_DYNAMIC \
     26      1.1.1.2      tron 	-DSLAPD_OVER_VERNUM=SLAPD_MOD_DYNAMIC
     27      1.1.1.2      tron INCS = $(LDAP_INC)
     28      1.1.1.2      tron LIBS = $(LDAP_LIB)
     29          1.1      adam 
     30      1.1.1.2      tron PROGRAMS = pguid.la rdnval.la vernum.la
     31      1.1.1.2      tron 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.2      tron .SUFFIXES: .c .o .lo
     42          1.1      adam 
     43      1.1.1.2      tron .c.lo:
     44      1.1.1.2      tron 	$(LIBTOOL) --mode=compile $(CC) $(OPT) $(DEFS) $(INCS) -c $<
     45          1.1      adam 
     46      1.1.1.2      tron all: $(PROGRAMS)
     47          1.1      adam 
     48      1.1.1.2      tron pguid.la: pguid.lo
     49      1.1.1.2      tron 	$(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.2      tron rdnval.la: rdnval.lo
     53      1.1.1.2      tron 	$(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.2      tron vernum.la: vernum.lo
     57      1.1.1.2      tron 	$(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.2      tron 	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