# $Source: F:/DJGPP/EXAMPLES/CXX/SINGLE/RCS/makefile $
# $Revision: 1.1 $
# $Date: 1997/05/14 07:41:12 $
# $Author: PHIL $
# $Locker:  $
#
# makefile to compile, link and run the single-file c++ 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
		gxx -Wall -o single single.o



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



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