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.

46 lines
888 B

  1. PLUGIN_NAME := plymouth
  2. PLUGINS_PATH := $(DESTDIR)/lib/rc/plugins
  3. PKG_NAME := $(PLUGIN_NAME)-openrc-plugin
  4. PKG_VERSION := 0.1.2
  5. PKG := $(PKG_NAME)-$(PKG_VERSION)
  6. BZIP2 := bzip2 -f -9
  7. GZIP := gzip -f -9
  8. CFLAGS += -fPIC -Wall
  9. LDLIBS := -leinfo -lrc
  10. LDFLAGS += -fPIC -shared
  11. INSTALL := install -D
  12. %.tar.bz2: %.tar
  13. $(BZIP2) $<
  14. %.tar.gz: %.tar
  15. $(GZIP) $<
  16. .PHONY: archive clean install uninstall upload
  17. $(PLUGIN_NAME).so: $(PLUGIN_NAME).o
  18. $(CC) $(LDFLAGS) -Wl,-soname,$@ $+ -o $@ $(LDLIBS)
  19. clean:
  20. $(RM) *.o *.so
  21. install: $(PLUGIN_NAME).so
  22. $(INSTALL) $< $(PLUGINS_PATH)/$<
  23. uninstall:
  24. $(RM) $(PLUGINS_PATH)/$(PLUGIN_NAME).so
  25. $(PKG).tar: .git
  26. git archive --format=tar --prefix=$(PKG)/ v$(PKG_VERSION) > $@
  27. archive: $(PKG).tar.bz2
  28. upload: $(PKG).tar.bz2
  29. scp $< dev.gentoo.org:~/public_html/distfiles/sys-boot/$(PKG_NAME)/