summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/md4/Makefile.in
blob: ba212a73aca0828024a93912cb8c7f04fc8c82db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
thisconfigdir=./..
myfulldir=lib/crypto/md4
mydir=md4
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
CFLAGS = $(CCOPTS) $(DEFS)  -I$(srcdir)

##DOS##BUILDTOP = ..\..\..
##DOS##PREFIXDIR=md4
##DOS##OBJFILE=..\$(OUTPRE)md4.lst
##WIN16##LIBNAME=..\crypto.lib

PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)

RUN_SETUP = @KRB5_RUN_ENV@ KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf

STLIBOBJS= md4.o

OBJS= $(OUTPRE)md4.$(OBJEXT) 

SRCS= $(srcdir)/md4.c

##DOS##LIBOBJS = $(OBJS)

all-unix:: all-libobjs

includes:: depend

depend:: $(SRCS)

t_mddriver.c: $(srcdir)/../md5/t_mddriver.c
	$(CP) $(srcdir)/../md5/t_mddriver.c t_mddriver.c

t_mddriver.o: t_mddriver.c
	$(CC) -DMD=4 $(CFLAGS) -c  t_mddriver.c

t_mddriver: t_mddriver.o md4.o
	$(CC) $(CFLAGS) -o t_mddriver t_mddriver.o md4.o

$(OUTPRE)t_mddriver.obj: t_mddriver.c
	$(CC) -DMD=4 $(CFLAGS) -Fo$@ -c $**

$(OUTPRE)t_mddriver.exe: $(OUTPRE)t_mddriver.obj $(OUTPRE)md4.obj
	link -out:$@ $**

check-unix:: t_mddriver
	$(RUN_SETUP) $(C)t_mddriver -x

check-windows:: $(OUTPRE)t_mddriver.exe
	$(OUTPRE)$(C)t_mddriver.exe -x

clean:: 
	$(RM) $(OUTPRE)t_mddriver$(EXEEXT) $(OUTPRE)t_mddriver.$(OBJEXT) t_mddriver.c

clean-unix:: clean-libobjs