Do not remake on modules with d/ ##build

This commit is contained in:
pancake 2021-12-12 21:39:29 +01:00
parent d6d100938c
commit 2b66ea66ea
2 changed files with 13 additions and 13 deletions

View File

@ -18,14 +18,12 @@ LDFLAGS+=$(LINK)
.PHONY: all main plugins libs ${EXTRA_CLEAN}
# all: plugins
main:
$(MAKE) -C d
$(MAKE) all
plugins: ${LIBSO} ${LIBAR}
@${MAKE} -C p all
@$(MAKE) -C p all
include ${STATIC_ANAL_PLUGINS}
include ${STATIC_ESIL_PLUGINS}
@ -44,7 +42,6 @@ ASMOBJS+=$(LTOP)/asm/arch/xtensa/gnu/elf32-xtensa.o
OBJS=${STATIC_OBJS} ${OBJLIBS} ${ASMOBJS}
ifeq ($(HAVE_GPERF),1)
OBJS+=d/cc-arm-16.o
OBJS+=d/cc-arm-32.o
OBJS+=d/cc-arm-64.o
@ -83,15 +80,14 @@ endif
test tests: tests-esil
tests-esil:
cd ../../test ; \
sh run_tests.sh t.esil
cd ../../test && sh run_tests.sh t.esil
.PHONY: do doclean
do:
${MAKE} -C d
$(MAKE) -C d
doclean:
${MAKE} -C d clean
$(MAKE) -C d clean
include $(LTOP)/rules.mk

View File

@ -66,7 +66,7 @@ LINK+=-lproc
endif
ifeq ($(EXTRA_PRE),)
all: ${LIBSO} ${LIBAR} ${EXTRA_TARGETS}
all: $(LIBSO) ${LIBAR} ${EXTRA_TARGETS}
else
all: $(EXTRA_PRE)
$(MAKE) all2
@ -82,9 +82,12 @@ else
@-if [ -f d/Makefile ] ; then (echo "DIR ${NAME}/d"; ${MAKE} -C d) ; fi
endif
$(OBJS): $(EXTRA_TARGETS)
prelib-build: $(EXTRA_TARGETS)
$(MAKE) $(OBJS)
ifeq ($(WITH_LIBS),1)
$(LIBSO): ${WFD} ${OBJS} ${SHARED_OBJ}
$(LIBSO): prelib-build ${SHARED_OBJ}
@for a in ${OBJS} ${SHARED_OBJ} ${SRC}; do \
do=0 ; [ ! -e "${LIBSO}" ] && do=1 ; \
test "$$a" -nt "${LIBSO}" && do=1 ; \
@ -101,7 +104,8 @@ $(LIBSO): ;
endif
ifeq ($(WITH_LIBR),1)
$(LIBAR): $(OBJS)
$(LIBAR): prelib-build
@[ "${SILENT}" = 1 ] && echo "CC_AR $(LIBAR)" || true
rm -f $(LIBAR)
${CC_AR} ${OBJS} ${SHARED_OBJ}
@ -136,7 +140,7 @@ mrproper: clean
-rm -f *.d
@true
.PHONY: all install pkgcfg clean deinstall uninstall echodir
.PHONY: all install pkgcfg clean deinstall uninstall echodir prelib-build
# autodetect dependencies object
-include $(OBJS:.o=.d)