I finally created my project and managed to create my Makefile.am like so:
hmi_SOURCES = \ $(elementos) hmi_LDADD = ./Utils/*.o ./RIPC/*.o ./Middleware/*.o ./IO/*.o ./Graphics/*.o ./GTK/*.o ./Events/*.o ./Draw/*.o ./Commands/*.o ./Cairo/*.o ./Base/*.o -lsvg -lripcclient -lboost_date_time -lboost_program_options -lboost_serialization -lsvg-cairo -lboost_thread -lboost_signals Here I can use the "*.o" form to specify all the files in those directories. But when I try to use them in each one of those dirs for example: elementos = AlarmManager.cpp AlarmsSummary.cpp Container.cpp HMIManager.cpp Named.cpp Object.cpp Screen.cpp Titled.cpp Viewer.cpp Window.cpp noinst_LIBRARIES = libBase.a libBase_a_SOURCES = $(elementos) I cannot use it to declare for example: elementos = *.cpp noinst_LIBRARIES = libBase.a libBase_a_SOURCES = $(elementos) Is there any way to declare it and specify a directive like the last one?? Thanks !!! -- teratux