mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
- Upgrade libite (LITE) for new UNIX file parser API to improve static builds of Finit. - Re-enable bootmisc plugin for static builds by adding built-in support for reading GID from /etc/group. - Allow inetd support for static builds by adding built-in support for reading service and protocol from /etc/services and /etc/protocols. - Do not try to install/uninstall any plugins for static builds. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# Plugin based services architecture for finit
|
|
-include ../config.mk
|
|
|
|
TOPDIR ?= $(shell pwd)
|
|
CFLAGS += -fPIC
|
|
LDFLAGS := $(filter-out -rdynamic, $(LDFLAGS))
|
|
LDFLAGS += -shared
|
|
ifneq ($(STATIC), 1)
|
|
PLUGINS ?= initctl.so alsa-utils.so bootmisc.so dbus.so hwclock.so \
|
|
resolvconf.so urandom.so x11-common.so tty.so time.so \
|
|
netlink.so
|
|
DEPS := $(PLUGINS:.so=.d)
|
|
endif
|
|
|
|
include ../common.mk
|
|
|
|
ifneq ($(STATIC), 1)
|
|
all: $(PLUGINS)
|
|
else
|
|
all:
|
|
@true
|
|
endif
|
|
|
|
clean:
|
|
-@$(RM) $(PLUGINS)
|
|
|
|
distclean:
|
|
-@$(RM) *.o *.so $(JUNK) $(DEPS)
|
|
|
|
ifneq ($(STATIC), 1)
|
|
install: all
|
|
@install -d $(DESTDIR)$(plugindir)
|
|
@for plugin in $(PLUGINS); do \
|
|
echo " INSTALL $(DESTDIR)$(plugindir)/$$plugin"; \
|
|
$(STRIPINST) $$plugin $(DESTDIR)$(plugindir)/$$plugin; \
|
|
done
|
|
|
|
uninstall:
|
|
-@for plugin in $(PLUGINS); do \
|
|
echo " RM $(DESTDIR)$(plugindir)/$$plugin"; \
|
|
rm $(DESTDIR)$(plugindir)/$$plugin 2>/dev/null; \
|
|
done
|
|
-@rmdir $(DESTDIR)$(plugindir) 2>/dev/null
|
|
else
|
|
install:
|
|
@true
|
|
uninstall:
|
|
@true
|
|
endif
|
|
|
|
ifneq ($(MAKECMDGOALS),distclean)
|
|
-include $(DEPS)
|
|
endif
|