Removed references to LDAP when USE_LDAP is undefined
[tpg/opendispense2.git] / src / cokebank_basic / Makefile
index 6aa55df..7a0d815 100644 (file)
@@ -6,6 +6,11 @@ CPPFLAGS :=
 CFLAGS := -Wall -Werror -g -fPIC
 LDFLAGS := -shared -Wl,-soname,cokebank.so
 
+ifneq ($(USE_LDAP),)
+       CFLAGS += -DUSE_LDAP
+       LDFLAGS += -lldap
+endif
+
 .PHONY: all clean
 
 all:   $(BIN)

UCC git Repository :: git.ucc.asn.au