rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | package_arch = $(subst -,_,${PACKAGE_ARCH}) |
| 2 | NAME = pal |
| 3 | LIB = lib$(NAME).a lib$(NAME).so |
| 4 | INSTALL = _install |
| 5 | UNINSTALL = _uninstall |
| 6 | |
| 7 | |
| 8 | include $(PREFIX)/Makefile.prebuilt.template |
| 9 | |
| 10 | all: |
| 11 | _install: |
| 12 | find -name "*.$(package_arch).rpm" | while read i; do ${bindir}/rpm2cpio $${i} | cpio -idmv ; done |
| 13 | mkdir -p $(ROOT)/$(base_libdir) |
| 14 | mkdir -p $(ROOT)/$(includedir)/$(NAME) |
| 15 | -cp -af ./$(base_libdir)/lib$(NAME).* $(ROOT)/$(base_libdir)/ |
| 16 | -cp -af ./$(includedir)/* $(ROOT)/$(includedir) |
| 17 | |
| 18 | _uninstall: |
| 19 | rm -af $(ROOT)/$(base_libdir)/lib$(NAME).* |
| 20 | rm -rf $(ROOT)/$(includedir)/$(NAME) |
| 21 | |
| 22 | clean: |
| 23 | rm -rf ./$(base_libdir) ./$(includedir) |