summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/md4/Makefile.in
blob: 3fbe4869082d8fcfd2ec45a29153dd023ba99ba2 (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
# -I$(srcdir) is needed to pull in $(srcdir)/rsa-md4.h for ./t_mddriver.c.
CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../des -I"$(srcdir)"

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

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

OBJS=	md4.$(OBJEXT) md4glue.$(OBJEXT) md4crypto.$(OBJEXT)

SRCS=	$(srcdir)/md4.c $(srcdir)/md4glue.c $(srcdir)/md4crypto.c

all:: all-$(WHAT) $(OBJS)

all-unix:: shared
all-mac:: shared
all-windows::

shared:
	mkdir shared

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

t_mddriver.exe:
	$(CP) $(srcdir)\..\md5\t_mddriver.c t_mddriver.c
	$(CC) -DMD=4 $(CFLAGS2) -o t_mddriver t_mddriver.c md4.c
	$(RM) md4.obj

check:: t_mddriver$(EXEEXT)
	$(C)t_mddriver$(EXEEXT) -x

clean:: clean-$(WHAT)
	$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT) t_mddriver.c

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