diff options
Diffstat (limited to 'fw/fe310/Makefile')
-rw-r--r-- | fw/fe310/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fw/fe310/Makefile b/fw/fe310/Makefile index 96687c7..be584f5 100644 --- a/fw/fe310/Makefile +++ b/fw/fe310/Makefile @@ -1,22 +1,26 @@ include common.mk +MAKEFLAGS += -I$(fe310_dir) -CFLAGS += -I./include +include $(crypto_dir)/crypto_obj.mk +obj_crypto = $(addprefix $(crypto_dir)/,$(obj_dep)) -subdirs = bsp/drivers bsp/gloss bsp/metal eos eos/i2c eos/eve eos/eve/screen eos/eve/widget eos/app crypto fsfat +subdirs = bsp/drivers bsp/gloss bsp/metal eos eos/i2c eos/eve eos/eve/screen eos/eve/widget eos/app fsfat +# $(info INFO $(obj_crypto)) all: libeos.a %.o: %.c $(CC) $(CFLAGS) -c $< libeos.a: - for i in $(subdirs); do \ + for i in $(subdirs) $(crypto_dir); do \ (cd $$i && $(MAKE)) || exit; \ done rm -f $@ for i in $(subdirs); do \ $(AR) rcs $@ $$i/*.o; \ done + $(AR) rcs $@ $(obj_crypto) clean: for i in $(subdirs); do \ |