freebsd-dev/contrib/ntp/librsaref/Makefile.am

61 lines
1.3 KiB
Makefile
Raw Normal View History

1999-12-09 13:01:21 +00:00
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
#AUTOMAKE_OPTIONS = ../util/ansi2knr
noinst_LIBRARIES = @MAKE_LIBRSAREF@
EXTRA_LIBRARIES = librsaref.a
CLEANFILES = $(EXTRA_LIBRARIES)
# NOTES:
# don't use RSAREF's global.h - we use ours.
2001-08-29 14:35:15 +00:00
nodist_librsaref_a_SOURCES = \
1999-12-09 13:01:21 +00:00
desc.c \
md2c.c \
md5c.c \
nn.c \
prime.c \
r_dh.c \
r_encode.c \
r_enhanc.c \
r_keygen.c \
r_random.c \
r_stdlib.c \
rsa.c \
2001-08-29 14:35:15 +00:00
des.h \
md2.h \
md5.h \
nn.h \
prime.h \
r_random.h \
1999-12-09 13:01:21 +00:00
rsa.h \
2001-08-29 14:35:15 +00:00
rsaref.h @RSASRCS@
1999-12-09 13:01:21 +00:00
2001-08-29 14:35:15 +00:00
librsaref_a_LIBADD = @RSAOBJS@
librsaref_a_DEPENDENCIES = $(librsaref_a_LIBADD)
BUILT_SOURCES = $(nodist_librsaref_a_SOURCES)
1999-12-09 13:01:21 +00:00
INCLUDES = -I$(top_srcdir)/include
ETAGS_ARGS = Makefile.am
2001-08-29 14:35:15 +00:00
DISTCLEANFILES = $(nodist_librsaref_a_SOURCES) stamp-rsaref
1999-12-09 13:01:21 +00:00
#EXTRA_DIST =
2001-08-29 14:35:15 +00:00
$(nodist_librsaref_a_SOURCES): stamp-rsaref
stamp-rsaref:
@rm -f stamp-rsaref stamp-rsarefT
@echo timestamp > stamp-rsarefT 2> /dev/null
for i in $(nodist_librsaref_a_SOURCES); do \
1999-12-09 13:01:21 +00:00
case "@MAKE_LIBRSAREF@" in \
'') touch $$i ;; \
2001-08-29 14:35:15 +00:00
*) case "$$i" in \
*.h) r_dst=$(srcdir)/$$i ;; \
*) r_dst=$$i ;; \
esac ; \
cmp -s $${r_dst} $(srcdir)/../@RSADIR@/source/$$i 2>/dev/null \
|| cp $(srcdir)/../@RSADIR@/source/$$i $${r_dst} ;; \
1999-12-09 13:01:21 +00:00
esac ; \
done
2001-08-29 14:35:15 +00:00
@echo timestamp > stamp-rsarefT 2> /dev/null
@mv stamp-rsarefT stamp-rsaref