{"version":"1.0","categories":["OS"],"provider_url":"https://hatena.blog","height":"190","type":"rich","blog_title":"\u3044\u308d\u3093\u306a\u3053\u3068\u3067\u56db\u82e6Hack\uff08\u4eee\uff09","author_name":"b1u3","published":"2019-09-23 01:59:59","provider_name":"Hatena Blog","url":"https://b1u3.hateblo.jp/entry/2019/09/23/015959","width":"100%","title":"OS\u65e5\u8a18~Makefile\u306e\u6574\u7406~","author_url":"https://blog.hatena.ne.jp/b1u3/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fb1u3.hateblo.jp%2Fentry%2F2019%2F09%2F23%2F015959\" title=\"OS\u65e5\u8a18~Makefile\u306e\u6574\u7406~ - \u3044\u308d\u3093\u306a\u3053\u3068\u3067\u56db\u82e6Hack\uff08\u4eee\uff09\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://b1u3.hateblo.jp/","image_url":null,"description":"\u4eca\u65e5\u306fMakefile\u3092\u6574\u7406\u3057\u307e\u3057\u305f\u3002 AS := x86_64-elf-as CC := x86_64-elf-gcc OBJS := boot.o kernel.o IMAGE := myos %.o: %.S Makefile $(AS) $*.S -o $@ %.o: %.c Makefile $(CC) -c $*.c -o $@ -std=gnu99 -ffreestanding -O2 -Wall -Wextra $(IMAGE).bin: $(OBJS) linker.ld $(CC) -T linker.ld -o $@ -ffreestanding -O2 -nostdli\u2026"}