

all dynamic install: conditional_build

#
# Set our CommEngine directory (by splitting the pwd into two words
# at /userspace and taking the first word only).
# Then include the common defines under CommEngine.
# You do not need to modify this part.
#
CURR_DIR := $(shell pwd)
BUILD_DIR:=$(subst /userspace, /userspace,$(CURR_DIR))
BUILD_DIR:=$(word 1, $(BUILD_DIR))

include $(BUILD_DIR)/make.common

APP = dproxy-nexgen


.PHONY: check_untar_patch_configure conditional_build check_versions


# Build dnxproxy only if BUILD_DPROXY is defined AND
#                        (CMS or BDK) is defined
ifneq ($(strip $(BUILD_DPROXY)),)
ifneq ($(strip $(BUILD_BRCM_CMS))$(strip $(BUILD_BRCM_BDK)),)
conditional_build: $(APP)
else
conditional_build: sanity_check
	@echo "skipping $(APP) (CMS/BDK not configured)"
endif
else
conditional_build: sanity_check
	@echo "skipping $(APP) (not configured)"
endif

dproxy-nexgen: sanity_check
	mkdir -p $(INSTALL_DIR)/bin
	(tar xkfj dproxy-nexgen.tar.bz2 2> /dev/null || true)
	$(MAKE) -C dproxy-nexgen $(BUILD_DPROXY)


clean:
	-make -C dproxy-nexgen clean

