Commits

Anonymous committed eb6281f

update for go.weekly.2011-11-09

  • Participants
  • Parent commits 4eb12ad
  • Tags go.weekly.2011-11-09

Comments (0)

Files changed (2)

+# Copyright 2009 The Go Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+include ${GOROOT}/src/Make.inc
+
+all: install
+
+DIRS=\
+        pkg/hdf5\
+
+
+clean.dirs: $(addsuffix .clean, $(DIRS))
+install.dirs: $(addsuffix .install, $(DIRS))
+nuke.dirs: $(addsuffix .nuke, $(DIRS))
+test.dirs: $(addsuffix .test, $(TEST))
+bench.dirs: $(addsuffix .bench, $(BENCH))
+
+%.clean:
+	+cd $* && $(QUOTED_GOBIN)/gomake clean
+
+%.install:
+	+cd $* && $(QUOTED_GOBIN)/gomake install
+
+clean: clean.dirs
+
+install: install.dirs
+
+#-include ${GOROOT}/src/Make.deps

File pkg/hdf5/Makefile

+# Copyright 2009 The Go Authors.  All rights reserved.
+# Use of this source code is governed by a BSD-style
+# license that can be found in the LICENSE file.
+
+include $(GOROOT)/src/Make.inc
+
+TARG=bitbucket.org/binet/go-hdf5/pkg/hdf5
+
+CGO_LDFLAGS=-lhdf5 -lhdf5_hl
+
+CGOFILES=\
+	hdf5.go\
+    hdf5_hl.go\
+    h5d.go\
+    h5f.go\
+    h5g.go\
+    h5p.go\
+    h5s.go\
+    h5t.go\
+    h5t_shim.go\
+    h5pt.go\
+
+
+
+include $(GOROOT)/src/Make.pkg
+
+%: install %.go
+	$(GC) $*.go
+	$(LD) -o $@ $*.$O