Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(952)

Side by Side Diff: src/Make.clib

Issue 4631057: code review 4631057: Build enhancements: remove PWD variable and do an immed... (Closed)
Patch Set: diff -r 812bb69a9ec1 https://go.googlecode.com/hg/ Created 12 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/Make.ccmd ('k') | src/Make.inc » ('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 2010 The Go Authors. All rights reserved. 1 # Copyright 2010 The Go Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style 2 # Use of this source code is governed by a BSD-style
3 # license that can be found in the LICENSE file. 3 # license that can be found in the LICENSE file.
4 4
5 # Makefile included for C libraries 5 # Makefile included for C libraries
6 6
7 all: $(LIB) 7 all: $(LIB)
8 8
9 %.$(HOST_O): %.c 9 %.$(HOST_O): %.c
10 » $(HOST_CC) $(HOST_CFLAGS) -c "$(PWD)/$*.c" 10 » $(HOST_CC) $(HOST_CFLAGS) -c $*.c
11 11
12 $(OFILES): $(HFILES) 12 $(OFILES): $(HFILES)
13 13
14 ifneq ($(NOINSTALL),1) 14 ifneq ($(NOINSTALL),1)
15 install: $(QUOTED_GOROOT)/lib/$(LIB) 15 install: $(QUOTED_GOROOT)/lib/$(LIB)
16 endif 16 endif
17 17
18 $(QUOTED_GOROOT)/lib/$(LIB): $(LIB) 18 $(QUOTED_GOROOT)/lib/$(LIB): $(LIB)
19 cp $(LIB) "$(GOROOT)/lib/$(LIB)" 19 cp $(LIB) "$(GOROOT)/lib/$(LIB)"
20 20
21 $(LIB): $(OFILES) 21 $(LIB): $(OFILES)
22 $(HOST_AR) rsc $(LIB) $(OFILES) 22 $(HOST_AR) rsc $(LIB) $(OFILES)
23 23
24 CLEANFILES+=y.tab.[ch] y.output a.out $(LIB) 24 CLEANFILES+=y.tab.[ch] y.output a.out $(LIB)
25 25
26 clean: 26 clean:
27 rm -f *.$(HOST_O) $(CLEANFILES) 27 rm -f *.$(HOST_O) $(CLEANFILES)
28 28
29 nuke: clean 29 nuke: clean
30 rm -f "$(GOROOT)/lib/$(LIB)" 30 rm -f "$(GOROOT)/lib/$(LIB)"
31 31
32 y.tab.h: $(YFILES) 32 y.tab.h: $(YFILES)
33 LANG=C LANGUAGE="en_US.UTF8" bison -v -y $(HOST_YFLAGS) $(YFILES) 33 LANG=C LANGUAGE="en_US.UTF8" bison -v -y $(HOST_YFLAGS) $(YFILES)
34 34
35 y.tab.c: y.tab.h 35 y.tab.c: y.tab.h
36 test -f y.tab.c && touch y.tab.c 36 test -f y.tab.c && touch y.tab.c
OLDNEW
« no previous file with comments | « src/Make.ccmd ('k') | src/Make.inc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b