File: Makefile

package info (click to toggle)
android-platform-build 21-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,204 kB
  • ctags: 3,464
  • sloc: python: 3,797; cpp: 2,788; cs: 1,971; sh: 1,302; makefile: 1,114; ansic: 917; java: 734
file content (27 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make

CXX = g++

SOURCES = \
	ZipAlign.cpp \
	ZipEntry.cpp \
	ZipFile.cpp

OBJECTS = $(SOURCES:.cpp=.o)

ALL_CXXFLAGS = -I/usr/include/android \
	-DANDROID_SMP=0 \
	-include /usr/include/android/arch/linux-x86/AndroidConfig.h
ALL_LDFLAGS = -fPIC -Wl,-rpath=/usr/lib/android
ALL_LIBS = -lz -lpthread -L/usr/lib/android -llog -lutils -lcutils

CXXFLAGS := $(ALL_CXXFLAGS) $(CXXFLAGS)
LDFLAGS := $(ALL_LDFLAGS) $(LDFLAGS)
LIBS := $(ALL_LIBS) $(LIBS)

all: $(OBJECTS)
	$(CXX) $(LDFLAGS) -o zipalign $(OBJECTS) $(LIBS)

clean:
	rm -f $(OBJECTS)
	rm -f zipalign