mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
Everywhere: Remove everything non-essential for "make clean all"
This commit removes everything not strictly necessary for running "make clean all" inside jw-build. packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code. The idea is to 1) Further remove bloat from the remaining bits 2) Re-add what's necessary to build and package other essential repos. The decision should be based on whether or not jw-build can also be useful in a non-janware context. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c36c83c164
commit
bc883deed4
199 changed files with 0 additions and 18851 deletions
96
make/lib.mk
96
make/lib.mk
|
|
@ -1,96 +0,0 @@
|
|||
# generic utility modules
|
||||
# (c) 2001 jannet it services
|
||||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
include $(JWBDIR)/make/defs.mk
|
||||
include $(JWBDIR)/make/defs-cpp.mk
|
||||
include $(JWBDIR)/make/rules.mk
|
||||
include $(JWBDIR)/make/dev-utils.mk
|
||||
|
||||
all:
|
||||
|
||||
ifeq ($(wildcard $(LIB_A)),)
|
||||
USE_PROJECT_LIB = false
|
||||
endif
|
||||
|
||||
ifeq ($(USE_PROJECT_LIB),false)
|
||||
ifeq ($(TARGET),mingw)
|
||||
SHOBJS += $(wildcard *.dll)
|
||||
else
|
||||
SHOBJS += $(wildcard *.so)
|
||||
endif
|
||||
all: $(LD_CONF)
|
||||
install:
|
||||
else
|
||||
all: $(LD_CONF) $(LIB_SO) $(LINKS_SO) $(MSVCPP_IMPLIB) $(STRIP_DONE)
|
||||
install: install_LIB
|
||||
endif
|
||||
clean: libclean local_libclean clean.ld-conf
|
||||
distclean: clean
|
||||
|
||||
local_libclean: clean.mingw clean.unix clean.all
|
||||
|
||||
ifneq ($(wildcard *.so *.so.*),)
|
||||
install: install_files_LD_CONF
|
||||
endif
|
||||
|
||||
clean.unix:
|
||||
ifneq ($(TARGET),mingw)
|
||||
$(RM) -rf *.so.* *.so st*
|
||||
endif
|
||||
|
||||
clean.mingw:
|
||||
ifeq ($(TARGET),mingw)
|
||||
$(RM) -rf *.dll *.def *.exp *.lib
|
||||
endif
|
||||
|
||||
clean.all:
|
||||
$(RM) -rf *.a *.o *~ st* .*.swp *.done ld-*.conf version.ldscript
|
||||
|
||||
ld-%.conf:
|
||||
echo $(INSTALL_LIBDIR) > $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
clean.ld-conf:
|
||||
$(RM) -f $(LD_CONF)
|
||||
|
||||
echo.libs:
|
||||
@echo INSTALLED_LIB_SO = $(INSTALLED_LIB_SO)
|
||||
@echo INSTALLED_LIB = $(INSTALLED_LIB)
|
||||
|
||||
install-links:
|
||||
l=$(shell $(PWD))/$(notdir $(INSTALLED_LIB_SO)) ;\
|
||||
cd $(dir $(INSTALLED_LIB_SO)) &&\
|
||||
sudo ln -sf $$l
|
||||
# ------------------------------------------ contrib libraries
|
||||
# deps on mandatory targets
|
||||
all: $(CONTRIB_LIBS)
|
||||
clean: clean.contrib-libs
|
||||
|
||||
# deps on optional targets
|
||||
echo-contrib: echo.contrib-libs echo.libs
|
||||
|
||||
# rules
|
||||
clean.contrib-libs:
|
||||
$(RM) -f $(CONTRIB_LIBS)
|
||||
|
||||
define contrib_lib_search_rules
|
||||
%.dll: $(1)/%.dll
|
||||
cp -p $$< $$@
|
||||
endef
|
||||
|
||||
$(foreach p,$(CONTRIB_LIBS_PATH),$(eval $(call contrib_lib_search_rules,$(p))))
|
||||
|
||||
echo.contrib-libs:
|
||||
@echo CONTRIB_LIBS_PATH = $(CONTRIB_LIBS_PATH)
|
||||
@echo CONTRIB_LIBS = $(CONTRIB_LIBS)
|
||||
|
||||
ifeq ($(TARGET),mingw)
|
||||
clean.winres:
|
||||
$(RM) -f $(WINRES_RC) $(WINRES_O) *.tmp
|
||||
|
||||
clean: clean.winres
|
||||
#%.o : %.rc
|
||||
# $(WINDRES) $^ -o $@
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue