Home | History | Annotate | Line # | Download | only in dsaschema
      1      1.1      tron # $OpenLDAP$
      2      1.1      tron 
      3      1.1      tron LDAP_SRC = ../../..
      4  1.1.1.2  christos LDAP_BUILD = $(LDAP_SRC)
      5      1.1      tron LDAP_INC = -I$(LDAP_BUILD)/include -I$(LDAP_SRC)/include -I$(LDAP_SRC)/servers/slapd
      6  1.1.1.3  christos LDAP_LIB = $(LDAP_BUILD)/libraries/libldap/libldap.la \
      7      1.1      tron 	$(LDAP_BUILD)/libraries/liblber/liblber.la
      8      1.1      tron 
      9  1.1.1.4  christos PLAT = UNIX
     10  1.1.1.4  christos NT_LIB = -L$(LDAP_BUILD)/servers/slapd -lslapd
     11  1.1.1.4  christos NT_LDFLAGS = -no-undefined -avoid-version
     12  1.1.1.4  christos UNIX_LDFLAGS = -version-info $(LTVER)
     13  1.1.1.4  christos 
     14      1.1      tron LIBTOOL = $(LDAP_BUILD)/libtool
     15      1.1      tron CC = gcc
     16  1.1.1.3  christos OPT = -g -O2
     17      1.1      tron DEFS = 
     18      1.1      tron INCS = $(LDAP_INC)
     19  1.1.1.4  christos LIBS = $($(PLAT)_LIB) $(LDAP_LIB)
     20  1.1.1.4  christos LD_FLAGS = $(LDFLAGS) $($(PLAT)_LDFLAGS) -rpath $(moduledir) -module
     21      1.1      tron 
     22      1.1      tron PROGRAMS = dsaschema.la
     23      1.1      tron LTVER = 0:0:0
     24      1.1      tron 
     25      1.1      tron prefix=/usr/local
     26      1.1      tron exec_prefix=$(prefix)
     27      1.1      tron ldap_subdir=/openldap
     28      1.1      tron 
     29      1.1      tron libdir=$(exec_prefix)/lib
     30      1.1      tron libexecdir=$(exec_prefix)/libexec
     31      1.1      tron moduledir = $(libexecdir)$(ldap_subdir)
     32      1.1      tron 
     33      1.1      tron .SUFFIXES: .c .o .lo
     34      1.1      tron 
     35      1.1      tron .c.lo:
     36  1.1.1.3  christos 	$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(OPT) $(CPPFLAGS) $(DEFS) $(INCS) -c $<
     37      1.1      tron 
     38      1.1      tron all: $(PROGRAMS)
     39      1.1      tron 
     40      1.1      tron dsaschema.la: dsaschema.lo
     41  1.1.1.4  christos 	$(LIBTOOL) --mode=link $(CC) $(LD_FLAGS) -o $@ $? $(LIBS)
     42      1.1      tron 
     43      1.1      tron clean:
     44      1.1      tron 	rm -rf *.o *.lo *.la .libs
     45      1.1      tron 
     46      1.1      tron install: $(PROGRAMS)
     47      1.1      tron 	mkdir -p $(DESTDIR)$(moduledir)
     48      1.1      tron 	for p in $(PROGRAMS) ; do \
     49      1.1      tron 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
     50      1.1      tron 	done
     51      1.1      tron 
     52