File: fastboot.mk

package info (click to toggle)
android-platform-system-core 1%3A7.0.0%2Br33-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,464 kB
  • sloc: cpp: 96,742; ansic: 39,563; asm: 3,482; python: 1,571; sh: 666; lex: 311; java: 169; makefile: 65; xml: 19
file content (33 lines) | stat: -rw-r--r-- 1,035 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
28
29
30
31
32
33
NAME = fastboot
SOURCES = bootimg_utils.cpp \
          engine.cpp \
          fastboot.cpp \
          fs.cpp\
          protocol.cpp \
          socket.cpp \
          tcp.cpp \
          udp.cpp \
          util.cpp \
          usb_linux.cpp \
          util_linux.cpp
SOURCES := $(foreach source, $(SOURCES), fastboot/$(source))
CXXFLAGS += -fpermissive
CPPFLAGS += -DUSE_F2FS -DFASTBOOT_REVISION='"$(DEB_VERSION)"' \
            -Iinclude \
            -Imkbootimg \
            -Iadb \
            -Ibase/include \
            -I/usr/include/android/ext4_utils \
            -I/usr/include/android/f2fs_utils \
            -I/usr/include/openssl \
            -Ilibsparse/include
LDFLAGS += -Wl,-rpath=/usr/lib/$(DEB_HOST_MULTIARCH)/android \
           -Wl,-rpath-link=. \
           -L. -lziparchive -lsparse -lbase -lcutils -ladb \
           -L/usr/lib/$(DEB_HOST_MULTIARCH)/android -lext4_utils -lf2fs_utils

build: $(SOURCES)
	$(CXX) $^ -o fastboot/$(NAME) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)

clean:
	$(RM) fastboot/$(NAME)