blob: 82263d17b77f99f3063cc04ca32cdc83b5364296 (
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
|
CFLAGS = $(CCOPTS) $(DEFS) -I$(srcdir)/../des
##DOSBUILDTOP = ..\..\..
##DOSMYNAME=md5
##DOSOBJFILE=..\md5.lst
##WIN16##LIBNAME=..\crypto.lib
RUN_SETUP = @KRB5_RUN_ENV@
.c.o:
$(CC) $(CFLAGS) -c $(srcdir)/$*.c
@SHARED_RULE@
OBJS= md5.$(OBJEXT) md5glue.$(OBJEXT) md5crypto.$(OBJEXT)
SRCS= $(srcdir)/md5.c $(srcdir)/md5glue.c $(srcdir)/md5crypto.c
all-unix:: shared $(OBJS)
all-mac:: shared $(OBJS)
all-windows:: $(OBJFILE)
##DOS$(OBJFILE): $(OBJS)
##DOS $(RM) $(OBJFILE)
##WIN16## $(CP) nul: $(OBJFILE)
##WIN32## $(LIBECHO) -p $(MYNAME)\ *.obj > $(OBJFILE)
shared:
mkdir shared
t_mddriver: t_mddriver.o md5.o
$(CC) $(CFLAGS) $(LDFLAGS) -o t_mddriver t_mddriver.o md5.o
t_mddriver.exe:
$(CC) $(CFLAGS2) -o t_mddriver.exe t_mddriver.c md5.c
t_cksum: t_cksum.o $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a
$(CC) $(CFLAGS) -o t_cksum t_cksum.o $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(LIBS)
check-unix:: t_mddriver t_cksum
$(RUN_SETUP) $(C)t_mddriver -x
$(RUN_SETUP) $(C)t_cksum "this is a test"
check-windows:: t_mddriver$(EXEEXT)
$(C)t_mddriver$(EXEEXT) -x
clean::
$(RM) t_mddriver$(EXEEXT) t_mddriver.$(OBJEXT)
$(RM) t_cksum$(EXEEXT) t_cksum.$(OBJEXT)
clean-unix::
$(RM) shared/*
clean-mac::
$(RM) shared/*
clean-windows::
$(RM) $(OBJFILE)
|