#======================================================================== # # NAME # # makefile # # DESCRIPTION # # Makefile for Windows systems using Cygwin. # # Run from a command window by calling # # make # # To run the program type # # make test # # LEGAL # # Windows Game Of Life Version 2.0 - # A Windows version of the cellular automata Game of Life # by J. H. Conway. # Copyright (C) 2000-2009 by Sean Erik O'Connor. All Rights Reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # The author's address is artificer!AT!seanerikoconnor!DOT!freeservers!DOT!com # with the !DOT! replaced by . and the !AT! replaced by @ # #============================================================================= # Make all the executables. # all: Winlife.exe # Clean up object files and executables. # clean: rm Winlife.exe Winlife.res test: ./Winlife.exe & # Compile source files and add the resource file. # Winlife.exe: Winlife.c Winlife.res gcc -mwindows Winlife.res Winlife.c -o Winlife.exe # Compile the resource file using the coff standard for # compatibility with Cygwin. # Winlife.res: Winlife.rc resource.h winlife.ico winlife.cur windres Winlife.rc -O coff -o Winlife.res