STUBSG=1

CCflags = -c -depend !Depend -IC: -throwback -zM $(if $(DEBUG), -g)
Linkflags = -rmf -c++ -o $@ $(if $(DEBUG), -d)
CMHGflags = 

ifdef STUBSG
Libraries = C:o.Stubsg
CCflags += -apcs 3/32/fpe2/swst/fp/nofpr
else
Libraries = C:o.Stubs
endif


# Final targets:
@.^.PtrUtils:   @.o.ptrutils @.o.modulehdr
        Link $(Linkflags) $(Libraries) @.o.ptrutils @.o.modulehdr


# User-editable dependencies:

.PHONY: clean

clean:
      -wipe @.o.* ~cf~v


# Static dependencies:
@.o.ptrutils:   @.c.ptrutils
        cc $(CCflags) -o @.o.ptrutils @.c.ptrutils
@.o.modulehdr:   @.cmhg.modulehdr
        cmhg @.cmhg.modulehdr -o @.o.modulehdr



# Dynamic dependencies:
o.ptrutils:	c.ptrutils
o.ptrutils:	C:h.kernel
o.ptrutils:	C:h.swis
