Files
heimdal/lib/otp/Makefile.in
Assar Westerlund effeb39350 must link otptest with $LIBS in case the dbm-stuff is hiding there.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1041 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-18 00:55:05 +00:00

94 lines
1.7 KiB
Makefile

#
# $Id$
#
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
AR = ar
RANLIB = @RANLIB@
DEFS = @DEFS@
CFLAGS = @CFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
prefix = @prefix@
exec_prefix = $(prefix)
libdir = $(exec_prefix)/lib
PICFLAGS = @PICFLAGS@
LIBNAME = libotp
LIBEXT = @LIBEXT@
SHLIBEXT = @SHLIBEXT@
SHARED = @SHARED@
LIB = $(LIBNAME).$(LIBEXT)
PROGS = otptest
LIB_SOURCES = otp.c otp_challenge.c otp_db.c otp_md.c \
otp_parse.c otp_print.c otp_verify.c
OTPTEST_SOURCES = otptest.c
SOURCES = $(LIB_SOURCES) $(OTPTEST_SOURCES)
LIB_OBJECTS = otp.o otp_challenge.o otp_db.o otp_md.o \
otp_parse.o otp_print.o otp_verify.o
OTPTEST_OBJECTS = otptest.o
OBJECTS = $(LIB_OBJECTS) $(OTPTEST_OBJECTS)
all: $(LIB) $(PROGS)
Wall:
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) -I../.. -I../../include -I$(srcdir) -I$(srcdir)/../des $(CFLAGS) $(PICFLAGS) $<
install: all
$(MKINSTALLDIRS) $(libdir)
$(INSTALL) -m 0555 $(LIB) $(libdir)
uninstall:
TAGS: $(SOURCES)
etags $(SOURCES)
check: otptest
./otptest
clean:
rm -f $(LIB) $(PROGS) *.o *.a
mostlyclean: clean
distclean: clean
rm -f Makefile *~
realclean: distclean
rm -f TAGS
otptest: $(OTPTEST_OBJECTS)
$(CC) $(LD_FLAGS) $(LDFLAGS) -o $@ $(OTPTEST_OBJECTS) -L. -lotp -L../des -ldes $(LIBS)
$(LIBNAME).a: $(LIB_OBJECTS)
rm -f $@
$(AR) cr $@ $(LIB_OBJECTS)
-$(RANLIB) $@
$(LIBNAME).$(SHLIBEXT): $(LIB_OBJECTS)
rm -f $@
$(CC) $(CFLAGS) $(PICFLAGS) $(SHARED) -o $@ $(LIB_OBJECTS)
$(OBJECTS): ../../config.h
.PHONY: all install uninstall check clean mostlyclean distclean realclean