summaryrefslogtreecommitdiffstats
path: root/src/tests/asn.1/Makefile.in
blob: 0b4157abf1faa6a57d9be2bf22ed45fa4c706d4e (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
CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDES)
LDFLAGS = -g

COMERRLIB=$(BUILDTOP)/util/et/libcom_err.a
DBMLIB=

all:: krb5_encode_test krb5_decode_test

KLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)
DEPKLIB = $(TOPLIBD)/libkrb5.a $(TOPLIBD)/libcrypto.a $(COMERRLIB) $(DBMLIB)

LOCALINCLUDES = -I$(srcdir)/../../lib/krb5/asn.1

ENCOBJS = krb5_encode_test.o ktest.o ktest_equal.o utility.o trval.o

krb5_encode_test: $(ENCOBJS) $(DEPKLIB) 
	$(LD) $(CFLAGS) -o krb5_encode_test $(ENCOBJS) $(LIBS) $(KLIB)

DECOBJS = krb5_decode_test.o ktest.o ktest_equal.o utility.o

krb5_decode_test: $(DECOBJS) $(DEPKLIB)
	$(LD) $(CFLAGS) -o krb5_decode_test $(DECOBJS) $(LIBS) $(KLIB)

check:: krb5_decode_test krb5_encode_test
	./krb5_decode_test
	$(RM) test.out
	./krb5_encode_test > test.out
	cmp test.out $(srcdir)/reference_encode.out
	./krb5_encode_test -t > test.out
	cmp test.out $(srcdir)/trval_reference.out
	$(RM) test.out	

install::

clean::
	rm -f *~ *.o krb5_encode_test krb5_decode_test test.out


################ Dependencies ################
krb5_decode_test.o: ktest.h utility.h ktest_equal.h debug.h
krb5_encode_test.o: utility.h ktest.h debug.h
ktest.o: ktest.h utility.h
ktest_equal.o: ktest_equal.h
#utility.o: utility.h
#utility.h: krbasn1.h asn1buf.h
##############################################