5 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
6 partedincludedir = -I$(top_srcdir)/lib -I$(top_srcdir)/include
8 parted_SOURCES = command.c \
18 noinst_LIBRARIES = libver.a
19 nodist_libver_a_SOURCES = version.c version.h
21 BUILT_SOURCES += version.c
24 $(AM_V_at)printf '#include <config.h>\n' > $@t
25 $(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t
26 $(AM_V_at)chmod a-w $@t
29 BUILT_SOURCES += version.h
32 $(AM_V_at)printf 'extern char const *Version;\n' > $@t
33 $(AM_V_at)chmod a-w $@t
36 DISTCLEANFILES = version.c version.h
37 MAINTAINERCLEANFILES = $(BUILT_SOURCES)
39 #parted_CFLAGS = -DBUILDINFO='"\"'$(BUILDINFO)'\""'
40 parted_CFLAGS = -DBUILDINFO=
44 $(top_builddir)/libparted/libparted.la \
48 parted_LDFLAGS = $(PARTEDLDFLAGS)
50 # Tell the linker to omit references to unused shared libraries.
51 parted_LDFLAGS += $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
53 INCLUDES = $(partedincludedir) $(INTLINCS)
55 MAINTAINERCLEANFILES += Makefile.in