Category: autotools

  • Writing Free Software – Part 7: Creating a working install target

    Introduction This entry will show how to add the bits required for an install target. There are two pieces that need to be added to the Makefile.am: target_DATA, which is a list of files associated with the target targetdir, which is the location where the above files will be installed Return to the workplace $…

  • Writing Free Software – Part 6: Making a simple distribution

    You might remember from a previous post that we’ve already got a “dist” target which creates a tarball of the source. However, the source doesn’t include any of the code we wrote, only the files generated by autotools. In this article, we’ll make the modifications to the Makefile.am file required to include our source in…

  • Writing Free Software – Part 5: Consuming configure.ac variables

    This one has to be quick folks. The family needs my support this evening ;) In the last episode, we created a simple configure.ac and defined a variable, CSC. We didn’t change the Makefile other than re-naming it to Makefile.am. In this article, we’ll simply show how to consume the variable which was defined in…

  • Writing Free Software – Part 4: configure.ac

    In this section, we’ll create a minimalist configure.ac, re-name our Makefile to Makefile.am, generate a configure script, and use this configure script to produce a Makefile. The end result won’t do much more than our manually-created Makefile. It will, however, allow us to make use of the autoconf and automake infrastructure in future lessons. So…

  • Writing Free Software – Part 3: Command line options

    Introduction In this installment, we will look at parsing command-line options. We’re going to use Jon Pryor‘s NDesk.Options library. Since he has not made a .deb package yet, we’ll use curl to integrate NDesk.Options.cs into our codebase. Get back to our workspace $ cd ~/src/greeting Get curl $ sudo apt-get install curl Pull down a…

  • Writing Free Software – Part 2: Makefiles

    Okay, so now we know how to write hello world in C#, compile it and run it. Next, let’s try to automate the build portion a bit. It’s not going to be very much of an improvement to start out with; we’re just replacing the gmcs command with a make command. But it’s laying a…

  • Writing Free Software – Part 1

    There are a lot of folks who want to learn how to write software, I hear. So I’ll see if I can write something up about it. I’m going to assume that the reader has at their disposal an i386-class computer running Ubuntu or Debian. This will all probably work for other operating systems, but…

  • autotools help on IRC

    It has come to my attention that there is a lack of autotools (autoconf, automake, autoheader, libtool, etc) help on IRC. If anybody is looking, they might check out #mono on irc.gimp.net; there are quite a few folks there who are familiar with the suite, and if I can ever figure out how to get…

  • To Prebuild or not to Prebuild?

    So… On IRC today, John, Michael and I discussed rolling Prebuild and xbuild into one product. It seems that we’re duplicating effort and competing for each others’ users. It sounds to me like we should converge the codebases, and make Prebuild.exe a wrapper around the innards of xbuild. Thoughts?

  • An update

    I don’t really have anything really exciting to report, so y’all get to listen to me blather. And after all, that’s what blogs are for anyway, right? Zelda is turning 11 months old this month. This is still my favorite picture: I have been dishonorably discharged from Amazon. It seems that I am incompetent. It…