# 
# Makefile for a prototype client

.S.s:
	$(CPP) -traditional $< -o $*.s
.c.s:
	$(CC) $(CFLAGS) -S $<
.s.o:
	$(AS) -c -o $*.o $<
.c.o:
	$(CC) $(CFLAGS) -c $<

OBJS	= crt0.o mm.o -lpico -lsrv
RESULT  = mm

all:	$(RESULT)
.PHONY: all dep clean

$(RESULT): $(OBJS)
	$(LD) -Ttext 0 -o $@ $^ 

clean:
	rm -f *.[oas]
	rm -f $(RESULT)
dep:
	$(CPP) -M *.c > depend

ifeq (depend,$(wildcard depend))
include depend
endif
