summaryrefslogtreecommitdiff
path: root/fw/fe310/Makefile
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-08-09 22:23:08 +0200
committerUros Majstorovic <majstor@majstor.org>2022-08-09 22:23:08 +0200
commit3f913efda03fd840cd526ef72e6f397c7da61bd7 (patch)
tree08f62c93e0e0660fdb7beba32276ff1ceb7a8a3c /fw/fe310/Makefile
parent810dde21ee65653c15606917b19566cfbaaf165e (diff)
code layout
Diffstat (limited to 'fw/fe310/Makefile')
-rw-r--r--fw/fe310/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/fw/fe310/Makefile b/fw/fe310/Makefile
index f9da883..70bacff 100644
--- a/fw/fe310/Makefile
+++ b/fw/fe310/Makefile
@@ -5,25 +5,24 @@ MAKEFLAGS += -I$(fe310_dir)
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 $(ext_dir)/fsfat
+subdirs_bsp = bsp/drivers bsp/gloss bsp/metal
+subdirs_ext = $(crypto_dir) $(ext_dir)/fsfat
+subdirs = eos eos/soc eos/dev eos/net eos/eve $(subdirs_bsp) $(subdirs_ext)
-all: libeos.a
%.o: %.c
$(CC) $(CFLAGS) -c $<
-libeos.a:
- for i in $(subdirs) $(crypto_dir); do \
- (cd $$i && $(MAKE)) || exit; \
- done
- rm -f $@
+all:
+ rm -f *.a
for i in $(subdirs); do \
- $(AR) rcs $@ $$i/*.o; \
+ (cd $$i && $(MAKE)) || exit; \
done
- $(AR) rcs $@ $(obj_crypto)
+ $(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) $(crypto_dir); do \
+ for i in $(subdirs); do \
(cd $$i && $(MAKE) clean) || exit; \
done
rm -f *.o *.a