From: Kurt Zeilenga Date: Mon, 14 Dec 1998 23:24:33 +0000 (+0000) Subject: Generalize the web_ldap Makefile a bit. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~927 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=add79ef969c6226233b86b9541b0f56ff261dfa2;p=openldap Generalize the web_ldap Makefile a bit. --- diff --git a/contrib/web_ldap/Makefile b/contrib/web_ldap/Makefile index 900c133a72..b2d1fcce86 100644 --- a/contrib/web_ldap/Makefile +++ b/contrib/web_ldap/Makefile @@ -1,28 +1,28 @@ # # This file used under Irix (SGI) - please modify for your needs # -CC = cc -signed + +#CC = cc -signed #For Optimization -CFLAGS= -O2 +CFLAGS= -O2 $(CPPFLAGS) + #For debugging -#CFLAGS= -g +#CFLAGS= -g $(CPPFLAGS) + +PREFIX=../.. +# PREFIX=/usr/local + +CPPFLAGS= -I$(PREFIX)/include +LDFLAGS= -L$(PREFIX)/libraries + +# CC = cc $(CFLAGS) $(CPPFLAGS) # # Create Executables # web_ldap: web_ldap.o util.o - $(CC) -o web_ldap web_ldap.o util.o \ - libldap.a liblber.a + $(CC) -o web_ldap web_ldap.o util.o $(LDFLAGS) -lldap -llber -# -# Create Objects -# -web_ldap.o: web_ldap.c - $(CC) -c web_ldap.c - -util.o: util.c - $(CC) -c util.c -# -# all done -# +clean: + rm -f *.o a.out core web_ldap