summaryrefslogtreecommitdiff
path: root/net/tinyldap/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/tinyldap/files/patch-Makefile')
-rw-r--r--net/tinyldap/files/patch-Makefile35
1 files changed, 16 insertions, 19 deletions
diff --git a/net/tinyldap/files/patch-Makefile b/net/tinyldap/files/patch-Makefile
index dfee68d63f23..1eaa3166519f 100644
--- a/net/tinyldap/files/patch-Makefile
+++ b/net/tinyldap/files/patch-Makefile
@@ -1,19 +1,22 @@
---- Makefile.orig 2008-04-25 13:09:33.000000000 +0200
-+++ Makefile 2009-11-22 22:24:42.000000000 +0100
-@@ -35,22 +35,26 @@
-
- auth.a: auth.o
+--- Makefile.orig 2017-03-19 11:47:19 UTC
++++ Makefile
+@@ -43,20 +43,23 @@ tls_cipherprio.o fmt_tls_alert_pkt.o fmt
+ fmt_tls_handshake_certs_header.o fmt_tls_serverhellodone.o \
+ tls_accept.o tls_connect.o tls_doread.o tls_dowrite.o
-DIET=/opt/diet/bin/diet -Os
--CC=gcc
+DIET=
-+CC?=gcc
- CFLAGS=-pipe -I. -Wall -W -Wextra
+ CROSS=
+ #CROSS=i686-mingw32-
+-CC=$(CROSS)gcc
+-CFLAGS=-pipe -I. -Wall -W -Wextra
++CC?=$(CROSS)gcc
++CFLAGS?=-pipe -I. -Wall -W -Wextra
ifneq ($(DEBUG),)
-DIET=/opt/diet/bin/diet
--CFLAGS=-pipe -I. -Wall -W -g -fstack-protector
+-CFLAGS=-pipe -I. -Wall -W -Wextra -g -fstack-protector
+DIET=
-+CFLAGS?=-pipe -I. -Wall -W -g -fstack-protector
++CFLAGS?=-pipe -I. -Wall -W -Wextra -g -fstack-protector
endif
ifeq ($(COVERAGE),1)
DIET=
@@ -23,22 +26,16 @@
+CFLAGS+=-I. -I${LOCALBASE}/include/libowfat -Os
+LDFLAGS+=-L${LOCALBASE}/lib
-+LIBS+=-lmd
+
ifneq ($(DIET),)
LIBS+=-llatin1
else
--LIBS+=-lcrypto -lcrypt
-+LIBS+=-lcrypt
- endif
-
- %.o: %.c
-@@ -79,7 +83,7 @@
+@@ -97,7 +100,7 @@ tinyldap_debug: tinyldap.c
$(DIET) $(CC) $(CFLAGS) -DSTANDALONE -DDEBUG -o $@ $^ $(LDFLAGS) -lowfat $(LIBS)
acl: acl.c ldap.a asn1.a
- $(DIET) $(CC) $(CFLAGS) -o acl acl.c -I. ldap.a asn1.a -lowfat $(LIBS)
+ $(DIET) $(CC) $(CFLAGS) -o acl acl.c -I. ldap.a asn1.a $(LDFLAGS) -lowfat $(LIBS)
-
- .PHONY: clean tar
+ .PHONY: test
+ test: test/bind test/ebind