Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: ports/glibc-compat/Makefile

Issue 1289343005: Added Tor (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@pepper_44
Patch Set: contains modifications as per feedback and a bug fix Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 ifeq (,$(findstring $(TOOLCHAIN),glibc bionic)) 5 ifeq (,$(findstring $(TOOLCHAIN),glibc bionic))
6 LIBC = newlib 6 LIBC = newlib
7 endif 7 endif
8 8
9 CFLAGS += -Wno-implicit-function-declaration 9 CFLAGS += -Wno-implicit-function-declaration
10 CPPFLAGS += -Werror -Wno-unused-value -pthread 10 CPPFLAGS += -Werror -Wno-unused-value -pthread
11 CPPFLAGS += -DNACL_SDK_VERSION=$(NACL_SDK_VERSION) 11 CPPFLAGS += -DNACL_SDK_VERSION=$(NACL_SDK_VERSION)
12 OUT := out 12 OUT := out
13 SOURCES := \ 13 SOURCES := \
14 src/alarm.c \ 14 src/alarm.c \
15 src/getprotobyname_r.c \ 15 src/getprotobyname_r.c \
16 src/getservbyname_r.c \ 16 src/getservbyname_r.c \
17 src/herrno.c \ 17 src/herrno.c \
18 src/herror.c \ 18 src/herror.c \
19 src/in6_addr.c \ 19 src/in6_addr.c \
20 src/inet_addr.c \ 20 src/inet_addr.c \
21 src/inet_pton.c \ 21 src/inet_pton.c \
22 src/lockf.c \ 22 src/lockf.c \
23 src/mktemp.c \ 23 src/mktemp.c \
24 src/ns_name.c \ 24 src/ns_name.c \
25 src/ns_netint.c \ 25 src/ns_netint.c \
26 src/ns_samedomain.c \ 26 src/ns_samedomain.c \
27 src/qsort_r.c \ 27 src/qsort_r.c \
28 src/random.c \ 28 src/random.c \
29 src/readv.c \
29 src/realpath.c \ 30 src/realpath.c \
30 src/res_comp.c \ 31 src/res_comp.c \
31 src/res_data.c \ 32 src/res_data.c \
32 src/res_debug.c \ 33 src/res_debug.c \
33 src/res_init.c \ 34 src/res_init.c \
34 src/res_libc.c \ 35 src/res_libc.c \
35 src/res_mkquery.c \ 36 src/res_mkquery.c \
36 src/res_query.c \ 37 src/res_query.c \
37 src/res_send.c 38 src/res_send.c \
39 src/writev.c
38 40
39 OBJS := $(patsubst src/%.c,$(OUT)/%.o,$(SOURCES)) 41 OBJS := $(patsubst src/%.c,$(OUT)/%.o,$(SOURCES))
40 42
41 ifeq ($(V),1) 43 ifeq ($(V),1)
42 CXX_PREFIX = 44 CXX_PREFIX =
43 CC_PREFIX = 45 CC_PREFIX =
44 AR_PREFIX = 46 AR_PREFIX =
45 else 47 else
46 CXX_PREFIX = @echo " CXX $@"; 48 CXX_PREFIX = @echo " CXX $@";
47 CC_PREFIX = @echo " CC $@"; 49 CC_PREFIX = @echo " CC $@";
(...skipping 21 matching lines...) Expand all
69 @mkdir -p $(OUT) 71 @mkdir -p $(OUT)
70 $(CXX_PREFIX)$(CXX) -o $@ $< -L$(OUT) $(LDFLAGS) $(CXXFLAGS) \ 72 $(CXX_PREFIX)$(CXX) -o $@ $< -L$(OUT) $(LDFLAGS) $(CXXFLAGS) \
71 $(CPPFLAGS) $(TEST_LIBS) 73 $(CPPFLAGS) $(TEST_LIBS)
72 74
73 test: $(OUT)/glibc_compat_test 75 test: $(OUT)/glibc_compat_test
74 76
75 clean: 77 clean:
76 rm -rf $(OUT) 78 rm -rf $(OUT)
77 79
78 .PHONY: test clean all 80 .PHONY: test clean all
OLDNEW
« no previous file with comments | « AUTHORS ('k') | ports/glibc-compat/src/readv.c » ('j') | ports/glibc-compat/src/writev.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698