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