mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-22 22:20:39 +01:00
make, scripts: Re-add files necessary for building ytools
Re-add everthing needed for building and packaging ytools. This is a big commit, 2002 lines of code. It mostly consists of C/C++ machinery, plus some documentation-related stuff. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
0a9340af49
commit
bf16c6714b
27 changed files with 1975 additions and 0 deletions
32
make/test-exe.mk
Normal file
32
make/test-exe.mk
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# generic utility modules
|
||||
# (c) 2001 jannet it services
|
||||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
EXE_BASENAME ?= test-$(notdir $(shell $(PWD)))
|
||||
|
||||
include $(JWBDIR)/make/run.mk
|
||||
|
||||
all: $(EXE)
|
||||
install:
|
||||
clean: execlean localclean profclean testclean
|
||||
distclean:
|
||||
run test: all.dirs $(EXE) $(EXE_BIN)
|
||||
strace: $(EXE) $(EXE_BIN)
|
||||
test: test.done
|
||||
|
||||
test.done:
|
||||
if ! 2>&1 make run > test.out 2>&1; then \
|
||||
$(CAT) test.out; \
|
||||
exit 1; \
|
||||
fi
|
||||
touch $@
|
||||
|
||||
testclean:
|
||||
$(RM) -rf test.done test.out
|
||||
|
||||
ifeq ($(USE_PROJECT_LIB),true)
|
||||
$(LIB_SO): $(LIB_A)
|
||||
$(EXE): $(LIB_SO)
|
||||
endif
|
||||
all.dirs:
|
||||
Loading…
Add table
Add a link
Reference in a new issue