# Project:   grep


# Toolflags:
CCflags = -c -depend !Depend -IC: -throwback -DACORN
C++flags = -c -depend !Depend -IC: -throwback
Linkflags = -aif -c++ -o $@
ObjAsmflags = -throwback -NoCache -depend !Depend
CMHGflags = 
LibFileflags = -c -o $@
Squeezeflags = $@
PCflags = -c -depend !Depend -throwback -IP:
JFPatchflags = -depend !Depend -throwback -out $@
Bas2Txtflags = -j -b -o $@ -i 
Basic2Cflags = -t -o $@ -4 -i 
MakeDllflags = -o $@
LinkDllflags = $(linkflags)


# Final targets:
rel:      @.grep
        CDir @.release
        Copy @.grep @.release.grep ~DF~Q~C~V
        Copy @.c @.release.c R~DF~Q~C~V
        Copy @.h @.release.h R~DF~Q~C~V
        Copy @.Makefile @.release.Makefile R~DF~Q~C~V
        Copy @.!ReadMe @.release.!ReadMe R~DF~Q~C~V
        Copy @.Resources @.release.Resources R~DF~Q~C~V
        Cdir @.release.o
        
@.grep:   @.o.alloca @.o.dfa @.o.getopt @.o.grep @.o.regex @.o.wild C:o.stubs 
        link $(linkflags) @.o.alloca @.o.dfa @.o.getopt @.o.grep @.o.regex \
        @.o.wild C:o.stubs 
        Squeeze $(SqueezeFlags)

# User-editable dependencies:

# Static dependencies:
@.o.alloca:   @.c.alloca
        cc $(ccflags) -o @.o.alloca @.c.alloca 
@.o.dfa:   @.c.dfa
        cc $(ccflags) -o @.o.dfa @.c.dfa 
@.o.getopt:   @.c.getopt
        cc $(ccflags) -o @.o.getopt @.c.getopt 
@.o.grep:   @.c.grep
        cc $(ccflags) -o @.o.grep @.c.grep 
@.o.regex:   @.c.regex
        cc $(ccflags) -o @.o.regex @.c.regex 
@.o.wild:   @.c.wild
        cc $(ccflags) -o @.o.wild @.c.wild 


# Dynamic dependencies:
o.getopt:	c.getopt
o.regex:	c.regex
o.regex:	h.regex
o.dfa:	c.dfa
o.dfa:	h.dfa
o.wild:	c.wild
o.wild:	C:h.kernel
o.wild:	C:h.swis
o.grep:	c.grep
o.grep:	C:h.kernel
o.grep:	h.dfa
o.grep:	h.regex
