mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
rules.mk: Add targets ldd and tmpclean
- Add target ldd - Add target tmpclean as dependency to clean
This commit is contained in:
parent
b9f453a207
commit
71a8145e82
1 changed files with 19 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
# -- standard targets
|
# -- standard targets
|
||||||
all:
|
all:
|
||||||
install: all
|
install: all
|
||||||
clean:
|
clean: tmpclean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
.PHONY: all install clean distclean %.this
|
.PHONY: all install clean distclean %.this
|
||||||
|
|
@ -67,7 +67,7 @@ doneclean:
|
||||||
execlean: allclean objclean runclean textclean
|
execlean: allclean objclean runclean textclean
|
||||||
rm -rf $(EXE) $(PLUGIN)
|
rm -rf $(EXE) $(PLUGIN)
|
||||||
|
|
||||||
distclean: clean objclean textclean tmpclean vcdistclean profclean timerclean varclean
|
distclean: clean objclean textclean vcdistclean profclean timerclean varclean
|
||||||
|
|
||||||
localclean: $(LOCAL_CLEAN)
|
localclean: $(LOCAL_CLEAN)
|
||||||
rm -rf $(CLEAN)
|
rm -rf $(CLEAN)
|
||||||
|
|
@ -158,6 +158,22 @@ trace-marks:
|
||||||
cp $$f.rep $$f ;\
|
cp $$f.rep $$f ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
|
ifneq ($(TARGET),mingw)
|
||||||
|
ldd:
|
||||||
|
ifneq ($(wildcard *.o),)
|
||||||
|
@echo "======= objects:"
|
||||||
|
@for o in *.o; do echo "------- $$o"; ldd $$o; done
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard *.so),)
|
||||||
|
@echo "======= libraries:"
|
||||||
|
@for o in *.so; do echo "------- $$o"; ldd $$o; done
|
||||||
|
endif
|
||||||
|
ifneq ($(EXE),)
|
||||||
|
@echo "======= executables:"
|
||||||
|
@for o in $(EXE); do echo "------- $$o"; ldd $$o; done
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# -- special built-in targets
|
# -- special built-in targets
|
||||||
|
|
||||||
.PRECIOUS: $(LOCAL_H)
|
.PRECIOUS: $(LOCAL_H)
|
||||||
|
|
@ -181,7 +197,7 @@ strip.done: $(EXE_ALL)
|
||||||
$(CC) -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
$(CC) -M $(CPPFLAGS) $(DEPEND_CPPFLAGS) $< -o $@
|
||||||
|
|
||||||
ifeq ($(LIBTYPE),shared)
|
ifeq ($(LIBTYPE),shared)
|
||||||
$(SO_PREFIX)%.so: %.o # $(LIB_SO)
|
$(SO_PREFIX)%.so: %.o
|
||||||
$(LD) -shared $(LDFLAGS) $^ -o $@
|
$(LD) -shared $(LDFLAGS) $^ -o $@
|
||||||
else
|
else
|
||||||
$(SO_PREFIX)%.so: %.o
|
$(SO_PREFIX)%.so: %.o
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue