Files
ldap2dns/Makefile
Ben Klang dcad728f39 Preparing for ldap2dns-0.3.6
+ Fixed bug with duplicate OIDs in dns.schema from partially applied patch
+ Renamed schema file to ldap2dns.schema
+ Updated RPM specfile (UNTESTED, may need editing)
+ Removed already merged patchfiles
+ Restructured file layout, created doc directory
+ Deprecated unfinished webadmin work.  Will be replaced with Beatnik
+ Deprecated OpenLDAP 2.0 schema support
+ Deprecated djbdns-1.0.5 native LDAP patch (status of patch unknown)
+ Removed old index.html
+ Removed TODO.schema
+ Updated Makefile



git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@124 06cd67b6-e706-0410-b29e-9de616bca6e9
2005-12-05 02:39:30 +00:00

65 lines
1.5 KiB
Makefile

# $Id: Makefile,v 1.30 2003/01/20 14:33:25 jrief Exp $
VERSION=0.3.6
RELEASE=1
CC=gcc -O2
CCDEBUG=gcc -g
CFLAGS=$(INC) -DVERSION='"$(VERSION)"'
LIBS=-lldap -llber
LD=gcc
LDFLAGS=
INSTALL_PREFIX=
PREFIXDIR=$(INSTALL_PREFIX)/usr
LDAPCONFDIR=$(INSTALL_PREFIX)/etc/openldap
SPECFILE=ldap2dns.spec
RPMSRCDIR=/usr/src/packages/SOURCES
# For Red Hat use
# make RPMSRCDIR=/usr/src/redhat/SOURCES rpm
all: ldap2dns ldap2dnsd
debug: ldap2dns-dbg
ldap2dns: ldap2dns.o $(LIBS)
$(LD) $(LDFLAGS) -o $@ $+
ldap2dnsd: ldap2dns
ln -f ldap2dns ldap2dnsd
ldap2dns-dbg: ldap2dns.o-dbg $(LIBS)
$(LD) $(LDFLAGS) -o $@ $+
ldap2dns.o: ldap2dns.c
$(CC) $(CFLAGS) -c $< -o $@
ldap2dns.o-dbg: ldap2dns.c
$(CCDEBUG) $(CFLAGS) -c $< -o $@
install: all
mkdir -p $(PREFIXDIR)/bin
mkdir -p $(LDAPCONFDIR)/schema
install -s -o root -g root -m 755 ldap2dns $(PREFIXDIR)/bin/
ln -f $(PREFIXDIR)/bin/ldap2dns $(PREFIXDIR)/bin/ldap2dnsd
install -o root -g root -m 755 ldap2tinydns-conf $(PREFIXDIR)/bin/
install -o root -g root -m 644 ldap2dns.schema $(LDAPCONFDIR)/schema/
clean:
rm -f *.o *.o-dbg ldap2dns ldap2dnsd data* *.db core $(SPECFILE)
tar: clean
cd ..; \
mv ldap2dns ldap2dns-$(VERSION); \
tar --exclude .svn -czf ldap2dns-$(VERSION).tar.gz ldap2dns-$(VERSION); \
mv ldap2dns-$(VERSION) ldap2dns; \
cd ldap2dns
$(SPECFILE): Specfile
sed -e 's#%VERSION%#$(VERSION)#g' \
-e 's#%RELEASE%#$(RELEASE)#g' \
< $< > $@
rpm: tar $(SPECFILE)
mv ../ldap2dns-$(VERSION).tar.gz $(RPMSRCDIR)
rpmbuild -ba $(SPECFILE)