1 Star 0 Fork 0

孤独剑3723/openCAPWAP-OpenWRT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MakefileMac 4.64 KB
一键复制 编辑 原始数据 按行查看 历史
# *******************************************************************************************
# * Copyright (c) 2006-7 Laboratorio di Sistemi di Elaborazione e Bioingegneria Informatica *
# * Universita' Campus BioMedico - Italy *
# * *
# * This program is free software; you can redistribute it and/or modify it under the terms *
# * of the GNU General Public License as published by the Free Software Foundation; either *
# * version 2 of the License, or (at your option) any later version. *
# * *
# * This program 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 General Public License for more details. *
# * *
# * You should have received a copy of the GNU General Public License along with this *
# * program; if not, write to the: *
# * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
# * MA 02111-1307, USA. *
# * *
# * --------------------------------------------------------------------------------------- *
# * Project: Capwap *
# * *
# * Author : Ludovico Rossi (ludo@bluepixysw.com) *
# * Del Moro Andrea (andrea_delmoro@libero.it) *
# * Giovannini Federica (giovannini.federica@gmail.com) *
# * Massimo Vellucci (m.vellucci@unicampus.it) *
# *******************************************************************************************
CC = gcc
#LDFLAGS = -lssl -lcrypto -lpthread -ldl -D_REENTRANT
#LDFLAGS = /usr/lib/libefence.a ./static/libssl.a ./static/libcrypto.a -lpthread -ldl -D_REENTRANT
LDFLAGS = /opt/local/lib/libssl.a /opt/local/lib/libcrypto.a /opt/local/lib/libz.a -lpthread -ldl -D_REENTRANT
CFLAGS = -Wall -g -O0 -D_REENTRANT -I/opt/local/include/ #-DCW_NO_DTLS
OPENSSL_INCLUDE = #-I/opt/local/include/ #Openssl include files
# Memory leak
#LDFLAGS += ../dmalloc-5.5.0/libdmallocth.a
#CFLAGS += -DDMALLOC
# Capwap Debugging
CFLAGS += -DCW_DEBUGGING -DMACOSX
RM = /bin/rm -f
# list of generated object files for AC.
AC_OBJS = AC.o ACConfigFile.o ACMainLoop.o ACDiscoveryState.o ACJoinState.o ACConfigureState.o ACDataCheckState.o ACRunState.o ACProtocol_User.o ACRetransmission.o CWCommon.o CWConfigFile.o CWErrorHandling.o CWList.o CWLog.o ACMultiHomedSocket.o ACProtocol.o CWSafeList.o CWNetwork.o CWProtocol.o CWRandom.o CWSecurity.o CWOpenSSLBio.o CWStevens.o CWThread.o CWBinding.o ACBinding.o ACInterface.o ACSettingsFile.o timerlib.o
# list of generated object files for WTP.
WTP_OBJS = WTP.o WTPFrameReceive.o WTPFreqStatsReceive.o WTPStatsReceive.o WTPConfigFile.o WTPProtocol.o WTPProtocol_User.o WTPDiscoveryState.o WTPJoinState.o WTPConfigureState.o WTPDataCheckState.o WTPRunState.o WTPRunStateCheck.o WTPRetransmission.o WTPSulkingState.o CWCommon.o CWConfigFile.o CWErrorHandling.o CWSafeList.o CWList.o CWLog.o CWNetwork.o CWProtocol.o CWRandom.o CWSecurity.o CWOpenSSLBio.o CWStevens.o CWThread.o CWBinding.o WTPBinding.o WTPDriverInteraction.o WTPSettingsFile.o timerlib.o
AC_SRCS = $(AC_OBJS:.o=.c)
WTP_SRCS = $(WTP_OBJS:.o=.c)
AC_DEPS := $(AC_OBJS:.o=.d)
WTP_DEPS := $(WTP_OBJS:.o=.d)
# program executables.
AC_NAME = AC
WTP_NAME = WTP
.PHONY: deps clean clean_libs libs
# top-level rule, to compile everything.
all: $(AC_NAME) $(WTP_NAME)
$(AC_NAME): $(AC_OBJS)
$(CC) $(AC_OBJS) $(CC_FLAGS) $(OPENSSL_INCLUDE) $(LDFLAGS) -o $(AC_NAME)
$(WTP_NAME): $(WTP_OBJS)
$(CC) -DWRITE_STD_OUTPUT $(WTP_OBJS) $(CC_FLAGS) $(LDFLAGS) -o $(WTP_NAME)
clean:
$(RM) $(AC_NAME) $(WTP_NAME) $(AC_OBJS) $(WTP_OBJS) $(AC_DEPS) $(WTP_DEPS)
clean_deps:
$(AC_DEPS) $(WTP_DEPS)
deps: $(AC_SRC) $(WTP_SRC)
$(CC) -MD -E $(AC_SRCS) $(CFLAGS) >/dev/null
$(CC) -MD -E -DWRITE_STD_OUTPUT $(WTP_SRCS) $(CFLAGS) >/dev/null
-include $(AC_DEPS)
-include $(WTP_DEPS)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tyy123456/openCAPWAP-OpenWRT.git
git@gitee.com:tyy123456/openCAPWAP-OpenWRT.git
tyy123456
openCAPWAP-OpenWRT
openCAPWAP-OpenWRT
master

搜索帮助