mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
43 lines
814 B
Makefile
43 lines
814 B
Makefile
# generic utility modules
|
|
# (c) 2001 jannet it services
|
|
# contact@jannet.de
|
|
# $Id$
|
|
|
|
ifeq ($(EXE),)
|
|
EXE = $(notdir $(shell pwd))
|
|
endif
|
|
|
|
include $(MODDIR)/make/defs.mk
|
|
BUILD_H =
|
|
include $(MODDIR)/make/rules.mk
|
|
include $(MODDIR)/make/ldlibpath.mk
|
|
|
|
LD_LIB_PATH_ORIG := $(LD_LIBRARY_PATH)
|
|
export LD_LIBRARY_PATH=$(shell echo $(strip $(LD_LIB_PATH):$(LD_LIB_PATH_ORIG)) | sed 's/ /:/g; s/::*/:/g')
|
|
|
|
all:
|
|
install:
|
|
valgrind:
|
|
rm -f $(CORE)
|
|
valgrind ./$(EXE) $(EXE_ARGS)
|
|
run:
|
|
rm -f $(CORE)
|
|
./$(EXE) $(EXE_ARGS)
|
|
stop:
|
|
killall ./$(EXE)
|
|
kill:
|
|
killall -9 ./$(EXE)
|
|
|
|
abort:
|
|
killall -6 ./$(EXE)
|
|
|
|
strace: $(EXE) $(EXE_BIN)
|
|
strace -f ./$(EXE) $(EXE_ARGS)
|
|
kdbg gdb ddd:
|
|
$@ $(EXE) $(firstword $(CORE))
|
|
attach:
|
|
kdbg ./$(EXE) -p `ps aux | sed "/$(EXE)/ !d; /sed/ d" | awk '{print $$2}'`
|
|
|
|
debug: gdb
|
|
|
|
clean: runclean localclean
|