# $Source: F:/DJGPP/EXAMPLES/C/VM/RCS/makefile $
# $Revision: 1.2 $
# $Date: 1997/05/14 06:35:32 $
# $Author: PHIL $
# $Locker:  $
#
# makefile to compile, link and run the virtual memory example program


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



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



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



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