plugin.mk: Remove some legacy stuff from exe.mk

This commit is contained in:
Jan Lindemann 2005-12-01 08:57:28 +00:00 committed by Jan Lindemann
commit 6cbbfa0150

View file

@ -4,22 +4,17 @@
# $Id$
ifeq ($(PLUGIN),)
PLUGIN = $(notdir $(shell pwd))
PLUGIN = lib$(notdir $(shell pwd)).so
endif
include $(MODDIR)/make/defs.mk
include $(MODDIR)/make/rules.mk
export LD_LIBRARY_PATH=$(shell echo $(strip $(LD_LIB_PATH)) | sed 's/ /:/g; s/::/:/g')
ifeq ($(INSTALLED_PLUGIN),)
INSTALLED_PLUGIN = $(INSTALL_LIBDIR)/$(PLUGIN)
endif
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))
all: $(PLUGIN)
install: $(INSTALLED_PLUGIN)
clean: execlean localclean
libpath:
@echo "export LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)"
distclean: clean