CC	= gcc
CFLAGS	= -Wall -O2 -mstubs -mthrowback -MMD -frtti -mno-poke-function-name #-DDEBUG
CPPFLAGS= -Ilibstdc:
LD	= drlink
LDFLAGS	= -qui -t
LIBS	= gcc:o.libgcc c:o.stubs libstdc:o.libstdc++

o.% : c.%
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $<
o.% : cc.%
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $<

OBJS	= o.draw2latex
#____________________________________________________________________________

all:	!RunImage
clean:
	@Remove !Depend
	@Remove !RunImage
	@IfThere d Then Wipe d ~C~FR~V
	@IfThere o Then Wipe o ~C~FR~V
!RunImage:	$(OBJS)
	$(LD) $(LDFLAGS) $(OBJS) -o !RunImage $(LIBS)
#____________________________________________________________________________

# Dynamic dependencies:

o.draw2latex:	cc.draw2latex

