lib.mk (374B)
1 .include "c.mk" 2 3 lib = lib${name}.a 4 5 ${name}: ${lib} 6 7 ${lib}: ${obj} 8 ${AR} urcs $@ ${obj} 9 10 install: ${lib} 11 cp -f ${lib} ${PREFIX}/lib/${lib} 12 mkdir -p ${PREFIX}/include/${name} 13 cp -f ${inc} ${PREFIX}/include/${name} 14 15 uninstall: 16 rm -f ${PREFIX}/lib/${lib} 17 rm -rf ${PREFIX}/include/${name} 18 19 clean: 20 rm -f ${lib} ${obj} 21 22 .PHONY: ${name} install uninstall 23 .SUFFIXES: .a .o