📄 makefile
字号:
#************************************************************************#* RSTP library - Rapid Spanning Tree (802.1t, 802.1w)#* Copyright (C) 2001-2003 Optical Access#* Author: Alex Rozin#*#* This file is part of RSTP library.#*#* RSTP library is free software; you can redistribute it and/or modify it#* under the terms of the GNU Lesser General Public License as published by the#* Free Software Foundation; version 2.1#*#* RSTP library is distributed in the hope that it will be useful, but#* WITHOUT ANY WARRANTY; without even the implied warranty of#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser#* General Public License for more details.#*#* You should have received a copy of the GNU Lesser General Public License#* along with RSTP library; see the file COPYING. If not, write to the Free#* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA#* 02111-1307, USA.#**********************************************************************/DEFS=CC = gcc #-E#CFLAGS = -g -Wall -D_REENTRANT -D__LINUX__ -DSTP_DBG=1 -DOLD_READLINECFLAGS = -g -Wall -D_REENTRANT -D__LINUX__ -DSTP_DBG=1 # -DOLD_READLINEINCLUDES = -I.COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS)LIBS= -lutil -lreadline -ltermcap -lpthreadAR = ar#ARFLAGS = rcsARFLAGS = cruRANLIB = ranlibSOFLAGS = -nostartfiles -sharedEXECUTABLE= bridge mngrRSTPLIBS = rstpRSTPLIBF = lib$(RSTPLIBS).aUIDLIBS = uidUIDLIBF = lib$(UIDLIBS).aCLILIBS = cliCLILIBF = lib$(CLILIBS).aMNGRCFILES = mngr.cMNGROFILES = mngr.oBRIDGECFILES = bridge.c stp_cli.c stp_to.cBRIDGEOFILES = bridge.o stp_cli.o stp_to.oRSTPCFILES = statmch.c stpm.c port.c stpmgmt.c stp_in.c rolesel.c \vector.c times.c \portinfo.c roletrns.c sttrans.c topoch.c migrate.c transmit.c \p2p.c edge.c pcost.cRSTPOFILES = statmch.o stpm.o port.o stpmgmt.o stp_in.o rolesel.o \vector.o times.o \portinfo.o roletrns.o sttrans.o topoch.o migrate.o transmit.o \p2p.o edge.o pcost.oUIDCFILES = uid_sock.cUIDOFILES = uid_sock.oCLICFILES = cli.cCLIOFILES = cli.oCFILES= $(MNGRCFILES) $(BRIDGECFILES) $(RSTPCFILES) $(UIDCFILES) $(CLICFILES)OFILES= $(MNGROFILES) $(BRIDGEOFILES) $(RSTPOFILES) $(UIDOFILES) $(CLIOFILES).SUFFIXES: .S .c .o .sall: depend $(EXECUTABLE)mngr: ${MNGROFILES} $(UIDLIBF) $(CLILIBF) $(CC) ${MNGROFILES} $(LIBS) -L. -l$(UIDLIBS) -l$(CLILIBS) -o $@bridge: ${BRIDGEOFILES} $(RSTPLIBF) $(UIDLIBF) $(CLILIBF) $(CC) ${BRIDGEOFILES} $(LIBS) -L. -l$(RSTPLIBS) -l$(UIDLIBS) -l$(CLILIBS) -o $@$(RSTPLIBF): ${RSTPOFILES} -rm -f $@ $(AR) $(ARFLAGS) $@ $(RSTPOFILES) $(RANLIB) $@ $(UIDLIBF): ${UIDOFILES} -rm -f $@ $(AR) $(ARFLAGS) $@ $(UIDOFILES) $(RANLIB) $@ $(CLILIBF): $(CLIOFILES) -rm -f $@ $(AR) $(ARFLAGS) $@ $(CLIOFILES) $(RANLIB) $@clean: rm -f all *.o *.a *~ $(EXECUTABLE) *.bak make.dependdepend: echo "# DO NOT DELETE THIS LINE -- make depend depends on it." > make.depend makedepend -- $(DEFS) $(INCLUDES) $(CFLAGS) -- $(CFILES) -f make.depend-include make.depend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -