add otptest
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1014 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained 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)
|
||||
|
Reference in New Issue
Block a user