TOPDIR ?= $(shell /bin/pwd)


PLATFORM = ppc
#PLATFORM = arm
#PLATFORM = x86

ifeq ($(PLATFORM) ,x86)
PREFIX = 
else
ifeq ($(PLATFORM) ,ppc)
PREFIX = powerpc-linux-
else
ifeq ($(PLATFORM) ,arm)
PREFIX = arm-linux-
endif
endif
endif

TOPHPATH   = $(TOPDIR)/include
TOPLPATH   = $(TOPDIR)/lib
TOPBINPATH = $(TOPDIR)/bin
TOPSRCPATH = $(TOPDIR)/src
TOPTESTPATH = $(TOPDIR)/test
TOPDOCPATH = $(TOPDIR)/doc



MEDIASDKINCPATH =$(TOPDIR)/../isilsdk/include/mediasdk

ISILFILESDKSLIBNAME         = libfilesdk.a
ISILFILESDKMLIBNAME         = libfilesdk.so

EXECFILENAME = sdktest

#SHELL  = /bin/shell



CC      =$(PREFIX)gcc -lpthread
AR      =$(PREFIX)ar
RANLIB  =$(PREFIX)ranlib
LINK    =$(PREFIX)ld
STRIP   = $(PREFIX)strip
LIBS    = -lpthread -levent -lrt
LIBPATH	= $(addprefix -L,$(TOPLPATH))

CFLAGS  =   -static -Wall  -W -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wno-unused-variable $(INCPATH)   #-g
LINKFLAGS = $(INCPATH)  #-static

ifeq ($(PLATFORM) ,x86)
CFLAGS += -D__LITTLE_ENDIAN_BITFIELD
endif

#DVMFFMPEGLIB        = /opt/powerpc/ffmpeg/lib










	


