2012-05-24 07:14:28 +00:00
|
|
|
|
2012-07-31 01:34:37 +00:00
|
|
|
AM_CFLAGS = -Wall -Wextra --std=gnu99
|
2012-06-11 07:56:30 +00:00
|
|
|
|
2012-07-31 01:34:37 +00:00
|
|
|
bin_PROGRAMS = sbsign sbverify sbattach sbvarsign
|
2012-05-24 07:14:28 +00:00
|
|
|
|
|
|
|
coff_headers = coff/external.h coff/pe.h coff/i386.h coff/x86_64.h
|
|
|
|
|
2012-08-03 02:36:38 +00:00
|
|
|
common_SOURCES = idc.c idc.h image.c image.h fileio.c fileio.h $(coff_headers)
|
2012-05-24 07:14:28 +00:00
|
|
|
common_LDADD = lib/ccan/libccan.a $(libcrypto_LIBS)
|
|
|
|
common_CFLAGS = -I$(srcdir)/lib/ccan/
|
|
|
|
|
|
|
|
sbsign_SOURCES = sbsign.c $(common_SOURCES)
|
|
|
|
sbsign_LDADD = $(common_LDADD)
|
2012-06-11 07:56:30 +00:00
|
|
|
sbsign_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
|
2012-05-24 07:14:28 +00:00
|
|
|
|
|
|
|
sbverify_SOURCES = sbverify.c $(common_SOURCES)
|
|
|
|
sbverify_LDADD = $(common_LDADD)
|
2012-06-11 07:56:30 +00:00
|
|
|
sbverify_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
|
2012-05-24 07:14:28 +00:00
|
|
|
|
2012-06-12 08:56:15 +00:00
|
|
|
sbattach_SOURCES = sbattach.c $(common_SOURCES)
|
|
|
|
sbattach_LDADD = $(common_LDADD)
|
|
|
|
sbattach_CFLAGS = $(AM_CFLAGS) $(common_CFLAGS)
|
|
|
|
|
2012-08-03 02:36:38 +00:00
|
|
|
sbvarsign_SOURCES = sbvarsign.c $(common_SOURCES)
|
2012-07-31 01:34:37 +00:00
|
|
|
sbvarsign_LDADD = $(common_LDADD) $(uuid_LIBS)
|
|
|
|
sbvarsign_CPPFLAGS = $(EFI_CPPFLAGS)
|
|
|
|
sbvarsign_CFLAGS = $(AM_CFLAGS) $(uuid_CFLAGS) $(common_CFLAGS)
|
|
|
|
|
|
|
|
|
2012-06-13 06:28:57 +00:00
|
|
|
man1_MANS = docs/sbsign.1 docs/sbverify.1 docs/sbattach.1
|
2012-05-24 07:14:28 +00:00
|
|
|
|
2012-06-13 06:28:57 +00:00
|
|
|
EXTRA_DIST = docs/sbsign.1.in docs/sbverify.1.in docs/sbattach.1.in
|
2012-06-13 06:26:08 +00:00
|
|
|
CLEANFILES = $(man1_MANS)
|
2012-05-24 07:14:28 +00:00
|
|
|
|
2012-06-11 06:37:33 +00:00
|
|
|
$(top_builddir)/docs/%.1: $(srcdir)/docs/%.1.in $(top_builddir)/%
|
2012-05-24 07:14:28 +00:00
|
|
|
$(MKDIR_P) $(@D)
|
2012-06-11 06:37:33 +00:00
|
|
|
$(HELP2MAN) --no-info -i $< -o $@ $(top_builddir)/$*
|
2012-05-24 07:14:28 +00:00
|
|
|
|
2012-06-13 06:23:26 +00:00
|
|
|
SUBDIRS = lib/ccan . tests
|