include $(top_srcdir)/config/include-Makefile.am EXTRA_DIST = README.fdisk README.cfdisk sfdisk.examples partitiontype.c fdisk_common = i386_sys_types.c common.h gpt.c gpt.h \ $(top_srcdir)/lib/blkdev.c $(top_srcdir)/lib/wholedisk.c \ $(top_srcdir)/lib/mbsalign.c if LINUX fdisk_common += $(top_srcdir)/lib/linux_version.c endif if !ARCH_M68K sbin_PROGRAMS = fdisk dist_man_MANS = fdisk.8 fdisk_SOURCES = fdisk.c fdiskbsdlabel.c fdisksgilabel.c \ fdisksunlabel.c fdiskaixlabel.c fdiskmaclabel.c partname.c \ fdisk.h fdisksunlabel.h fdisksgilabel.h fdiskaixlabel.h \ fdiskbsdlabel.h fdiskmaclabel.h $(fdisk_common) \ $(top_srcdir)/lib/canonicalize.c cflags_blkid = $(AM_CFLAGS) ldadd_blkid = if BUILD_LIBBLKID # only in-tree libblkid has topology support ldadd_blkid += $(ul_libblkid_la) cflags_blkid += -I$(ul_libblkid_incdir) endif if HAVE_STATIC_FDISK sbin_PROGRAMS += fdisk.static fdisk_static_SOURCES = $(fdisk_SOURCES) fdisk_static_LDFLAGS = -all-static fdisk_static_CFLAGS = $(cflags_blkid) fdisk_static_LDADD = $(ldadd_blkid) endif fdisk_CFLAGS = $(cflags_blkid) fdisk_LDADD = $(ldadd_blkid) if !ARCH_SPARC sbin_PROGRAMS += sfdisk dist_man_MANS += sfdisk.8 sfdisk_SOURCES = sfdisk.c partname.c $(fdisk_common) \ $(top_srcdir)/lib/canonicalize.c if HAVE_STATIC_SFDISK sbin_PROGRAMS += sfdisk.static sfdisk_static_SOURCES = $(sfdisk_SOURCES) sfdisk_static_LDFLAGS = -all-static endif if USE_SLANG sbin_PROGRAMS += cfdisk dist_man_MANS += cfdisk.8 cfdisk_SOURCES = cfdisk.c $(fdisk_common) cfdisk_CFLAGS = $(cflags_blkid) cfdisk_LDADD = -lslang $(ldadd_blkid) else if HAVE_NCURSES sbin_PROGRAMS += cfdisk dist_man_MANS += cfdisk.8 cfdisk_SOURCES = cfdisk.c $(fdisk_common) cfdisk_CFLAGS = $(cflags_blkid) cfdisk_LDADD = @NCURSES_LIBS@ $(ldadd_blkid) endif endif endif # !ARCH_SPARC endif # !ARCH_M68K