You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
466 B
25 lines
466 B
PLUGIN_NAME := plymouth
|
|
PLUGINS_PATH := $(DESTDIR)/lib/rc/plugins
|
|
|
|
CFLAGS += -fPIC -Wall
|
|
LDLIBS := -leinfo -lrc
|
|
LDFLAGS += -fPIC -shared
|
|
|
|
INSTALL := install -D
|
|
|
|
|
|
.PHONY: install clean
|
|
|
|
|
|
$(PLUGIN_NAME).so: $(PLUGIN_NAME).o
|
|
$(CC) $(LDFLAGS) -Wl,-soname,$@ $+ -o $@ $(LDLIBS)
|
|
|
|
clean:
|
|
$(RM) *.o *.so
|
|
|
|
install: $(PLUGIN_NAME).so
|
|
$(INSTALL) $(PLUGIN_NAME).so $(PLUGINS_PATH)/$(PLUGIN_NAME).so
|
|
|
|
uninstall:
|
|
$(RM) $(PLUGINS_PATH)/$(PLUGIN_NAME).so
|