plugin.mk: Add file

This commit is contained in:
Jan Lindemann 2005-05-05 16:37:31 +00:00 committed by Jan Lindemann
commit 9f13ac5959

25
make/plugin.mk Normal file
View file

@ -0,0 +1,25 @@
# generic utility modules
# (c) 2001 jannet it services
# contact@jannet.de
# $Id$
ifeq ($(PLUGIN),)
PLUGIN = $(notdir $(shell pwd))
endif
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/rules.mk
export LD_LIBRARY_PATH=$(shell echo $(strip $(LD_LIB_PATH)) | sed 's/ /:/g')
all: $(PLUGIN) $(PLUGIN_BIN)
install: $(INSTALLED_PLUGIN) $(INSTALLED_PLUGIN_BIN)
run: $(PLUGIN) $(PLUGIN_BIN)
./$(PLUGIN) $(PLUGIN_ARGS)
strace: $(PLUGIN) $(PLUGIN_BIN)
strace -f ./$(PLUGIN) $(PLUGIN_ARGS)
kdbg gdb ddd:
rm -f $(CORE); make run; $@ $(PLUGIN) $(firstword $(CORE))
clean: execlean localclean
libpath:
@echo "export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)"