diff --git a/lib/otp/Makefile.in b/lib/otp/Makefile.in index 2889e7f68..a40f7f8a3 100644 --- a/lib/otp/Makefile.in +++ b/lib/otp/Makefile.in @@ -28,6 +28,7 @@ LIBEXT = @LIBEXT@ SHLIBEXT = @SHLIBEXT@ SHARED = @SHARED@ LIB = $(LIBNAME).$(LIBEXT) +PROGS = otptest SOURCES = otp.c otp_challenge.c otp_db.c otp_md.c \ otp_parse.c otp_print.c otp_verify.c @@ -35,7 +36,7 @@ SOURCES = otp.c otp_challenge.c otp_db.c otp_md.c \ OBJECTS = otp.o otp_challenge.o otp_db.o otp_md.o \ otp_parse.o otp_print.o otp_verify.o -all: $(LIB) +all: $(LIB) $(PROGS) Wall: make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__" @@ -52,10 +53,11 @@ uninstall: TAGS: $(SOURCES) etags $(SOURCES) -check: +check: otptest + ./otptest clean: - rm -f $(LIB) *.o *.a + rm -f $(LIB) $(PROGS) *.o *.a mostlyclean: clean @@ -65,6 +67,9 @@ distclean: clean realclean: distclean rm -f TAGS +otptest: otptest.o all + $(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ otptest.o -L. -lotp -L../des -ldes + $(LIBNAME).a: $(OBJECTS) rm -f $@ $(AR) cr $@ $(OBJECTS)