shithub: tlsclient

Download patch

ref: fa44984c54e82f0ae24ca23c9d04bcaccffff73f
parent: 673bb2f19f13a189a9cc8924ebe3c06b56c4cc3b
author: Jacob Moody <moody@posixcafe.org>
date: Tue Jul 5 22:13:26 EDT 2022

compat with bsd make and clang

--- a/Make.config
+++ b/Make.config
@@ -1,6 +1,6 @@
 AR=ar
 RANLIB=ranlib
-CFLAGS=-Wno-deprecated-declarations -Wall -Wno-missing-braces -Wno-parentheses -ggdb -I$(ROOT) -I$(ROOT)/include -c -D_THREAD_SAFE -O2 -fPIC
+CFLAGS=-Wall -Wno-missing-braces -Wno-parentheses -ggdb -I$(ROOT) -I$(ROOT)/include -c -D_THREAD_SAFE -O2 -fPIC
 O=o
 PREFIX ?= /usr
 
--- a/Makefile
+++ b/Makefile
@@ -12,16 +12,19 @@
 default: tlsclient
 
 tlsclient: cpu.$O $(LIBS)
-	$(CC) `pkg-config $(OPENSSL) --libs` -o $@ $^
+	$(CC) `pkg-config $(OPENSSL) --libs` -o $@ cpu.$O $(LIBS)
 
 login_-dp9ik: bsd.$O $(LIBS)
-	$(CC) -o $@ $^
+	$(CC) -o $@ bsd.$O $(LIBS)
 
 pam_p9.so: pam.$O $(LIBS)
-	$(CC) -shared -o $@ $^
+	$(CC) -shared -o $@ pam.$O $(LIBS)
 
-%.$O: %.c
+cpu.$O: cpu.c
 	$(CC) `pkg-config $(OPENSSL) --cflags` $(CFLAGS) $< -o $@
+
+%.$O: %.c
+	$(CC) $(CFLAGS) $< -o $@
 
 libauthsrv/libauthsrv.a:
 	(cd libauthsrv; $(MAKE))