1 1.1 lukem # $OpenLDAP: pkg/ldap/contrib/slapd-modules/proxyOld/Makefile,v 1.1 2006/03/30 06:22:39 hyc Exp $ 2 1.1 lukem # Copyright 2005 Howard Chu, Symas Corp. All Rights Reserved. 3 1.1 lukem # 4 1.1 lukem # Redistribution and use in source and binary forms, with or without 5 1.1 lukem # modification, are permitted only as authorized by the OpenLDAP 6 1.1 lukem # Public License. 7 1.1 lukem # 8 1.1 lukem # A copy of this license is available in the file LICENSE in the 9 1.1 lukem # top-level directory of the distribution or, alternatively, at 10 1.1 lukem # <http://www.OpenLDAP.org/license.html>. 11 1.1 lukem # 12 1.1 lukem LIBTOOL=../../../libtool 13 1.1 lukem ROOT=../../../../.. 14 1.1 lukem rundir=$(LIB) 15 1.1 lukem instdir=$(LIB)/openldap 16 1.1 lukem CFLAGS=-g -O2 17 1.1 lukem CC=$(C_CC) 18 1.1 lukem INSTALL=../../../build/shtool install -c 19 1.1 lukem LTVER=1:0:0 20 1.1 lukem 21 1.1 lukem INCS=-I../../../include -I../../../servers/slapd -I ../../../../../opt/symas/include 22 1.1 lukem 23 1.1 lukem LIBS=../../../libraries/libldap_r/libldap_r.la ../../../libraries/liblber/liblber.la 24 1.1 lukem 25 1.1 lukem all: proxyOld.la 26 1.1 lukem 27 1.1 lukem proxyOld.lo: proxyOld.c 28 1.1 lukem $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(DEFS) $(INCS) -c $? 29 1.1 lukem 30 1.1 lukem proxyOld.la: proxyOld.lo 31 1.1 lukem $(LIBTOOL) --mode=link $(CC) $(OPT) $(LDFLAGS) -version-info $(LTVER) \ 32 1.1 lukem -rpath $(rundir) -module -o $@ $? $(LIBS) $(LIBEXTRAS) 33 1.1 lukem 34 1.1 lukem install: 35 1.1 lukem -mkdir $(DESTDIR)$(instdir) 36 1.1 lukem $(LIBTOOL) --mode=install $(INSTALL) -m 644 proxyOld.la $(DESTDIR)$(instdir) 37 1.1 lukem 38 1.1 lukem clean: 39 1.1 lukem rm -rf *.o *.lo *.la .libs .libt 40 1.1 lukem 41 1.1 lukem veryclean: clean 42