📄 makefile.h
字号:
################################################################### Makefile with general settings for the book "C++ Templates"# - is included by each individual Makefile# - please send updates and suggestions to tmplbook@josuttis.com########################################################################### GCC settings#########GCCFLAGS=-g -Wall -ansi -fhonor-stdGCCFLAGS=-g -ansi -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic# gcc 3.0.2GCCDIR=/local/gcc/rundirCXX = $(GCCDIR)/bin/g++CXXFLAGS = $(GCCFLAGS)LIBCPPDIR = $(GCCDIR)/libLDFLAGS = -L$(LIBCPPDIR) -Wl,--rpath -Wl,$(LIBCPPDIR) -lm######### EDG (and my personal std headers)########CXX = /local/edg/bin/eccp --exceptions --strictCXXFLAGS = -Imystd -I../mystdLDFLAGS = -lm######### Microsoft Visual C++########CXX = cl /Za /Zc:forScope,wchar_tCXXFLAGS =LDFLAGS = ##################################################################help:: @echo "all: progs"all:: progs.SUFFIXES: .ctt .htt .cpp .hpp.cpp.o: $(CXX) $(CXXFLAGS) -c $*.cpp.o: $(CXX) $*.o $(LDFLAGS) -o $*help:: @echo 'progs: create all in $$(PROGS) and in $$(OUTPROGS)' @echo " (failed progs in MAKE.LOG)"progs:: @cat /dev/null > MAKE.LOG @if test "$(PROGS)" != "" ; \ then \ for PROG in $(PROGS)""; \ do \ echo "MAKE $$PROG"; \ make $$PROG || echo " + make $$PROG failed !!!" >> MAKE.LOG; \ done; \ fi @if test "$(OUTPROGS)" != "" ; \ then \ for PROG in $(OUTPROGS)""; \ do \ echo "MAKE $$PROG"; \ make $$PROG || echo " + make $$PROG failed !!!" >> MAKE.LOG; \ done; \ fi @if test -s MAKE.LOG ; \ then \ echo "failures:"; \ cat MAKE.LOG; \ else \ echo "no failure"; \ fihelp:: @echo 'clean: clean all generated'clean:: rm -rf MAKE.LOG *.o *.exe *.ii *.ti *~ rm -rf $(PROGS) $(OUTPROGS) @for DATEI in *.ctt; \ do \ BASE=`basename $$DATEI .ctt`; \ if test -r $$BASE.cpp; \ then \ echo " remove $$BASE.cpp"; \ rm $$BASE.cpp; \ fi; \ if test -x $$BASE; \ then \ echo " remove $$BASE"; \ rm $$BASE; \ fi; \ done @for DATEI in *.cpp; \ do \ BASE=`basename $$DATEI .cpp`; \ if test -x $$BASE; \ then \ echo " remove $$BASE"; \ rm $$BASE; \ fi; \ done @for DATEI in *.htt; \ do \ BASE=`basename $$DATEI .htt`; \ if test -r $$BASE.hpp; \ then \ echo " remove $$BASE.hpp"; \ rm $$BASE.hpp; \ fi; \ done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -