forked from facebookarchive/fb-adb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am.stub
65 lines (53 loc) · 1.5 KB
/
Makefile.am.stub
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- makefile-automake -*-
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in
# the LICENSE file in the root directory of this source tree. An
# additional grant of patent rights can be found in the PATENTS file
# in the same directory.
#
# This directory exists only to allow the parent directory to build
# its stubs; you really want to make from the parent directory. We've
# made "make all" in this directory do nothing so that the parent's
# implicit recursive make doesn't serialize all building. We manually
# invoke this makefile via explicit, properly parallel rules in the
# parent Makefile. The "check_" prefix below keeps the targets out of
# "make all". You are not expected to understand this.
libfb_adb_a_SOURCES += \
stubdaemon.c \
stubdaemon.h \
$(EMPTY)
CMD_SOURCES += \
cmd_stub.c \
cmd_stub_package_hack.c \
$(EMPTY)
check_PROGRAMS = fb-adb
CLEANFILES += timestamp.c
AM_CPPFLAGS += -DFBADB_STUB=1
if !STRIP_STUBS
AM_CFLAGS += -flto -frandom-seed=0
AM_LDFLAGS += -flto -frandom-seed=0
endif
if !STUB_LOCAL
fb_adb_LDADD += -llog
endif
CMDSPROC_ENV = stub
CLEANFILES += stub
if STRIP_STUBS
stub: fb-adb
$(STRIP) -o $@ $<
else
stub: fb-adb
cp -fp $< $@
endif
all-real: fb-adb stub
all-local:
@if test -z "$(FB_ADB_RECURSIVE)"; then \
echo "!!!!!!!!!!!!!!!!!!!!!!!"; \
echo "Do not run this makefile directly; use parent"; \
echo "!!!!!!!!!!!!!!!!!!!!!!!"; \
false; \
fi
distclean-local:
rm -rf toolchain