add otptest

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1014 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 07:10:29 +00:00
parent 3bc9024850
commit 2e7e0ff21d

View File

@@ -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)