# $Source: F:/DJGPP/EXAMPLES/C/NOGLOB/RCS/makefile $
# $Revision: 1.3 $
# $Date: 1997/05/14 06:39:39 $
# $Author: PHIL $
# $Locker:  $
#
# makefile to compile, link and run the filename non-globbing example program


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



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


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


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


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