Source

fdisk / src / Makefile.am

Full commit
PACKAGE = @PACKAGE@
VERSION = @VERSION@

top_srcdir = @top_srcdir@
subdir = src
datadir = @datadir@
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
LIBS = @LIBINTL@ @LIBS@

AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
LDADD = $(top_builddir)/lib/libgnu.a

sbin_PROGRAMS =  gfdisk

gfdisk_SOURCES = main.c		\
		command.c	\
		command.h	\
		fdisk.c  	\
		common.c	\
		common.h	\
		hacks.c		\
		hacks.h		\
		strlist.c	\
		strlist.h	\
		ui.c		\
		ui.h

gfdisk_LDADD = $(PARTED_LIBS)

if MAKE_CFDISK
sbin_PROGRAMS += gcfdisk

gcfdisk_SOURCES = cfdisk.c	\
		common.c	\
		common.h	\
		strlist.c	\
		strlist.h	\
		hacks.c		\
		hacks.h		\
		sys_types.h

gcfdisk_LDADD = $(PARTED_LIBS) $(CURSES_LIBS)

endif

install-exec-local: 
	@SYMLINK@ $(DESTDIR)/$(sbindir)/gfdisk $(DESTDIR)/$(sbindir)/fdisk @END_SYMLINK@
	@SYMLINK@ $(DESTDIR)/$(sbindir)/gcfdisk $(DESTDIR)/$(sbindir)/cfdisk @END_SYMLINK@

install-exec-am: install-sbinPROGRAMS install-exec-local