# $Source: F:/DJGPP/EXAMPLES/C/GLOB/RCS/makefile $
# $Revision: 1.2 $
# $Date: 1997/05/14 06:23:28 $
# $Author: PHIL $
# $Locker:  $
#
# makefile to compile, link and run the filename globbing example program


# the default (i.e first) go target runs the program
go:		glob.exe
		glob *
		glob *.*
		glob *.?
		glob *.foo



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



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



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