You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
freshtomato-arm/release/src-rt-6.x.4708/router/eapd_arm_714/linux/Makefile

82 lines
1.5 KiB
Makefile

#Linux Makefile
include $(SRCBASE)/router/.config
INCLUDE += -I. -I.. -I$(SRCBASE)/include ${WLAN_StdIncPathA} -I$(SRCBASE)/common/include -I$(SRCBASE)/shared -I$(SRCBASE)/router/shared -I$(SRCBASE)/router/nas${BCMEX}$(EX7)
CFLAGS += $(INCLUDE)
CFLAGS += $(WLAN_ComponentIncPath)
CFLAGS += -DEAPD_WKSP_AUTO_CONFIG
#CFLAGS += -DNAS_GTK_PER_STA
CFLAGS += -Wall -DEAPDDUMP
CFLAGS += -s
ifneq ($(LINUXDIR),)
CFLAGS += -Dlinux
endif
LDFLAGS += -L$(TOP)/nvram${BCMEX} -L$(INSTALLDIR)/nvram/usr/lib -lnvram
LDFLAGS += -L$(TOP)/shared -L$(INSTALLDIR)/shared/usr/lib -lshared
LDFLAGS += -lgcc_s
#ifdef BCM_EVENTD
ifeq ($(TCONFIG_BCMEVENTD),y)
OBJS += eventd_eap.o
CFLAGS += -DBCM_EVENTD
endif
#endif
vpath %.c $(SRCBASE)/router/eapd${BCMEX}$(EX7) $(SRCBASE)/shared
OBJS = eapd.o eapd_linux.o
OBJS += nas_eap.o wps_eap.o ses_eap.o
#ifdef BCM_DCS
ifeq ($(TCONFIG_BCMDCS),y)
OBJS += dcs_eap.o
CFLAGS += -DBCM_DCS
endif
#endif
#ifdef BCM_MEVENT
ifeq ($(CONFIG_BCM_MEVENT),y)
OBJS += mevent_eap.o
CFLAGS += -DBCM_MEVENT
endif
#endif
#ifdef BCM_BSD
ifeq ($(TCONFIG_BCMBSD),y)
OBJS += bsd_eap.o
CFLAGS += -DBCM_BSD
endif
#endif
#ifdef BCM_SSD
ifeq ($(TCONFIG_BCMSSD),y)
OBJS += ssd_eap.o
CFLAGS += -DBCM_SSD
endif
#endif
ifeq ($(wildcard $(SRCBASE)/router/eapd${BCMEX}$(EX7)/*.c),)
all:
-cp prebuilt/eapd eapd
else
all: eapd
endif
eapd: $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
install: all
install -d $(INSTALLDIR)/bin
install eapd $(INSTALLDIR)/bin
$(STRIP) $(INSTALLDIR)/bin/eapd
clean:
rm -f *.o eapd