File: Makefile

package info (click to toggle)
android-platform-libnativehelper 7.0.0%2Br33-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 252 kB
  • sloc: cpp: 2,169; ansic: 195; makefile: 28
file content (18 lines) | stat: -rw-r--r-- 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
NAME = libnativehelper
SOURCES = JNIHelp.cpp \
          JniConstants.cpp \
          toStringArray.cpp \
          JniInvocation.cpp \
          AsynchronousCloseMonitor.cpp
CXXFLAGS += -fvisibility=protected
CPPFLAGS += -Iinclude/nativehelper -I/usr/include/android/libcore
LDFLAGS += -shared -Wl,-soname,$(NAME).so.0 -ldl -lpthread \
           -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
           -L/usr/lib/$(DEB_HOST_MULTIARCH)/android -llog

build: $(SOURCES)
	$(CXX) $^ -o $(NAME).so.0 $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)
	ln -s $(NAME).so.0 $(NAME).so

clean:
	$(RM) *.so*