24 lines
763 B
Diff
24 lines
763 B
Diff
|
--- Makefile
|
||
|
+++ Makefile
|
||
|
@@ -17,9 +17,9 @@ TARGETS=otpw-gen demologin pam_otpw.so pam_otpw.8.gz otpw-gen.1.gz
|
||
|
all: $(TARGETS)
|
||
|
|
||
|
otpw-gen: otpw-gen.o rmd160.o md.o otpw.o
|
||
|
- $(CC) -o $@ $+
|
||
|
+ $(CC) -o $@ $+ $(LDFLAGS)
|
||
|
demologin: demologin.o otpw.o rmd160.o md.o
|
||
|
- $(CC) -o $@ $+ -lcrypt
|
||
|
+ $(CC) -o $@ $+ -lcrypt $(LDFLAGS)
|
||
|
|
||
|
otpw-gen.o: otpw-gen.c md.h otpw.h
|
||
|
otpw.o: otpw.c otpw.h md.h
|
||
|
@@ -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
|
||
|
+ $(CC) -shared -o $@ $+ -lcrypt -lpam -lpam_misc $(LDFLAGS)
|
||
|
|
||
|
distribution:
|
||
|
git archive --prefix otpw-$(VERSION)/ -o otpw-$(VERSION).tar.gz v$(VERSION)
|