{"id":2326,"date":"2021-10-30T16:37:21","date_gmt":"2021-10-30T07:37:21","guid":{"rendered":"https:\/\/sirius10.net\/blog\/wordpress\/?p=2326"},"modified":"2021-10-30T16:37:23","modified_gmt":"2021-10-30T07:37:23","slug":"post-2326","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/10\/30\/2326\/","title":{"rendered":"Makefile \u304c\u901a\u3089\u306a\u3044"},"content":{"rendered":"\n<p>\u3000Bullseye \u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f Raspberry Pi \u3067 make \u3067\u304d\u306a\u3044 Makefile \u304c\u3042\u308a\u307e\u3057\u305f\u3002\u4ee5\u524d\u306f\u3067\u304d\u3066\u3044\u305f\u306e\u306b\u3001\u3069\u3046\u3057\u3066\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3000\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">TARGET=block\nSRCS=block.c pico.mp3 piro.mp3 readme.txt\nOBJS=block.o\nSDL2LIBS=-lSDL2_mixer -lSDL2_ttf `pkg-config sdl2 --libs`\nCC=gcc\nINSTALLDIR=\/home\/pi\/bin\nINSTALL=install -s\nCFLAGS+=-O3 `pkg-config sdl2 --cflags`\nLDFLAGS+=$(SDL2LIBS) -lm\n\nall: $(TARGET)\n\n.c.o:\n        $(CC) $(CFLAGS) -c $&lt;\n\n$@: $@.o\n        $(CC) -o $@ $@.o $(LDFLAGS)\n\nclean:\n        rm -f *.o $(TARGET)\n\ntar: $(TARGET).tar.gz\n\n$(TARGET).tar.gz: Makefile $(SRCS) $(TARGET)\n        tar cvfz $@ Makefile $(SRCS) $(TARGET)\n\ninstall: $(TARGET)\n        $(INSTALL) $(TARGET) $(INSTALLDIR)\n        cp pico.mp3 piro.mp3 $(INSTALLDIR)<\/pre>\n\n\n\n<p>\u3000\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u3057\u3088\u3046\u304c\u306a\u3044\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted file\">TARGET=block\nSRCS=block.c pico.mp3 piro.mp3 readme.txt\nOBJS=block.o\nSDL2LIBS=-lSDL2_mixer -lSDL2_ttf `pkg-config sdl2 --libs`\nCC=gcc\nINSTALLDIR=\/home\/pi\/bin\nINSTALL=install -s\nCFLAGS+=-O3 `pkg-config sdl2 --cflags`\nLDFLAGS+=$(SDL2LIBS) -lm\n\nall: $(TARGET)\n\n.c.o:\n        $(CC) $(CFLAGS) -c $&lt;\n\n<span style=\"background-color: #ffff00\" class=\"background-color\">block: $(OBJS)\n<\/span>        $(CC) -o $@ $@.o $(LDFLAGS)\n\nclean:\n        rm -f *.o $(TARGET)\n\ntar: $(TARGET).tar.gz\n\n$(TARGET).tar.gz: Makefile $(SRCS) $(TARGET)\n        tar cvfz $@ Makefile $(SRCS) $(TARGET)\n\ninstall: $(TARGET)\n        $(INSTALL) $(TARGET) $(INSTALLDIR)\n        cp pico.mp3 piro.mp3 $(INSTALLDIR)<\/pre>\n\n\n\n<p>\u3000\u95a2\u9023\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Bullseye \u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f Raspberry Pi \u3067 make \u3067\u304d\u306a\u3044 Makefile \u304c\u3042\u308a\u307e\u3057\u305f\u3002\u4ee5\u524d\u306f\u3067\u304d\u3066\u3044\u305f\u306e\u306b\u3001\u3069\u3046\u3057\u3066\u3067\u3057\u3087\u3046\u3002 \u3000\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u3059\u3002 TARGET=block SRCS= [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2326","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=2326"}],"version-history":[{"count":1,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2326\/revisions"}],"predecessor-version":[{"id":2327,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/2326\/revisions\/2327"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=2326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=2326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=2326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}