include common.mk crypto_dir = $(ext_dir)/crypto MAKEFLAGS += -I$(fe310_dir) include $(crypto_dir)/crypto_obj.mk obj_crypto = $(addprefix $(crypto_dir)/,$(obj_dep)) subdirs_bsp = bsp/drivers bsp/gloss bsp/init subdirs_ext = $(crypto_dir) $(ext_dir)/fsfat subdirs = eos eos/soc eos/dev eos/net eos/eve $(subdirs_bsp) $(subdirs_ext) %.o: %.c $(CC) $(CFLAGS) -c $< all: rm -f *.a for i in $(subdirs); do \ (cd $$i && $(MAKE)) || exit; \ done $(AR) rcs libeos-bsp.a $(addsuffix /*.o,$(subdirs_bsp)) $(AR) rcs libeos-ext.a $(obj_crypto) $(ext_dir)/fsfat/*.o clean: for i in $(subdirs); do \ (cd $$i && $(MAKE) clean) || exit; \ done rm -f *.o *.a