# Copyright (C) 2009 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_SRC_FILES:= \ SRC/MobileShield.cpp \ SRC/MobileShield_Protocol.cpp \ SRC/MobileShield_Interface.cpp \ SRC/Interface.cpp \ SRC/FSK_Modem.cpp \ SRC/MobileShield_JNI.cpp \ SRC/Debug_Log.cpp \ SRC/Function.c \ RSA/desc.c \ RSA/md2c.c \ RSA/md4c.c \ RSA/md5c.c \ RSA/nn.c \ RSA/prime.c \ RSA/r_dh.c \ RSA/r_encode.c \ RSA/r_enhanc.c \ RSA/r_keygen.c \ RSA/r_random.c \ RSA/r_stdlib.c \ RSA/rsa.c \ RSA/shsc.c \ RSA/sha-1.c \ RSA/sha-256.c \ RSA/SMS4.c \ EC/BankProcess.c \ EC/Des.c \ SRC/fftsg_h.c \ SRC/FirstConfig.cpp LOCAL_SHARED_LIBRARIES := \ libmedia \ libutils \ libssl \ libcrypto
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_SRC_FILES:= \
SRC/MobileShield.cpp \
SRC/MobileShield_Protocol.cpp \
SRC/MobileShield_Interface.cpp \
SRC/Interface.cpp \
SRC/FSK_Modem.cpp \
SRC/MobileShield_JNI.cpp \
SRC/Debug_Log.cpp \
SRC/Function.c \
RSA/desc.c \
RSA/md2c.c \
RSA/md4c.c \
RSA/md5c.c \
RSA/nn.c \
RSA/prime.c \
RSA/r_dh.c \
RSA/r_encode.c \
RSA/r_enhanc.c \
RSA/r_keygen.c \
RSA/r_random.c \
RSA/r_stdlib.c \
RSA/rsa.c \
RSA/shsc.c \
RSA/sha-1.c \
RSA/sha-256.c \
RSA/SMS4.c \
EC/BankProcess.c \
EC/Des.c \
SRC/fftsg_h.c \
SRC/FirstConfig.cpp
LOCAL_SHARED_LIBRARIES := \
libmedia \
libutils \
libssl \
libcrypto
LOCAL_LDLIBS := -llogLOCAL_MODULE:= MobileShieldifeq ($(TARGET_OS)-$(TARGET_SIMULATOR),linux-true)
LOCAL_LDLIBS += -ldl -lpthread
endififneq ($(TARGET_SIMULATOR),true)
LOCAL_SHARED_LIBRARIES += libdl
endifLOCAL_CFLAGS := \
-D HAVE_PTHREADS \
-D OUTPUT_DEMODULATION \
-D USE_ANSI \
-D NOT_JAVA_CALLBACK \
-D SKF_INTERFACE \
-D AUTHENTICATION_TEST \
-D RSA_INTERFACE \
-D MOBILE_SHIELD_SHOW \
-D MOBILE_SHIELD_TOKEN \
-D DEBUG_LOG \
-D SAVE_SEND_DATA \
-D SAVE_RECEIVE_DATA \
# -D SDK_BELOW_FOUR \
# -D FORMAT8 \
# -D SAVE_ERROR_DATA_ONLY \
# -D TEST_COS_INTERFACE \
# -D NEW_COS_STRUCTURE \
# -D COMMUNICATION_TEST \
# -D WEBKIT_PLUGIN \
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/Include \
$(LOCAL_PATH)/media \
$(LOCAL_PATH)/private/media \
$(LOCAL_PATH)/animation \
$(LOCAL_PATH)/audio \
$(LOCAL_PATH)/background \
$(LOCAL_PATH)/form \
$(LOCAL_PATH)/navigation \
$(LOCAL_PATH)/paint \
$(LOCAL_PATH)/video \
$(LOCAL_PATH)/EC \include $(BUILD_SHARED_LIBRARY)
这里是mk文件的代码