http://downloads.netgear.com/files/GPL/GPL_Source_V361j_DM111PSP_series_consumer_rele...
[bcm963xx.git] / userapps / opensource / ftpd / Makefile
index 02df003..5c29d86 100755 (executable)
@@ -13,12 +13,37 @@ ifeq ($(strip $(BUILD_FTPD)), static)
 CFLAGS += -DBUILD_STATIC
 endif
 
+# Paul add, 3/13/2006
+ifneq ($(strip $(BUILD_SIGNATURE_RSA)),)
+       CFLAGS += -DINCLUDE_SIGNATURE_RSA
+endif
+
+ifneq ($(strip $(BUILD_EMBHTTPD)),)
+  CFLAGS += -DINCLUDE_EMBHTTPD
+endif
+ifeq ($(strip $(BRCM_CHIP)),6348)
+       CFLAGS += -DCHIP_6348
+endif
+ifeq ($(strip $(BRCM_CHIP)),6338)
+       CFLAGS += -DCHIP_6338
+endif
+
+ifneq ($(strip $(BUILD_MPD)),)
+       CFLAGS += -DSUPPORT_MPD
+endif
+
 all: bftpd
 
 LIBS= -lcrypt
 
 HEADERS=commands.h list.h login.h main.h mystring.h fwsyscall.h 
 OBJS=commands.o list.o login.o main.o mystring.o fwsyscall.o
+
+# Paul add, 3/13/2006
+ifneq ($(strip $(BUILD_SIGNATURE_RSA)),)
+       OBJS += $(BROADCOM_CFM_DIR)/web/sigmak/sigmak.a
+endif
+
 SRCS=commands.c list.c login.c main.c mystring.c fwsyscall.c 
 BOARD_API_SRC=$(BROADCOM_CFM_DIR)/util/psi/board_api.c
 BOARD_API_OBJ=board_api.o