I read the tutorial pertaining automake and it is a great way to create automated build projects and portable also. Great Work !!!
I want to convert my Eclipse make project to an automake project. I saw the examples listed in the tutorial but I didn't see one where there would be subdirectories with source code to compile. My project has a main.cpp file and several subdirectories ( Base, Draw, Cairo ... ) I want to create an automake configure.ac file and a Makefile.am but it just doesn't seem to work: My configure.ac: AC_INIT([/src/main.cpp]) AM_INIT_AUTOMAKE([hmi], [0.3]) AUTOMAKE_OPTIONS = foreign AC_PROG_CXX AC_CONFIG_FILES([ Makefile src/Makefile src/Base/Makefile src/Cairo/Makefile src/Commands/Makefile src/Draw/Makefile src/Events/Makefile src/IO/Makefile src/Middleware/Makefile src/RIPC/Makefile src/Utils/Makefile ]) AC_OUTPUT My Makefile.am: Here I defined my compile and link flags. SUBDIRS = src bin_PROGRAMS = main hmi_SOURCES = src/main.cpp AM_CXXFLAGS = -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0-I/usr/include/sigc++- 2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib- 2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0-I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm- 2.4/include -I/usr/include/libglade-2.0 -I/usr/include/libxml2 AM_LDFLAGS = -lglademm-2.4 -lgtkmm-2.4 -lglade-2.0 -lgdkmm-2.4 -latkmm-1.6 - lpangomm-1.4 -lglibmm-2.4 -lsigc-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 - latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 - lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lsvg -lripcclient -lboost_date_time -lboost_program_options -lboost_serialization -lsvg-cairo -lboost_thread -lboost_signals My src/Makefile.am: SUBDIRS = Base Cairo Commands Draw Events IO Middleware RIPC Utils bin_PROGRAMS = hmi hmi_SOURCES = main.cpp Now, the question is. What do I put in my Base/Makefile.am, Draw/Makefile.am ... and so on in order for it to work?? None of the examples I saw were similar to this case. Thanks in advance !!! -- teratux