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