makefile
来自「Ralink RT61 SoftAP Driver source code. 」· 代码 · 共 79 行
TXT
79 行
#################################################################################
# Ralink Technology, Inc. #
# 4F, No. 2 Technology 5th Rd. #
# Science-based Industrial Park #
# Hsin-chu, Taiwan, R.O.C. #
# #
# (c) Copyright 2005, Ralink Technology, Inc. #
# #
# All rights reserved. Ralink's source code is an unpublished work and the #
# use of a copyright notice does not imply otherwise. This source code #
# contains confidential trade secret material of Ralink Tech. Any attempt #
# or participation in deciphering, decoding, reverse engineering or in any #
# way altering the source code is stricitly prohibited, unless the prior #
# written consent of Ralink Technology, Inc. is obtained. #
#################################################################################
CC := cc
# Support AP client function
#HAS_APCLIENT=y
include ./config.mk
WFLAGS := -DMBSS_SUPPORT -DAGGREGATION_SUPPORT -DWDS_SUPPORT -DWMM_SUPPORT -Wall -Wstrict-prototypes -Wno-trigraphs
#WFLAGS += -DDBG
#WFLAGS += -DSNMP
ifeq ($(HAS_APCLIENT),y)
WFLAGS += -DAPCLI_SUPPORT
endif
CFLAGS := -D__KERNEL__ -I$(LINUX_SRC)/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include $(LINUX_SRC)/include/linux/modversions.h $(WFLAGS)
OBJ = rt61ap.o
RT61_OBJ = rtmp_main.o \
rtmp_task.o \
mlme.o \
connect.o \
sync.o \
assoc.o \
auth.o \
auth_rsp.o \
rtmp_data.o \
rtmp_init.o \
sanity.o \
rtmp_wep.o \
rtmp_info.o \
eeprom.o \
rtmp_tkip.o \
wpa.o \
md5.o \
soft_ap.o \
dls.o
ifeq ($(HAS_APCLIENT),y)
RT61_OBJ += sta_auth.o \
sta_assoc.o \
sta_sync.o \
sta_ctrl.o \
rtmp_apcli.o \
rtmp_apcli_iparp.o \
rtmp_apcli_pppoe.o \
sta_mlme.o
endif
all: $(OBJ)
@touch config.mk
rt61ap.o: $(RT61_OBJ)
$(LD) -r $^ -o $@
clean:
rm -f *.o *~ core
config:
@touch config.mk
@./Configure
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?