Hi, I'm trying to do something, of which there is a very similar example in the automake docs at http://www.gnu.org/manual/automake/html_mono/automake.html#SEC11 However, despite my efforts, I can't seem to convert the example into what I want. Essentially, I want to build two binaries, rect_in_rect and circ_in_circ, from a very similar set of source files. There are around 13 source files, of which 8 are common to the two binaries. The difference I'm trying to overcome, is that when building rect_in_rect, RECT_IN_RECT should be defined. Whereas when building circ_in_circ, then instead of RECT_IN_RECT being defined, CIRC_IN_CIRC would be defined instead. --------------- bin_PROGRAMS = atlc rect_in_rect circ_in_circ # atlc is easy, as there is only one set of source, and no defines needed. atlc_SOURCES = get_data_interactively.c nrutil.c atlc.c read_bitmap_file_headers.c \ byteswap.c string.c setup_arrays.c finite_difference_single_threaded.c \ finite_difference_multi_threaded.c usage.c write_fields.c bmp.h definitions.h # But how do I compile rect_in_rect and circ_in_circ ?????? rect_in_rect_SOURCES = rect_in_rect.c usage_rect_in_rect.c write_bitmap.c \ get_Er1_and_Er2_colours.c convert_rect_in_rect_dimensions_to_integers.c \ string.c nrutil.c write_bitmap_out.c byteswap2.c \ align_bitmap_image.c fill_rect_in_rect.c check_rect_in_rect.c \ convert_circ_in_circ_dimensions_to_integers.c circ_in_circ_SOURCES = circ_in_circ.c usage_circ_in_circ.c write_bitmap.c \ get_Er1_and_Er2_colours.c convert_circ_in_circ_dimensions_to_integers.c \ string.c nrutil.c write_bitmap_out.c byteswap2.c \ align_bitmap_image.c fill_circ_in_circ.c check_circ_in_circ.c -- Dr. David Kirkby Ph.D, email: [EMAIL PROTECTED] former email address: [EMAIL PROTECTED] web page: http://www.david-kirkby.co.uk Amateur radio callsign: G8WRB