~ubuntu-branches/debian/jessie/android-platform-frameworks-base/jessie

« back to all changes in this revision

Viewing changes to tools/aapt/Makefile

  • Committer: Package Import Robot
  • Author(s): Hans-Christoph Steiner
  • Date: 2014-09-30 20:55:30 UTC
  • Revision ID: package-import@ubuntu.com-20140930205530-rlfscbdm3mrzcxqw
Tags: 21-1
Initial release (Closes: #763571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make
 
2
 
 
3
CXX = g++
 
4
 
 
5
HOST_OS=linux
 
6
include Android.mk
 
7
 
 
8
OBJECTS = $(LOCAL_SRC_FILES:.cpp=.o)
 
9
 
 
10
ALL_CXXFLAGS = -O2 -fPIC $(LOCAL_CFLAGS) \
 
11
        -I../../include -I/usr/include/android \
 
12
        -include /usr/include/android/arch/linux-x86/AndroidConfig.h
 
13
ALL_LDFLAGS = -fPIC -Wl,-rpath=/usr/lib/android
 
14
ALL_LIBS = $(LOCAL_LDLIBS) -lexpat -lpng \
 
15
        -L/usr/lib/android  -lcutils -lhost -llog -lutils \
 
16
        -L../../libs/androidfw  -landroidfw
 
17
 
 
18
CXXFLAGS := $(ALL_CXXFLAGS) $(CXXFLAGS)
 
19
LDFLAGS := $(ALL_LDFLAGS) $(LDFLAGS)
 
20
LIBS := $(ALL_LIBS) $(LIBS)
 
21
 
 
22
all: aapt
 
23
 
 
24
aapt: $(OBJECTS)
 
25
        $(CXX) $(LDFLAGS) -o aapt $(OBJECTS) $(LIBS)
 
26
 
 
27
clean:
 
28
        rm -f $(OBJECTS)
 
29
        rm -f aapt