[ C++ã§éçº ] GNU makeã®ä½¿ãæ¹ æ´æ°æ¥ï¼ ï¼£++ã®ãã«ããGNU makeã§è¡ãã¾ãã Makefileè¨è¿°ãã³ãã¬ã¼ã åä¸ãã£ã¬ã¯ããªã§1ã¤ã®å®è¡ãã¡ã¤ã«ä½æç¨ Hello makefileï¼Ver.1) ä¸ã¤ã®srcãã£ã¬ã¯ããªãä¸ã¤ã®includeãã£ã¬ã¯ããªãããªãã½ã¼ã¹ãã¡ã¤ã«ãmakeããä¸ã¤ã®å®è¡ãã¡ã¤ã«ãä½æãã¾ãã PROGRAM = hello.exe SRCS = Hello.cc Main.cc OBJS = $(subst .cc,.o,$(SRCS)) RM := rm CXX := g++ CC := g++ CPPFLAGS = -I../include LDFLAGS = -mno-cygwin $(PROGRAM): $(OBJS) $(LINK.o) $^ $(LOADLIBES) -o $@ .PHONY: clean clean:
{{#tags}}- {{label}}
{{/tags}}