| # |
| # Copyright (C) 2010-2011 ARM Limited. All rights reserved. |
| # |
| # 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. |
| # |
| |
| UMP_DIR ?= . |
| UMP_LIB ?= libUMP |
| UDD_OS ?= android |
| #CROSS_COMPILE ?= arm-none-linux-gnueabi- |
| TARGET_CC ?= $(CROSS_COMPILE)gcc |
| TARGET_AR ?= $(CROSS_COMPILE)ar |
| CFLAGS += -I$(UMP_DIR)/include -I$(UMP_DIR)/include/ump -Wall -march=armv6 -mthumb-interwork -fno-strict-aliasing -Wno-strict-aliasing -Wno-long-long -O3 |
| |
| include ump.mak |
| |
| %.o: %.c |
| $(TARGET_CC) -c -o $@ $< $(CFLAGS) |
| |
| UMP_OBJS := $(UMP_SRCS:.c=.o) |
| |
| libUMP.so: $(UMP_OBJS) |
| arm-none-linux-gnueabi-gcc -shared -o $@ $(UMP_OBJS) $(CFLAGS) |
| libUMP.a: $(UMP_OBJS) |
| $(TARGET_AR) rcs $@ $(UMP_OBJS) |
| |
| clean: |
| -rm -f $(UMP_OBJS) libUMP.so libUMP.a |