mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
list being stolen and race for the last digit attacks. WWW: https://www.cl.cam.ac.uk/~mgk25/otpw.html
26 lines
692 B
Text
26 lines
692 B
Text
--- Makefile.orig 2014-08-07 19:21:15 UTC
|
|
+++ Makefile
|
|
@@ -7,12 +7,12 @@
|
|
VERSION=1.5
|
|
|
|
CC=gcc
|
|
-CFLAGS=-O -ggdb -W -Wall -Wno-unused-result -fPIC
|
|
+CFLAGS+=-fPIC
|
|
|
|
%.gz: %
|
|
gzip -9c $< >$@
|
|
|
|
-TARGETS=otpw-gen demologin pam_otpw.so pam_otpw.8.gz otpw-gen.1.gz
|
|
+TARGETS=otpw-gen pam_otpw.so pam_otpw.8.gz otpw-gen.1.gz
|
|
|
|
all: $(TARGETS)
|
|
|
|
@@ -28,7 +28,7 @@ rmd160.o: rmd160.c rmd160.h
|
|
otpw-l.o: otpw-l.c otpw.c otpw.h md.h
|
|
pam_otpw.o: pam_otpw.c otpw.h md.h
|
|
pam_otpw.so: pam_otpw.o otpw-l.o rmd160.o md.o
|
|
- ld --shared -o $@ $+ -lcrypt -lpam -lpam_misc
|
|
+ ${LD} --shared -o $@ $+ -lcrypt -lpam
|
|
|
|
distribution:
|
|
git archive --prefix otpw-$(VERSION)/ -o otpw-$(VERSION).tar.gz v$(VERSION)
|