
LOCAL_PATH:= $(call my-dir)

##### libDiagnostics ##########################################################

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=									\
	Diagnostics/CollectDiagnosticsCommand.cpp		\
	Diagnostics/NotifyDiagnosticsReadyCommand.cpp	\
	Diagnostics/TranslateDiagnosticsStructures.cpp	\
	Diagnostics/SDKMocks/SDKMocks.cpp				\
	ManagementObjects/WiMAX_Diagnostics.cpp

LOCAL_C_INCLUDES += $(ALL_CINCLUDES) $(LOCAL_PATH)/../../include/ManagementObjects
LOCAL_CFLAGS += $(ALL_CFLAGS)

LOCAL_MODULE := Diagnostics
include $(BUILD_STATIC_LIBRARY)

##### libDummyDeviceAdapter ###################################################

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=									\
	DummyDeviceAdapter/CreateDeviceAdapter.cpp		\
	DummyDeviceAdapter/DummyDeviceAdapter.cpp		\
	FirmwareUpdate/DiskStorageFirmwareUpdater.cpp

LOCAL_C_INCLUDES += $(ALL_CINCLUDES)
LOCAL_CFLAGS += $(ALL_CFLAGS)

LOCAL_LDFLAGS += -L$(OUT_FUNAMBOL)
LOCAL_LDFLAGS += -L$(OUT_STLPORT)
LOCAL_LDLIBS  += -lfunambol -lstlport_static

LOCAL_MODULE := DummyDeviceAdapter

LOCAL_STATIC_LIBRARIES := Common
LOCAL_SHARED_LIBRARIES := Logger

include $(BUILD_SHARED_LIBRARY)

##### libManagementObjects ####################################################

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=									\
	ManagementObjects/Common.cpp					\
	ManagementObjects/DeviceUpdater.cpp				\
	ManagementObjects/WiMAXSupp.cpp					\
	ManagementObjects/WiMAX.cpp						\
	ManagementObjects/DMAcc.cpp						\
	ManagementObjects/DevInfo.cpp					\
	ManagementObjects/DevDetail.cpp

LOCAL_C_INCLUDES += $(ALL_CINCLUDES) $(LOCAL_PATH)/../../include/ManagementObjects
LOCAL_CFLAGS += $(ALL_CFLAGS)

LOCAL_MODULE := ManagementObjects
include $(BUILD_STATIC_LIBRARY)

##### libTNDSMgmtTree #########################################################

include $(CLEAR_VARS)

LOCAL_SRC_FILES :=											\
	ManagementObjects/TNDSMgmtTree/Common.cpp				\
	ManagementObjects/TNDSMgmtTree/TNDSCreator.cpp			\
	ManagementObjects/TNDSMgmtTree/TNDSExtractor.cpp

LOCAL_C_INCLUDES += $(ALL_CINCLUDES) $(LOCAL_PATH)/../../include/ManagementObjects
LOCAL_CFLAGS += $(ALL_CFLAGS)

LOCAL_MODULE := TNDSMgmtTree
include $(BUILD_STATIC_LIBRARY)

