CFLAGS = $(CCOPTS) $(DEFS)

##DOSBUILDTOP = ..\..\..
##DOSLIBNAME=..\crypto.lib
##DOS!include $(BUILDTOP)\config\windows.in

LIBOBJS = @LIBOBJS@

.c.o:
	$(CC) $(CFLAGS) -c $(srcdir)/$*.c
@SHARED_RULE@

OBJS=	rnd_confoun.$(OBJEXT) c_localaddr.$(OBJEXT) c_ustime.$(OBJEXT) $(LIBOBJS)

SRCS=	rnd_confoun.c c_localaddr.c c_ustime.c

all:: all-$(WHAT)

all-unix:: shared $(OBJS)

all-mac:: $(OBJS)

all-windows: rnd_confoun.obj

shared:
	mkdir shared
	
memmove.c: $(SRCTOP)$(S)lib$(S)krb5$(S)posix$(S)memmove.c
	-$(LN) $(SRCTOP)$(S)lib$(S)krb5$(S)posix$(S)memmove.c $@

memmove.o: memmove.c
	$(CC) $(CFLAGS) -c $*.c
@SHARED_RULE_LOCAL@
	

clean:: clean-$(WHAT)
	$(RM) memmove.c

clean-unix::
	$(RM) shared/*
clean-mac::
	$(RM) shared/*
clean-windows::
