📄 makefile
字号:
# Docsis cable modem diagnostics (cmdiag) Makefile## Copyright (C) 2006-2007 Emil Penchev ## This program is free software, distributed under the terms of# the GNU General Public License## Edit this options depending on your platform and compiler specifics# Common paths for FreeBSDSNMP_LIB = /usr/local/libSNMP_INCLUDE = /usr/local/includeARCH := $(shell uname -s)ifeq ($(ARCH),Linux)CFLAGS = -Wall -O2 elseifeq ($(ARCH),FreeBSD)CFLAGS = -O2 -pipe -W -WallelseCFLAGS = -Wall -O2endifendifPREFIX = /usr/sbinEXEC = cmdiag CC = g++LIBS = `net-snmp-config --libs` `net-snmp-config --external-libs`all : cmdiag cmdiag: cmdiag.o bar.o pbar.o cmodem.o func.o $(CC) $(CFLAGS) -lncurses cmdiag.o bar.o pbar.o cmodem.o func.o -o $(EXEC) $(LIBS)cmdiag.o: cmdiag.cpp globals.h $(CC) $(CFLAGS) -c cmdiag.cppbar.o: bar.cpp bar.h $(CC) $(CFLAGS) -c bar.cpppbar.o: pbar.cpp pbar.h $(CC) $(CFLAGS) -c pbar.cppifeq ($(ARCH),FreeBSD)cmodem.o: cmodem.cpp cmodem.h $(CC) $(CFLAGS) -I$(SNMP_INCLUDE) -L$(SNMP_LIB) -c cmodem.cppelsecmodem.o: cmodem.cpp cmodem.h $(CC) $(CFLAGS) -c cmodem.cppendiffunc.o: func.cpp func.h $(CC) $(CFLAGS) -c func.cppinstall: install $(EXEC) $(PREFIX)uninstall: rm -f $(PREFIX)/$(EXEC)clean: rm -f *.o rm -f $(EXEC) rm -f *.*~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -