Re: [opensuse] need help with simple Makefile - no rule to make target (huh?)
On 11/03/2010 01:09 PM, Philipp Thomas wrote:
I have to make friends with the basics before I can hope to make friends with the automagic things.
But the basics are rather simple. - Create a configure.ac by running autoscan and renaming the resulting configure.scan. - Edit configure scan as needed. - Create a Makefile.am, which is much easier than creating a Makefile on your own. In ist simplest form it contains: bin_PROGRAMS = foo foo_SOURCERS = foo.h foo.c Now run configure 'autoreconf -fi' which will run all tools and copy all needed files needed to create (and run) configure and Makefile.in. Now run configure and then make as you do with other packages. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/04/2010 09:53 AM, Philipp Thomas wrote:
But the basics are rather simple.
- Create a configure.ac by running autoscan and renaming the resulting configure.scan. - Edit configure scan as needed. - Create a Makefile.am, which is much easier than creating a Makefile on your own. In ist simplest form it contains:
bin_PROGRAMS = foo foo_SOURCERS = foo.h foo.c
Now run configure 'autoreconf -fi' which will run all tools and copy all needed files needed to create (and run) configure and Makefile.in. Now run configure and then make as you do with other packages.
Philipp
Oh... Now that's cool. And I thought the makefile was the next best thing to sliced bread once I figured out how to spell. I'll read up on autotools. I really never needed it before. But now with the library list growing and the number of source/headers, that may really take some workload off. Thank you for the suggestion and... the example. (worth 1000 words) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 04/11/10 16:09, David C. Rankin escribió:
I'll read up on autotools.
No! :) go to your near book store and pick up "mastering Cmake" http://www.cmake.org/cmake/help/book.html -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 04 Nov 2010 16:35:51 -0300, Cristian Rodríguez
No! :) go to your near book store and pick up "mastering Cmake"
Ah, the dark side appears :-) This is a matter of taste and maybe it would be easier for David to go with cmake. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/04/2010 04:39 PM, Philipp Thomas wrote:
On Thu, 04 Nov 2010 16:35:51 -0300, Cristian Rodríguez
wrote: No! :) go to your near book store and pick up "mastering Cmake"
Ah, the dark side appears :-) This is a matter of taste and maybe it would be easier for David to go with cmake.
Philipp
Both appreciated pearls of wisdom ;-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Thu, 04 Nov 2010, Cristian Rodríguez wrote:
El 04/11/10 16:09, David C. Rankin escribió:
I'll read up on autotools.
No! :) go to your near book store and pick up "mastering Cmake" http://www.cmake.org/cmake/help/book.html
*Yikes* The Horror! *makes warding signs* If you're so good with cmake, I'll note you down for a few questions. Like injecting or removing some arbitrary flags from a gcc / ld commandline. -dnh -- A rule for life. echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq |dc -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Cristian Rodríguez
-
David C. Rankin
-
David Haller
-
Philipp Thomas
-
Philipp Thomas