blob: 32a937530bd661021b32102f520ad96413053822 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
NULL =
INCLUDES= \
-I. \
$(NSS_CFLAGS) \
$(PCSC_CFLAGS) \
$(USE_PASSTHRU) \
$(NULL)
lib_LTLIBRARIES = libcacard.la
libcacard_la_LIBADD = \
$(NSS_LIBS) \
$(PCSC_LIBS) \
$(NULL)
libcacard_la_SOURCES= \
cac.c \
card_7816.c \
event.c \
passthru.c \
vcard_emul_nss.c \
vcard_emul_type.c \
vcard.c \
vreader.c \
$(NULL)
libcacardincludedir = $(includedir)/cacard
libcacardinclude_HEADERS = \
vcard.h \
vcardt.h \
card_7816.h \
card_7816t.h \
vreader.h \
vreadert.h \
vevent.h \
eventt.h \
vcard_emul.h \
vcard_emul_type.h \
vscard_common.h \
cac.h \
mutex.h \
passthru.h \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcacard.pc
#OBJS = ${SOURCES:.c=.o}
bin_PROGRAMS = vscclient
vscclient_SOURCES = \
vscclient.c \
$(NULL)
vscclient_LDADD = \
$(top_builddir)/libcacard.la \
$(NULL)
doclean:
rm -f $(OBJS) link_test __htest.c __test.o vscclient
#
# Test targets....
#
# make sure our includes are self supporting
header_test:
@for i in $(INCLUDE) ; do \
echo "#include \"$$i\"" > __htest.c ;\
echo "#include \"$$i\"" >> __htest.c ;\
cat __htest.c ; \
cc -c __htest.c ;\
done
@rm __htest.c __htest.o
# make sure we don't have any missing symbols
link_test: link_test.c $(OBJS)
cc -o link_test link_test.c $(OBJS) $(LDFLAGS)
# Do all the tests at once
tests: all link_test header_test
|