summaryrefslogtreecommitdiff
path: root/src/lib/sync/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sync/Makefile')
-rw-r--r--src/lib/sync/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/sync/Makefile b/src/lib/sync/Makefile
index 9a785c1c8..e8e45ad47 100644
--- a/src/lib/sync/Makefile
+++ b/src/lib/sync/Makefile
@@ -5,13 +5,15 @@
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
+D=
+
O_arm=5
O_amd64=6
O_386=8
OS=568vq
O=$(O_$(GOARCH))
-GC=$(O)g
+GC=$(O)g -I_obj
CC=$(O)c -FVw
AS=$(O)a
AR=6ar
@@ -19,7 +21,7 @@ AR=6ar
default: packages
clean:
- rm -f *.[$(OS)] *.a [$(OS)].out
+ rm -rf *.[$(OS)] *.a [$(OS)].out _obj
test: packages
gotest
@@ -43,23 +45,25 @@ O1=\
phases: a1
-sync.a: phases
+_obj$D/sync.a: phases
a1: $(O1)
- $(AR) grc sync.a asm_$(GOARCH).$O mutex.$O
+ $(AR) grc _obj$D/sync.a asm_$(GOARCH).$O mutex.$O
rm -f $(O1)
newpkg: clean
- $(AR) grc sync.a
+ mkdir -p _obj$D
+ $(AR) grc _obj$D/sync.a
$(O1): newpkg
$(O2): a1
nuke: clean
- rm -f $(GOROOT)/pkg/sync.a
+ rm -f $(GOROOT)/pkg$D/sync.a
-packages: sync.a
+packages: _obj$D/sync.a
install: packages
- cp sync.a $(GOROOT)/pkg/sync.a
+ test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
+ cp _obj$D/sync.a $(GOROOT)/pkg$D/sync.a