#======================================================================== # # 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-2008 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; version 2 # of the License. # # 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, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # The author's address is artifex@seanerikoconnor.freeservers.com. # #============================================================================= # 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