common.mk
来自「Vista 核心Rally技术之-LLTD 实现源代码」· MK 代码 · 共 29 行
MK
29 行
# Before including this in a build directory
# define OS_LAYER and CC, CFLAGS, etc.
.PHONY: clean all depend
# Files for the Daemon and the Test-Tool
DCFILES = $(OS_LAYER) main.c event.c util.c packetio.c band.c \
state.c sessionmgr.c enumeration.c mapping.c seeslist.c \
tlv.c qospktio.c
TCFILES = $(OS_LAYER) ctmain.c event.c util.c ctpacketio.c ctstate.c
DOBJFILES = $(patsubst %c,%o,$(DCFILES))
TOBJFILES = $(patsubst %c,%o,$(TCFILES))
# Note we do not define all here; that happens where included
# depending in which targets to build
clean:
rm -f -- .depend *~ lld2d lld2test $(DOBJFILES) $(TOBJFILES)
lld2d: $(DOBJFILES)
$(LD) $(LDFLAGS) -o $@ $(DOBJFILES)
lld2test: $(TOBJFILES)
$(LD) $(LDFLAGS) -o $@ $(TOBJFILES)
# End
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?