forked from Lainports/freebsd-ports
29 lines
1.3 KiB
Text
29 lines
1.3 KiB
Text
--- Makefile.orig 2012-05-14 21:32:53.000000000 -0400
|
|
+++ Makefile 2014-08-26 11:26:55.000000000 -0400
|
|
@@ -26,8 +26,6 @@
|
|
echo ' -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT') \
|
|
-fvisibility=hidden $(CFLAGS)
|
|
DEF_LDFLAGS := $(shell [ `uname` = SunOS ] && echo ' -mimpure-text') $(LDFLAGS)
|
|
-LDL_LDFLAGS := $(shell $(CC) -shared -ldl -xc -o /dev/null /dev/null \
|
|
- >/dev/null 2>&1 && echo ' -ldl')
|
|
|
|
all: google-authenticator pam_google_authenticator.so demo \
|
|
pam_google_authenticator_unittest
|
|
@@ -70,14 +68,14 @@
|
|
libpam-google-authenticator-*-source.tar.bz2
|
|
|
|
google-authenticator: google-authenticator.o base32.o hmac.o sha1.o
|
|
- $(CC) -g $(DEF_LDFLAGS) -o $@ $+ $(LDL_LDFLAGS)
|
|
+ $(CC) -g $(DEF_LDFLAGS) -o $@ $+
|
|
|
|
demo: demo.o pam_google_authenticator_demo.o base32.o hmac.o sha1.o
|
|
- $(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+ $(LDL_LDFLAGS)
|
|
+ $(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+
|
|
|
|
pam_google_authenticator_unittest: pam_google_authenticator_unittest.o \
|
|
base32.o hmac.o sha1.o
|
|
- $(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+ -lc $(LDL_LDFLAGS)
|
|
+ $(CC) -g $(DEF_LDFLAGS) -rdynamic -o $@ $+ -lc
|
|
|
|
pam_google_authenticator.so: base32.o hmac.o sha1.o
|
|
pam_google_authenticator_testing.so: base32.o hmac.o sha1.o
|