ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm struggling through learning autotools to convert my project from static makefiles and I'm almost there.
I've got everything working except for a proper makefile.in
right now it's just a copy of my original makefile.
My issue now is i have no clue what variables from autotools i'm supposed to use (such as where to put the binary or project assets, or what variables are called for the ldflags or cflags etc made by ./configure.
I've looked at roughly 10 sites and they all either seem to be out of date or go into way too much detail and I get lost.
I guess i'm looking for either a basic tutorial (but not excessively so - most of the tutorials i've found dont even mention the makefile.in) or a function-list style thing for the standard vars created by autotools for use in the makefile.
thanks for the replies. and sorry about the typo on makefile.in - i did mean .am
I'll take a look at the book, but as I mentioned in my original post I'm really looking for something that's not amazingly basic, but also not an entire books worth of information
I want something that says "hey, with a mostly basic configure.ac that just checks for the necessary libraries and names the project here are the vars you use in makefile.am for compiler, linker flags, what directories to install in, etc"
Makefile.am is actually the simple part and configure.ac is the more complex one. Really all a Makefile.am is a list of what to build, what files it needs, what compile and link options it takes, what (in addition to dependencies) it should include in a distro package, and what subdirectories to go into. info automake should help out, as well as libtool and autoconf. It took me forever just to be patient enough to learn them (because the docs all reference each other) but it's fairly simple once you get the basics. There are also a few make rules you can define to be executed at (un)install time.
Automake will generate a Makefile.in, which is a template makefile, from your Makefile.am. Autoconf will make a ./configure based on your configure.ac, which tells it which options to build that script with. When ./configure is run, it inserts the results of its tests into the generated Makefile.in to create a real makefile.