# $Source: F:/DJGPP/EXAMPLES/C/SINGLE/RCS/makefile $
# $Revision: 1.2 $
# $Date: 1997/05/14 06:12:51 $
# $Author: PHIL $
# $Locker:  $
#
# makefile to compile, link and run the single-file example program


# the default (i.e first) go target runs the program
go:		single.exe
		single



# the single.exe target creates/updates single.exe & single (COFF file)
# by linking single.o
single.exe:	single.o
		gcc -Wall -o single single.o



# the single.o target creates/updates single.o by compiling single.c
single.o:	single.c
		gcc -Wall -c single.c



# the clean target deletes the object-, executable- and COFF-files
clean:
		rm single single.o single.exe
