📄 makefile
字号:
# Makefile for utelnetd# # Configure this with the following environment variables:## where to installINSTDIR := /usr/local/bin/# GNU target string CROSS :=# where to find login programifneq ("", "$(BSD)")LOGIN := /usr/bin/loginelseLOGIN := /bin/loginendififneq ("", "$(BSD)")CORE := utelnetd.coreelseCORE := coreendif# nothing to configure below this line... ---8<---8<---8<---PROGS = utelnetdINSTMODE = 0755INSTOWNER = rootINSTGROUP = rootOBJS = utelnetd.oCC = $(CROSS)gccINSTALL = installCFLAGS += -I. -pipe -DSHELLPATH=\"$(LOGIN)\" -Wallifneq ("","$(DEBUG)")CFLAGS += -DDEBUG -g -OsSTRIP = \#elseCFLAGS += -fomit-frame-pointerSTRIP = $(CROSS)strip endififeq ("1", "$(BSD)")CFLAGS += -DBSDendifall: $(PROGS)$(PROGS): $(OBJS) $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(STRIP) --remove-section=.comment --remove-section=.note $@.PHONY: installinstall: $(PROGS) $(INSTALL) -d $(INSTDIR) $(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR).PHONY: cleanclean: rm -f $(PROGS) *.o $(CORE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -