📄 makefile
字号:
# File : Makefile
#TOOLPATH= /root/OMAP_1510/gcc_3.3.1/arm/bin
#CROSS= $(TOOLPATH)/arm-linux
#CC= $(CROSS)-gcc
#LD= $(CROSS)-ld
WLANOBJS = wlan_main.o wlan_fw.o wlan_wext.o \
wlan_rx.o wlan_tx.o \
wlan_cmd.o wlan_cmdresp.o \
wlan_proc.o
ifeq ($(CONFIG_MAINSTONE),y)
CFLAGS += -D_MAINSTONE
endif
ifeq ($(CONFIG_WMM), y)
WLANOBJS += wlan_wmm.o
endif
ifeq ($(CONFIG_802_11D), y)
WLANOBJS += wlan_11d.o
endif
ifeq ($(CONFIG_802_11H_TPC), y)
WLANOBJS += wlan_11h.o
endif
ifeq ($(CONFIG_CCX), y)
WLANOBJS += wlan_ccx.o
endif
all: wlan.o wlanconfig wlancis
@echo "Finished Making Marvell Wlan Linux Driver"
wlan.o: $(WLANOBJS)
$(LD) -r $^ -o $@
wlanconfig: wlan_config.c wlan_wext.h
ifeq ($(CONFIG_BULVERDE), y)
$(CC) -DDEBUG -DWLANCONFIG -DEXTSCAN -Wall -Wstrict-prototypes \
-I$(shell pwd)/../os/linux \
-DDEEP_SLEEP \
-O2 -o $@ $<
endif
ifeq ($(CONFIG_OMAP1510), y)
$(CC) -DDEBUG -DWLANCONFIG -DEXTSCAN -Wall -Wstrict-prototypes \
-I$(shell pwd)/../os/linux \
-static -s \
-DDEEP_SLEEP \
-O2 -o $@ $<
endif
ifeq ($(CONFIG_X86), y)
$(CC) -DDEBUG -DWLANCONFIG -DEXTSCAN -Wall -Wstrict-prototypes \
-I$(shell pwd)/../os/linux \
-static -s \
-DDEEP_SLEEP \
-O2 -o $@ $<
endif
ifeq ($(CONFIG_MIPS), y)
$(CC) -DDEBUG -DWLANCONFIG -EXTSCAN -DBYTE_SWAP -Wall -Wstrict-prototypes \
-I$(shell pwd)/../os/linux \
-static -s -o $@ $<
endif
ifeq ($(CONFIG_BG_SCAN), y)
CC += -DBG_SCAN -DTLV_SCAN
endif
ifeq ($(CONFIG_CAL_DATA), y)
CC += -DCAL_DATA
endif
ifeq ($(CONFIG_WMM), y)
CC += -DWMM
endif
ifeq ($(CONFIG_SUBSCRIBE_EVENT_CTRL), y)
CC += -DSUBSCRIBE_EVENT_CTRL
endif
wlancis: wlancis.c
ifeq ($(CONFIG_BULVERDE), y)
$(CC) -Wall -Wstrict-prototypes -s -O2 -o $@ $<
endif
ifeq ($(CONFIG_OMAP1510), y)
$(CC) -Wall -Wstrict-prototypes -static -s -O2 -o $@ $<
endif
ifeq ($(CONFIG_X86), y)
$(CC) -Wall -Wstrict-prototypes -static -s -O2 -o $@ $<
endif
ifeq ($(CONFIG_MIPS), y)
$(CC) -Waall -Wstrict-prototypes -static -s -o $@ $<
endif
clean:
@rm -f *.o wlanconfig wlancis *~ core
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -