blob: 6cece94544da23de69e35a0c3f4d53de4c2da07c [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001package_arch = $(subst -,_,${PACKAGE_ARCH})
2NAME = pal
3LIB = lib$(NAME).a lib$(NAME).so
4INSTALL = _install
5UNINSTALL = _uninstall
6
7
8include $(PREFIX)/Makefile.prebuilt.template
9
10all:
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
22clean:
23 rm -rf ./$(base_libdir) ./$(includedir)