{"id":847,"date":"2012-07-07T21:52:55","date_gmt":"2012-07-07T13:52:55","guid":{"rendered":"http:\/\/www.dogeye.net\/?p=847"},"modified":"2012-07-07T21:52:55","modified_gmt":"2012-07-07T13:52:55","slug":"linux%e5%86%85%e6%a0%b8makefiles%e6%95%99%e7%a8%8b%e4%b8%80-2","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=847","title":{"rendered":"Linux\u5185\u6838Makefiles\u6559\u7a0b(\u4e8c)"},"content":{"rendered":"<p><a href=\"http:\/\/ykyi.net\/2012\/07\/linux\u5185\u6838makefiles\u6559\u7a0b\u4e00\/\">\u63a5\u7b2c\u4e00\u7bc7&nbsp;<\/a><\/p>\n<p><strong>3.3.<\/strong><strong>\u53ef\u52a0\u8f7d\u6a21\u5757\u76ee\u6807<\/strong><strong> obj-m (Loadable module goals &#8211; obj-m)<\/strong><\/p>\n<p>obj-m\u6307\u5b9a\u5c06\u88ab\u6784\u5efa\u4e3a\u53ef\u52a0\u8f7d\u5185\u6838\u6a21\u5757\u7684\u5bf9\u8c61\u6587\u4ef6(object file)\u3002<\/p>\n<p>\u4e00\u4e2a\u6a21\u5757\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\u6216\u8005\u4ece\u591a\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\u3002\u5982\u679c\u6a21\u5757\u4ec5\u4ec5\u4ece\u4e00\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\uff0ckbuild makefile\u4ec5\u4ec5\u628a\u5bf9\u8c61\u6587\u4ef6\u52a0\u5230obj-m\u3002\u5982\u4e0b\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #drivers\/isdn\/i4l\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_ISDN_PPP_BSDCOMP) += isdn_bsdcomp.o<\/p>\n<p><em>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<\/em><em>$(CONFIG_ISDN_PPP_BSDCOMP)<\/em><em>\u88ab\u6c42\u503c\u4e3a<\/em><em>m.<\/em><\/p>\n<p>If a kernel module is built from several source files, you specify that you want to build a module in the same way as above.<\/p>\n<p>\u5982\u679c\u4e00\u4e2a\u5185\u6838\u6a21\u5757\u9700\u8981\u4ece\u591a\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\uff0c\u4f60\u4e5f\u662f\u6309\u7167\u521a\u624d\u63d0\u5230\u7684\u90a3\u4e00\u884c\u6307\u5b9a\u3002\u4e0d\u8fc7\uff0c\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u8981\u989d\u5916\u5730\u6307\u5b9a\uff0c\u4f60\u7684\u5185\u6838\u6a21\u5757\u9700\u8981\u54ea\u4e9b\u5bf9\u8c61\u6587\u4ef6\u3002\u6240\u4ee5\u8fd8\u9700\u8981\u8bbe\u7f6e&lt;\u6a21\u5757\u540d&gt;-objs\u53d8\u91cf\u3002\u5982\u4e0b\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;#drivers\/isdn\/i4l\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_ISDN) += isdn.o<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isdn-objs := isdn_net_lib.o isdn_v110.o isdn_common.o<\/p>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6a21\u5757\u540d\u662f isdn \u3002Kbuild\u5c06\u7f16\u8bd1isdn-objs\u5217\u51fa\u7684\u6240\u6709\u5bf9\u8c61\u6587\u4ef6\uff0c\u7136\u540e\u8fd0\u884c$(LD) &ndash;r\u628a\u8fd9\u4e9b\u5bf9\u8c61\u6587\u4ef6\u94fe\u63a5\u6210\u4e00\u4e2a\u6587\u4ef6isdn.o\u3002<\/p>\n<p>Kbuild\u7528-objs\u540e\u7f00\u6216\u8005-y\u540e\u7f00\u8bc6\u522b\u6784\u6210\u590d\u5408\u5bf9\u8c61\u6587\u4ef6(composite objects)\u7684\u5bf9\u8c61\u6587\u4ef6\u3002\u8fd9\u6837\uff0cMakefile\u5c31\u53ef\u4ee5\u4f7f\u7528CONFIG_* \u7b26\u53f7\u6765\u786e\u5b9a\u4e00\u4e2a\u5bf9\u8c61\u6587\u4ef6\u662f\u4e0d\u662f\u4e00\u4e2a\u590d\u5408\u5bf9\u8c61\u6587\u4ef6\u7684\u4e00\u90e8\u5206\u3002\u5982\u4e0b\uff1a<\/p>\n<p>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#fs\/ext2\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_EXT2_FS)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; += ext2.o<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext2-y&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; := balloc.o bitmap.o<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ext2-$(CONFIG_EXT2_FS_XATTR) += xattr.o<\/p>\n<p>\u5728\u4e0a\u4f8b\u4e2d\uff0c\u5982\u679c$(CONFIG_EXT2_FS_XATTR)\u6c42\u503c\u4e3ay\uff0c\u5219xattr.o\u662f\u590d\u5408\u5bf9\u8c61\u6587\u4ef6ext2.o\u7684\u7ec4\u6210\u90e8\u5206\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u5982\u679c\u4f60\u8981\u628a\u5bf9\u8c61\u6587\u4ef6\u7f16\u8bd1\u8fdb\u5165\u5185\u6838\u6620\u8c61\u6587\u4ef6\u3002\u4e5f\u53ef\u4ee5\u5e94\u7528\u4e0a\u8ff0\u8bed\u6cd5\u3002\u6bd4\u5982\uff0c\u5982\u679cCONFIG_EXT2_FS=y\uff0ckbuild\u5c31\u4f1a\u6784\u5efa\u4e00\u4e2aext2.o\u6587\u4ef6\uff0c\u5982\u4f60\u6240\u60f3\uff0c\u518d\u628a\u8fd9\u4e2a\u6587\u4ef6\u94fe\u63a5\u5230build-in.o\u3002<\/p>\n<p><strong>3.4. <\/strong><strong>\u5bfc\u51fa\u7b26\u53f7\u7684\u5bf9\u8c61\u6587\u4ef6<\/strong><\/p>\n<p>\u5e76\u4e0d\u9700\u8981\u5728Makefile\u4e2d\u4e3a\u6a21\u5757\u4f7f\u7528\u7279\u6b8a\u7684\u6807\u8bb0\u6765\u5bfc\u51fa\u7b26\u53f7\u3002<\/p>\n<p><strong>3.5. <\/strong><strong>\u5e93\u6587\u4ef6\u76ee\u6807<\/strong><strong>(Library file goals &#8211; lib-y)<\/strong><\/p>\n<p>\u5728obj-*\u4e2d\u6307\u5b9a\u7684\u5bf9\u8c61\u6587\u4ef6\u5217\u8868\u6216\u8005\u88ab\u7528\u6765\u6784\u5efa\u5185\u6838\u6a21\u5757\uff0c\u6216\u8005\u88ab\u5185\u5efa\u5230\u5185\u6838\u6620\u8c61\u6587\u4ef6\u4e4b\u4e2d\u3002Makefile\u8fd8\u80fd\u6307\u5b9a\u521b\u5efa\u5e93\u6587\u4ef6\u7684\u5bf9\u8c61\u6587\u4ef6\u3002\u6240\u6709\u5728lib-y\u4e2d\u6307\u5b9a\u7684\u5bf9\u8c61\u6587\u4ef6\u4f1a\u88ab\u7528\u6765\u5728\u5bf9\u5e94\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u5e93\u6587\u4ef6\u3002\u6ce8\u610f\u5df2\u7ecf\u5728obj-y\u4e2d\u5217\u51fa\u8fc7\u7684\u5bf9\u8c61\u6587\u4ef6\uff0c\u5982\u679c\u518d\u5728lib-y\u4e2d\u5217\u51fa\uff0c\u5219\u4e0d\u4f1a\u88ab\u7528\u6765\u521b\u5efa\u5e93\u6587\u4ef6\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u5bf9\u8c61\u6587\u4ef6\u5c06\u662f\u5168\u5c40\u53ef\u89c1\u7684\u3002\u4e3a\u4e86\u4e00\u81f4\u6027\uff0clib-m\u4e2d\u5217\u51fa\u7684\u5bf9\u8c61\u6587\u4ef6\u4f1a\u88ab\u5305\u542b\u5230lib.a\u3002<\/p>\n<p>\u6ce8\u610f\uff0c\u540c\u4e00\u4e2akbuild makefile\u4f1a\u540c\u65f6\u6307\u5b9a\u88ab\u5185\u5efa\u5230\u5185\u6838\u6620\u8c61\u4e2d\u7684\u5bf9\u8c61\u6587\u4ef6\uff0c\u4e5f\u4f1a\u6307\u5b9a\u7528\u6765\u521b\u5efa\u5e93\u6587\u4ef6\u7684\u5bf9\u8c61\u6587\u4ef6\u3002\u56e0\u6b64\uff0c\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\u9762\u6709\u53ef\u80fd\u540c\u65f6\u5b58\u5728built-in.o\u548clib.a\u6587\u4ef6\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #arch\/i386\/lib\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lib-y&nbsp;&nbsp;&nbsp; := checksum.o delay.o<\/p>\n<p>\u4e0a\u4f8b\u4e2d\uff0c\u4f1a\u57fa\u4e8echecksum.o\u548cdelay.o\u521b\u5efa\u4e00\u4e2a\u5e93\u6587\u4ef6lib.a\u3002\u4e3a\u4e86\u8ba9kbuild\u610f\u8bc6\u5230\u8be5\u76ee\u5f55\u4e0b\u6709lib.a\u5e93\u6587\u4ef6\u88ab\u521b\u5efa\uff0c\u8fd9\u4e2a\u76ee\u5f55\u9700\u8981\u88ab\u5217\u5165\u5230libs-y\u3002\u672c\u6559\u7a0b\u5c06\u57286.3\u8282&rdquo;\u5217\u51fa\u9700\u8981\u904d\u5386\u7684\u8def\u5f84&rdquo;\u4e2d\u8be6\u8ff0\u3002<\/p>\n<p>lib-y\u7684\u4f7f\u7528\u901a\u5e38\u53d7\u9650\u4e8e lib\/ \u548c arch\/*\/lib\u3002<\/p>\n<p><strong>3.6. <\/strong><strong>\u6df1\u5165\u904d\u5386\u5b50\u76ee\u5f55\u5939<\/strong><\/p>\n<p>\u6bcf\u4e2aMakefile\u6587\u4ef6\u53ea\u8d1f\u5219\u5728\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u9762\u6784\u5efa\u5bf9\u8c61\u3002\u5728\u5b50\u76ee\u5f55\u4e0b\u9762\u7684\u6784\u5efa\u5219\u7531\u5b50\u76ee\u5f55\u4e0b\u9762\u7684\u5bf9\u8c61Makefile\u8d1f\u8d23\u3002\u4e0d\u8fc7\u4f60\u9700\u8981\u4f7f\u7528\u4f7f\u7528obj-y\u6216\u8005obj-m\u544a\u8bc9kbuild\u7cfb\u7edf\u5c06\u8fdb\u5165\u54ea\u4e9b\u5b50\u76ee\u5f55\u3002\u6bd4\u5982\u8bdd\uff1a\u5f53\u524d\u76ee\u5f55\u662ffs\/\uff0cext2\/\u662f\u5f53\u524d\u76ee\u5f55\u4e0b\u9762\u7684\u4e00\u4e2a\u5b50\u76ee\u5f55\uff0c\u4e3a\u4e86\u544a\u8bc9kbuild\u8fdb\u5165ext2\/\u76ee\u5f55\uff0c\u4f7f\u7528\u4ee5\u4e0b\u7684\u8bed\u53e5\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #fs\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_EXT2_FS) += ext2\/<\/p>\n<p>\u5982\u679cCONFIG_EXT2_FS\u88ab\u6c42\u503c\u4e3ay\uff08\u5185\u5efa\uff09\u6216\u8005m(\u6a21\u5757)\uff0c\u90a3\u4e48obj-*\u53d8\u91cf\u5c31\u4f1a\u544a\u8bc9kbuild\u9700\u8981\u8fdb\u5165ext2\/\u5b50\u76ee\u5f55\u7ee7\u7eed\u7f16\u8bd1\u3002<\/p>\n<p>Kbuild\u4ec5\u4ec5\u4f7f\u7528\u8fd9\u4e2a\u4fe1\u606f\u6765\u901a\u77e5\u662f\u5426\u8fdb\u5165\u67d0\u4e2a\u5b50\u76ee\u5f55\uff0c\u800c\u8fdb\u5165\u540e\u7684\u5b50\u76ee\u5f55\u4e0b\u9762\u662f\u7528\u5185\u5efa\u65b9\u5f0f\u7f16\u8bd1\u8fd8\u662f\u7f16\u8bd1\u6210\u6a21\u5757\u5219\u662f\u7531\u5b50\u76ee\u5f55\u4e0b\u9762\u7684Makefile\u6587\u4ef6\u6307\u5b9a\u3002\u6700\u597d\u50cf\u4e0a\u4f8b\u90a3\u4e2a\u4f7f\u7528CONFIG_*\u53d8\u91cf\u3002\u8fd9\u6837\u7684\u597d\u5904\u662f\uff0c\u5982\u679cCONFIG_*\u53d8\u91cf\u7684\u6c42\u503c\u65e2\u4e0d\u662fy\u4e5f\u4e0d\u662fm\uff0c\u90a3\u4e48kbuild\u5c31\u5b8c\u5168\u53ef\u4ee5\u5ffd\u7565\u6389\u67d0\u5b50\u76ee\u5f55\u4e86\u3002<\/p>\n<p><strong>3.7. <\/strong><strong>\u7f16\u8bd1\u9009\u9879<\/strong><strong>\/<\/strong><strong>\u6807\u8bc6<\/strong><\/p>\n<p>EXTRA_CFLAGS, EXTRA_AFLAGS, EXTRA_LDFLAGS, EXTRA_ARFLAGS<\/p>\n<p>\u6240\u6709\u7684EXTRA_VARIABLES\u4ec5\u4ec5\u4f5c\u7528\u4e8e\u5b83\u4eec\u88ab\u8d4b\u503c\u7684kbuild makefile\uff0c\u5e94\u7528\u4e8e\u6240\u6709\u8be5makefile\u6587\u4ef6\u4e2d\u6267\u884c\u7684\u547d\u4ee4\u3002<\/p>\n<p>$(EXTRA_CFLAGS)\u6307\u5b9a\u4e86\u7f16\u8bd1C\u6587\u4ef6\u7684C\u7f16\u8bd1\u5668\u7684\u7f16\u8bd1\u9009\u9879\u3002<\/p>\n<p>Example:<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # drivers\/sound\/emu10k1\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTRA_CFLAGS += -I$(obj)<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ifdef DEBUG<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTRA_CFLAGS += -DEMU10K1_DEBUG<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif<\/p>\n<p>\u53d8\u91cf<span class=\"katex math inline\">( EXTRA_CFLAGS)\u662f\u5fc5\u8981\u7684\uff0c\u56e0\u4e3a\u6700\u4e0a\u7ea7\u7684Makefile\u5b9a\u4e49\u7684<\/span>(CFLAGS)\u4f5c\u7528\u4e8e\u6574\u4e2alinux\u5185\u6838\u4ee3\u7801\u6811\u3002<\/p>\n<p>\u800c$(EXTRA_AFLAGS)\u7684\u4f5c\u7528\u57df\u5219\u662f\u6bcf\u4e2a\u6587\u4ef6\u5939\u4e0b\u9762\u5355\u72ec\u7684Makefile\u3002<\/p>\n<p>\u6bd4\u5982\u4e0b\u9762\u7684\u4f8b\u5b50\u7f16\u8bd1\u6c47\u7f16\u8bed\u8a00\u7a0b\u5e8f\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #arch\/x86_64\/kernel\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTRA_AFLAGS := -traditional<\/p>\n<p>$(EXTRA_LDFLAGS) \u7528\u4e8e\u5f53\u524dMakefile\u6587\u4ef6\u4e2d\u7684$(LD)\u3002<\/p>\n<p>$(EXTRA_ARFLAGS) \u5219\u7528\u4e8e\u5f53\u524dMakefile\u6587\u4ef6\u4e2d\u7684$(AR)\u3002<\/p>\n<p>Example:<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #arch\/m68k\/fpsp040\/Makefile<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTRA_LDFLAGS := -x<\/p>\n<p>\u672a\u5b8c\u5f85\u7eed<\/p>\n<p>copyright ykyi.net<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a5\u7b2c\u4e00\u7bc7&nbsp; 3.3.\u53ef\u52a0\u8f7d\u6a21\u5757\u76ee\u6807 obj-m (Loadable module goals &#8211; obj-m) obj-m\u6307\u5b9a\u5c06\u88ab\u6784\u5efa\u4e3a\u53ef\u52a0\u8f7d\u5185\u6838\u6a21\u5757\u7684\u5bf9\u8c61\u6587\u4ef6(object file)\u3002 \u4e00\u4e2a\u6a21\u5757\u53ef\u4ee5\u4ece\u4e00\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\u6216\u8005\u4ece\u591a\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\u3002\u5982\u679c\u6a21\u5757\u4ec5\u4ec5\u4ece\u4e00\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\uff0ckbuild makefile\u4ec5\u4ec5\u628a\u5bf9\u8c61\u6587\u4ef6\u52a0\u5230obj-m\u3002\u5982\u4e0b\uff1a &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #drivers\/isdn\/i4l\/Makefile &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_ISDN_PPP_BSDCOMP) += isdn_bsdcomp.o \u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c$(CONFIG_ISDN_PPP_BSDCOMP)\u88ab\u6c42\u503c\u4e3am. If a kernel module is built from several source files, you specify that you want to build a module in the same way as above. \u5982\u679c\u4e00\u4e2a\u5185\u6838\u6a21\u5757\u9700\u8981\u4ece\u591a\u4e2a\u6e90\u6587\u4ef6\u6784\u5efa\uff0c\u4f60\u4e5f\u662f\u6309\u7167\u521a\u624d\u63d0\u5230\u7684\u90a3\u4e00\u884c\u6307\u5b9a\u3002\u4e0d\u8fc7\uff0c\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u8981\u989d\u5916\u5730\u6307\u5b9a\uff0c\u4f60\u7684\u5185\u6838\u6a21\u5757\u9700\u8981\u54ea\u4e9b\u5bf9\u8c61\u6587\u4ef6\u3002\u6240\u4ee5\u8fd8\u9700\u8981\u8bbe\u7f6e&lt;\u6a21\u5757\u540d&gt;-objs\u53d8\u91cf\u3002\u5982\u4e0b\uff1a &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;#drivers\/isdn\/i4l\/Makefile &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj-$(CONFIG_ISDN) += isdn.o &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; isdn-objs := isdn_net_lib.o &hellip; <a href=\"https:\/\/ykyi.net\/?p=847\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux\u5185\u6838Makefiles\u6559\u7a0b(\u4e8c)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[52,55],"class_list":["post-847","post","type-post","status-publish","format-standard","hentry","category-tech_articles","category-unix_linux","tag-linux-kernel","tag-makefile"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=847"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/847\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}