84 lines
2.5 KiB
Makefile
84 lines
2.5 KiB
Makefile
#############################################################################
|
|
# IPWLAN.MK
|
|
#
|
|
# Copyright 2000-2006 Interpeak AB (http://www.interpeak.se). All rights reserved.
|
|
#
|
|
#############################################################################
|
|
include $(TGT_DIR)/h/make/defs.library
|
|
|
|
#############################################################################
|
|
# PRODUCT
|
|
###########################################################################
|
|
|
|
IPPROD ?= ipwlan
|
|
|
|
|
|
#############################################################################
|
|
# DEFINE
|
|
###########################################################################
|
|
|
|
IPDEFINE += -DIPWLAN
|
|
#IPDEFINE += -DWLAN_BROADCOM
|
|
#IPDEFINE += -DWLAN_ATHEROS
|
|
|
|
|
|
#############################################################################
|
|
# INCLUDE
|
|
###########################################################################
|
|
|
|
IPINCLUDE += -I$(IPWLAN_ROOT)/config
|
|
IPINCLUDE += -I$(IPWLAN_ROOT)/include
|
|
|
|
IPLIBINCLUDE += -I$(IPWLAN_ROOT)/src
|
|
|
|
|
|
#############################################################################
|
|
# OBJECTS
|
|
###########################################################################
|
|
|
|
# Configuration
|
|
ifeq ($(_WRS_CONFIG_IPWLAN_BROADCOM),y)
|
|
IPLIBOBJECTS_C += ipwlan_broadcom_config.o
|
|
endif
|
|
ifeq ($(_WRS_CONFIG_IPWLAN_ATHEROS),y)
|
|
IPLIBOBJECTS_C += ipwlan_atheros_config.o
|
|
endif
|
|
# Command, IOCTL translators
|
|
IPLIBOBJECTS += ipwlan_cmd_wlan.o
|
|
|
|
ifeq ($(_WRS_CONFIG_IPWLAN_BROADCOM),y)
|
|
IPLIBOBJECTS += ipwlan_broadcom.o
|
|
IPLIBOBJECTS += ipwlan_cmd_broadcom.o
|
|
endif
|
|
|
|
ifeq ($(_WRS_CONFIG_IPWLAN_ATHEROS),y)
|
|
IPLIBOBJECTS += ipwlan_atheros.o
|
|
IPLIBOBJECTS += ipwlan_cmd_atheros.o
|
|
endif
|
|
|
|
# Compiles the xxx_config.o if the $SKIP_CONFIG macro is either not defined
|
|
# or set to anything other than true.
|
|
ifneq ($(SKIP_CONFIG),true)
|
|
IPLIBOBJECTS += $(IPLIBOBJECTS_C)
|
|
endif
|
|
|
|
|
|
#############################################################################
|
|
# VPATH
|
|
###########################################################################
|
|
|
|
IPSRCDIRS += $(IPWLAN_ROOT)/src $(IPWLAN_ROOT)/config
|
|
|
|
|
|
#############################################################################
|
|
# LIB
|
|
###########################################################################
|
|
|
|
#IPLIBS += $(IPLIBROOT)/libipwlan_broadcom.a
|
|
#IPLIBS += $(IPLIBROOT)/libipwlan_atheros.a
|
|
IPLIBS += $(IPLIBROOT)/libipwlan.a
|
|
|
|
###########################################################################
|
|
# END OF IPWLAN.MK
|
|
###########################################################################
|