SRCS= $(srcdir)/crc.c $(srcdir)/crctest.c
-all:: shared $(OBJS)
+all:: all-$(WHAT) $(OBJS)
+
+all-unix:: shared
+all-mac:: shared
+all-windows::
shared:
mkdir shared
check:: crctest$(EXEEXT)
$(C)crctest$(EXEEXT) < $(srcdir)$(S)crc-test
-clean::
+clean:: clean-$(WHAT)
$(RM) crctest$(EXEEXT) crctest.$(OBJEXT)
+
+clean-unix::
+ $(RM) shared/*
+clean-mac::
$(RM) shared/*
+clean-windows::
$(srcdir)/weak_key.c \
$(OTHERSRCS)
-all:: shared $(OBJS)
+all:: all-$(WHAT) $(OBJS)
+
+all-unix:: shared
+all-mac:: shared
+all-windows::
shared:
mkdir shared
check-windows::
-clean::
+clean:: clean-$(what)
$(RM) destest$(EXEEXT) verify$(EXEEXT) destest.$(OBJEXT) verify.$(OBJEXT)
+
+clean-unix::
+ $(RM) shared/*
+clean-mac::
$(RM) shared/*
+clean-windows::
SRCS= $(srcdir)/md4.c $(srcdir)/md4glue.c $(srcdir)/md4crypto.c
-all:: shared $(OBJS)
+all:: all-$(WHAT) $(OBJS)
+
+all-unix:: shared
+all-mac:: shared
+all-windows::
shared:
mkdir shared
check:: t_mddriver$(EXEEXT)
$(C)t_mddriver$(EXEEXT) -x
-clean::
+clean:: clean-$(WHAT)
$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT) t_mddriver.c
+
+clean-unix::
+ $(RM) shared/*
+clean-mac::
$(RM) shared/*
+clean-windows::
SRCS= $(srcdir)/md5.c $(srcdir)/md5glue.c $(srcdir)/md5crypto.c
-all:: shared $(OBJS)
+all:: all-$(WHAT) $(OBJS)
+
+all-unix:: shared
+all-mac:: shared
+all-windows::
shared:
mkdir shared
check:: t_mddriver$(EXEEXT)
$(C)t_mddriver$(EXEEXT) -x
-clean::
+clean:: clean-$(WHAT)
$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT)
+
+clean-unix::
+ $(RM) shared/*
+clean-mac::
$(RM) shared/*
+clean-windows::
@SHARED_RULE_LOCAL@
-clean::
+clean:: clean-$(WHAT)
$(RM) ustime.c localaddr.c memmove.c
+
+clean-unix::
+ $(RM) shared/*
+clean-mac::
$(RM) shared/*
+clean-windows::