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

Side by Side Diff: ports/nacl-spawn/Makefile

Issue 907563002: Simplify cli_main (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ports/mingn/build.sh ('k') | ports/nacl-spawn/cli_main.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 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 # TODO(hamaji): include $NACL_SDK_ROOT/tools/common.mk. 5 # TODO(hamaji): include $NACL_SDK_ROOT/tools/common.mk.
6 6
7 NACL_SPAWN_OBJS = nacl_spawn.o path_util.o 7 NACL_SPAWN_OBJS = nacl_spawn.o path_util.o
8 # For now, we do not support spawning a new glibc process from newlib. 8 # For now, we do not support spawning a new glibc process from newlib.
9 9
10 NACL_SPAWN_OBJS += elf_reader.o library_dependencies.o 10 NACL_SPAWN_OBJS += elf_reader.o library_dependencies.o
11 11
12 TEST_EXES = test/elf_reader test/library_dependencies 12 TEST_EXES = test/elf_reader test/library_dependencies
13 TEST_BINARIES = test/test_exe test/libtest1.so test/libtest2.so test/libtest3.so 13 TEST_BINARIES = test/test_exe test/libtest1.so test/libtest2.so test/libtest3.so
14 CPPFLAGS += -Wall -Werror -Iinclude 14 CPPFLAGS += -Wall -Werror -Iinclude
15 15
16 all: test 16 all: test
17 17
18 # Targets for libcli_main 18 # Targets for libcli_main
19 19
20 libcli_main.a: cli_main.o nacl_startup_untar.o 20 libcli_main.a: cli_main.o nacl_startup_untar.o
21 rm -f $@ 21 rm -f $@
22 $(NACLAR) rcs $@ $^ 22 $(NACLAR) rcs $@ $^
23 23
24 nacl_startup_untar.o: nacl_startup_untar.c 24 %.o: %.c
25 $(NACLCC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ 25 $(NACLCC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
26 26
27 # Targets for libnacl_spawn 27 # Targets for libnacl_spawn
28 28
29 libnacl_spawn.so: $(NACL_SPAWN_OBJS) 29 libnacl_spawn.so: $(NACL_SPAWN_OBJS)
30 $(NACLCXX) $(LDFLAGS) -shared $^ -o $@ 30 $(NACLCXX) $(LDFLAGS) -shared $^ -o $@
31 31
32 libnacl_spawn.a: $(NACL_SPAWN_OBJS) 32 libnacl_spawn.a: $(NACL_SPAWN_OBJS)
33 rm -f $@ 33 rm -f $@
34 $(NACLAR) rcs $@ $^ 34 $(NACLAR) rcs $@ $^
(...skipping 16 matching lines...) Expand all
51 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -nostdlib -Wl,-rpath-link=test -Ltest -ltest1 -ltest2 -o $@ 51 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -nostdlib -Wl,-rpath-link=test -Ltest -ltest1 -ltest2 -o $@
52 test/libtest1.so: test/libtest1.c test/libtest3.so 52 test/libtest1.so: test/libtest1.c test/libtest3.so
53 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -Ltest -ltest 3 -o $@ 53 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -Ltest -ltest 3 -o $@
54 test/libtest2.so: test/libtest2.c test/libtest3.so 54 test/libtest2.so: test/libtest2.c test/libtest3.so
55 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -Ltest -ltest 3 -o $@ 55 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -Ltest -ltest 3 -o $@
56 test/libtest3.so: test/libtest3.c 56 test/libtest3.so: test/libtest3.c
57 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -o $@ 57 $(NACLCC) $(CPPFLAGS) $(CFLAGS) $< -fPIC -nostdlib -shared -o $@
58 58
59 clean: 59 clean:
60 rm -f *.a *.o *.so $(TEST_EXES) $(TEST_BINARIES) 60 rm -f *.a *.o *.so $(TEST_EXES) $(TEST_BINARIES)
OLDNEW
« no previous file with comments | « ports/mingn/build.sh ('k') | ports/nacl-spawn/cli_main.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698