include ../makefile.inc

CFLAGS=-mh

CRT = crt0.o
LIBRARY = ../lib/libbase.a

CFLAGS=-Wall -I../include -mh
AFLAGS=
LIBOBJS = lib_wait.o io_lcd.o io_lcdc.o io_sci.o io_scic.o lib_hex.o \
	io_ddr_shadow.o \
	io_i2c.o rtc.o

.s.o:; $(AS) $(AFLAGS) -o $@ $*.S 

all: $(LIBRARY) $(CRT)

$(LIBRARY): $(LIBOBJS)
	$(AR) cr $@ $(LIBOBJS)
	$(RANLIB) $@

clean:
	-rm *.o *.a *.coff *.mot

$(OBJS): *.inc *.h
