Files
m241Neelima/components/ip_net2-6.9/ip8021x/gmake/ip8021x.mk
T
2026-07-30 11:19:44 +05:30

103 lines
3.3 KiB
Makefile

#############################################################################
# INTERPEAK DMAKE MAKEFILE
#
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ip8021x.mk,v $ $Revision: 1.8 $
# $Source: /home/interpeak/CVSRoot/ip8021x/gmake/ip8021x.mk,v $
# $Author: dbush $
# $State: Exp $ $Locker: $
#
# INTERPEAK_COPYRIGHT_STRING
#
#############################################################################
#############################################################################
# PRODUCT
###########################################################################
IPPROD ?= ip8021x
#############################################################################
# DEFINE
#############################################################################
IPDEFINE += -DIP8021X
#############################################################################
# INCLUDE
#############################################################################
IPINCLUDE += -I$(IP8021X_ROOT)/config
IPINCLUDE += -I$(IP8021X_ROOT)/include
IPINCLUDE += -I$(BASE_ROOT)/$(IPWLANDIR)/include
#############################################################################
# OBJECTS
#############################################################################
# Configuration
#ifneq ($(IPPORT),las)
#IPLIBOBJECTS += ip8021x_config.o
#endif
# Main
IPLIBOBJECTS += ip8021x.o
IPLIBOBJECTS += ip8021x_aes.o
IPLIBOBJECTS += ip8021x_hmac.o
IPLIBOBJECTS += ip8021x_rc4.o
IPLIBOBJECTS += ip8021x_sock.o
IPLIBOBJECTS += ip8021x_state_machine.o
IPLIBOBJECTS += ip8021x_wpa_ie.o
IPLIBOBJECTS += ip8021x_supp_legacy_api.o
#############################################################################
# VPATH
#############################################################################
# object root
IPSRCDIRS += $(IP8021X_ROOT)/src $(IP8021X_ROOT)/config
#############################################################################
# LIB
#############################################################################
IPLIBS += $(IPLIBROOT)/libip8021x.a
#############################################################################
# BINARIES
#############################################################################
ifeq ($(IPPORT),las)
# Path to binaries
IPCMDDIR := $(IPOBJDIR)/bin
IPDAEMONDIR := $(IPOBJDIR)/sbin
# List of daemons to build
IP8021XDAEMONS = ipwpasupp
_IP8021XDAEMONS = $(addprefix $(IPDAEMONDIR)/,$(IP8021XDAEMONS))
bin: $(_IP8021XDAEMONS)
$(IPOBJDIR)/ip8021x.o: $(IP8021X_ROOT)/src/ip8021x.c
@$(IPECHO) "+++ Compiling IP8021X daemon $<"
$(IPVERB)$(IPCC) -Dip8021xd=ipcom_daemon_entry_point -Dip8021x_create=ipcom_daemon_create $(IPCFLAGS) -o $@ $<
#$(IPOBJDIR)/ip8021x_config.o: $(IP8021X_ROOT)/config/ip8021x_config.c
# $(IPVERB)$(IPCC) -Dip8021x_configure=ipcom_daemon_configure $(IPCFLAGS) -o $@ $<
#$(IPDAEMONDIR)/ipwpasupp: $(IPOBJDIR)/ip8021x.o $(IPOBJDIR)/ip8021x_config.o $(IPOBJDIR)/ipcom_daemon_stub.o
(IPDAEMONDIR)/ipwpasupp: $(IPOBJDIR)/ip8021x.o $(IPOBJDIR)/ipcom_daemon_stub.o
@$(IPECHO) "+++ Linking IP8021X daemon $@"
$(IPVERB)$(IPLD) -o $@ $(IPLDFLAGS) $^ $(IPLIBS) $(IPLIBS) $(IPLIBS) $(IPLASTLIBS)
endif
#############################################################################
# END OF IP8021X.MK
#############################################################################