OBJS=$(addprefix objects/,$(addsuffix .o,$(basename $(notdir $(SRC)))))
all: objects deps netd install
# automatic generation of all the rules written by vincent by hand.deps: $(SRC) Makefile@echo "Generating new dependency file...";@-rm -f deps;@for f in $(SRC); do / OBJ=objects/`basename $$f|sed -e 's//.cpp//.o/' -e 's//.c//.o/'`; / echo $$OBJ: $$f>> deps; / echo '$(CC) $$(CFLAGS) -c -o $$@ $$^'>> deps; / done-include ./deps
原文链接:https://www.f2er.com/javaschema/288332.html