examples/ipv4_multicast: update
[dpdk.git] / examples / dpdk_qat / Makefile
index f1b0cbb..70fa2e2 100644 (file)
@@ -29,7 +29,6 @@
 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 # 
-#  version: DPDK.L.1.2.3-3
 
 ifeq ($(RTE_SDK),)
 $(error "Please define RTE_SDK environment variable")
@@ -49,9 +48,13 @@ $(error This application can only operate in a linuxapp environment, \
 please change the definition of the RTE_TARGET environment variable)
 endif
 
+LBITS := $(shell uname -p)
 ifneq ($(CONFIG_RTE_ARCH),"x86_64")
-$(error This application can only operate in a x86_64 environment, \
-please change the definition of the RTE_TARGET environment variable)
+        ifneq ($(LBITS),i686)
+        $(error The RTE_TARGET chosen is not compatible with this environment \
+        (x86_64), for this application. Please change the definition of the \
+        RTE_TARGET environment variable, or run the application on a 32-bit OS)
+        endif
 endif
 
 # binary name
@@ -68,6 +71,7 @@ CFLAGS += -I$(ICP_ROOT)/quickassist/include \
 
 LDLIBS += -L$(ICP_ROOT)/build
 LDLIBS += $(ICP_ROOT)/build/icp_qa_al.a \
+               -lz \
                -losal \
                -ladf_proxy \
                -lcrypto