sbsigntools/Makefile.am
Jeremy Kerr b05afccde0 tests: Add a few simple tests
Add a few tests for the sign, verify, attach and detach code. These
require some additional infrastructure to create a sample PE/COFF
executable, plus a key & cert for testing.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
2012-06-13 14:23:26 +08:00

32 lines
930 B
Makefile

AM_CFLAGS = -Wall -Wextra
bin_PROGRAMS = sbsign sbverify sbattach
coff_headers = coff/external.h coff/pe.h coff/i386.h coff/x86_64.h
common_SOURCES = idc.c idc.h image.c image.h $(coff_headers)
common_LDADD = lib/ccan/libccan.a $(libcrypto_LIBS)
common_CFLAGS = -I$(srcdir)/lib/ccan/
sbsign_SOURCES = sbsign.c $(common_SOURCES)
sbsign_LDADD = $(common_LDADD)
sbsign_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
sbverify_SOURCES = sbverify.c $(common_SOURCES)
sbverify_LDADD = $(common_LDADD)
sbverify_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
sbattach_SOURCES = sbattach.c $(common_SOURCES)
sbattach_LDADD = $(common_LDADD)
sbattach_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
man1_MANS = docs/sbsign.1 docs/sbverify.1
EXTRA_DIST = docs/sbsign.1.in docs/sbverify.1.in
$(top_builddir)/docs/%.1: $(srcdir)/docs/%.1.in $(top_builddir)/%
$(MKDIR_P) $(@D)
$(HELP2MAN) --no-info -i $< -o $@ $(top_builddir)/$*
SUBDIRS = lib/ccan . tests