

CC  = xgcc
CXX = xgcc
AS  = xgcc -c
CP  = cp
LD  = xgcc

DLDIR = ../download

CFLAGS = -Wall -O2
CXXFLAGS = -Wall -O2

all:	$(PROG)

$(PROG): $(OBJS)
	$(LD) -o $(PROG) $(OBJS) $(LDFLAGS)

clean:
	rm -f $(PROG) $(DLDIR)/$(PROG) *.o *.i *.s *.greg

install: $(DLDIR)/$(PROG)

$(DLDIR)/$(PROG): $(PROG)
	$(CP) $^ $@

