summaryrefslogtreecommitdiff
path: root/fdisks/Makemodule.am
blob: f586769125be9ad403b294517a756675d37bb226 (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
87

fdisk_common_sources = \
	fdisks/common.h \
	fdisks/gpt.c \
	fdisks/gpt.h \
	fdisks/i386_sys_types.c

if !ARCH_M68K

sbin_PROGRAMS += fdisk
dist_man_MANS += fdisks/fdisk.8
fdisk_SOURCES = \
	fdisks/utils.c \
	fdisks/fdisk.c \
	fdisks/fdisk.h \
	fdisks/fdiskaixlabel.c \
	fdisks/fdiskaixlabel.h \
	fdisks/fdiskbsdlabel.c \
	fdisks/fdiskbsdlabel.h \
	fdisks/fdiskmaclabel.c \
	fdisks/fdiskmaclabel.h \
	fdisks/fdisksgilabel.c \
	fdisks/fdisksgilabel.h \
	fdisks/fdisksunlabel.c \
	fdisks/fdisksunlabel.h \
	fdisks/fdiskdoslabel.c \
	fdisks/fdiskdoslabel.h \
	fdisks/partname.c \
	$(fdisk_common_sources)

fdisk_LDADD = $(LDADD) libcommon.la

if BUILD_LIBBLKID
fdisk_CFLAGS = -I$(ul_libblkid_incdir)
fdisk_LDADD += libblkid.la
endif

if HAVE_STATIC_FDISK
sbin_PROGRAMS += fdisk.static
fdisk_static_SOURCES = $(fdisk_SOURCES)
fdisk_static_LDFLAGS = -all-static
fdisk_static_CFLAGS = $(fdisk_CFLAGS)
fdisk_static_LDADD = $(fdisk_LDADD)
endif


if !ARCH_SPARC

sbin_PROGRAMS += sfdisk
dist_man_MANS += fdisks/sfdisk.8
sfdisk_SOURCES = \
	fdisks/partname.c \
	fdisks/sfdisk.c \
	$(fdisk_common_sources)
sfdisk_LDADD = $(LDADD) libcommon.la

if HAVE_STATIC_SFDISK
sbin_PROGRAMS += sfdisk.static
sfdisk_static_SOURCES = $(sfdisk_SOURCES)
sfdisk_static_LDFLAGS = -all-static
sfdisk_static_LDADD = $(sfdisk_LDADD)
endif


if BUILD_CFDISK
sbin_PROGRAMS += cfdisk
dist_man_MANS += fdisks/cfdisk.8
cfdisk_SOURCES = fdisks/cfdisk.c $(fdisk_common_sources)
cfdisk_CFLAGS =
cfdisk_LDADD = $(LDADD) libcommon.la

if BUILD_LIBBLKID
cfdisk_CFLAGS += -I$(ul_libblkid_incdir)
cfdisk_LDADD += libblkid.la
endif

if HAVE_SLANG
cfdisk_LDADD += -lslang
else
if HAVE_NCURSES
cfdisk_LDADD += @NCURSES_LIBS@
endif
endif
endif # BUILD_CFDISK

endif # !ARCH_SPARC
endif # !ARCH_M68K