Makefile: make first build targe all

Otherwise when you give make command it will do just link
This commit is contained in:
Radu Iliescu 2018-12-03 07:24:15 -05:00
parent 8d3957f3b8
commit 83c97bab78

View file

@ -13,6 +13,8 @@ endif
OBJS = $(shell (find $(COMPONENTS) -name *.o)) OBJS = $(shell (find $(COMPONENTS) -name *.o))
all: test
link: compile link: compile
$(AR) rcs libp2p.a $(OBJS) $(LINKER_FLAGS) $(AR) rcs libp2p.a $(OBJS) $(LINKER_FLAGS)
@ -24,8 +26,6 @@ test: compile link
rebuild: clean all rebuild: clean all
all: test
clean: clean:
$(foreach dir,$(COMPONENTS), $(MAKE) -C $(dir) clean ;) $(foreach dir,$(COMPONENTS), $(MAKE) -C $(dir) clean ;)
make -C test clean make -C test clean