update the build system to use autotools
The autotool system provides a high-level way of specifying what to build,
and then generates Makefile templates based on these requirements as well
as a way of generating Makefiles at build time based on what it finds at
build time (i.e. specifics about the system on which it is being built),
and configuration options set by the user at build time. The nice thing
about autotools is that it better encapsulates distro-specific "gotchas"
that make it hard to create a Makefile by hand which will work on a wide
range of different versions of various UNIX distributions. It also includes
built-in support for out-of-tree build (VPATH), cross-development, and DESTDIR
installs.
These generated Makefiles automatically include support for a wide
range of 'make' targets such as: make, make clean, make install, make
uninstall, make check, make distclean, make dist, make strip, make
distcheck, etc. These targets make it easier to follow the "Makefile
Conventions" of "The Release Process" from the "GNU Coding Standards"
(https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html).
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-20 07:12:23 +01:00
|
|
|
## Copyright (C) 2017 Trevor Woerner <twoerner@gmail.com>
|
|
|
|
|
|
|
|
SUBDIRS =
|
|
|
|
DIST_SUBDIRS = cfg
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE $(LIBUSB1_CFLAGS)
|
|
|
|
|
|
|
|
bin_PROGRAMS = rkdeveloptool
|
|
|
|
rkdeveloptool_SOURCES = main.cpp \
|
|
|
|
crc.cpp DefineHeader.h Endian.h DefineHeader.h Property.hpp \
|
|
|
|
RKBoot.cpp RKBoot.h \
|
|
|
|
RKComm.cpp RKComm.h \
|
|
|
|
RKDevice.cpp RKDevice.h \
|
|
|
|
RKImage.cpp RKImage.h \
|
|
|
|
RKLog.cpp RKLog.h \
|
2017-04-11 12:06:10 +02:00
|
|
|
RKScan.cpp RKScan.h \
|
|
|
|
gpt.h
|
update the build system to use autotools
The autotool system provides a high-level way of specifying what to build,
and then generates Makefile templates based on these requirements as well
as a way of generating Makefiles at build time based on what it finds at
build time (i.e. specifics about the system on which it is being built),
and configuration options set by the user at build time. The nice thing
about autotools is that it better encapsulates distro-specific "gotchas"
that make it hard to create a Makefile by hand which will work on a wide
range of different versions of various UNIX distributions. It also includes
built-in support for out-of-tree build (VPATH), cross-development, and DESTDIR
installs.
These generated Makefiles automatically include support for a wide
range of 'make' targets such as: make, make clean, make install, make
uninstall, make check, make distclean, make dist, make strip, make
distcheck, etc. These targets make it easier to follow the "Makefile
Conventions" of "The Release Process" from the "GNU Coding Standards"
(https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html).
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2017-03-20 07:12:23 +01:00
|
|
|
rkdeveloptool_LDADD = $(LIBUSB1_LIBS)
|
|
|
|
|
|
|
|
clean-local::
|
2017-10-10 16:41:57 +02:00
|
|
|
rm -fr log
|