include ../common.mk
CFLAGS += -I$(bsp_dir)/include -I$(bsp_dir)/drivers

obj = eos.o msgq.o event.o unicode.o
lib = ../libeos.a


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

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

all: $(lib)

$(lib): $(obj)
	$(AR) rcs $@ $(obj)

clean:
	rm -f *.o $(lib)