Commits

Anonymous committed 028ca6e

adding makefiles

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/croot\
+
+
+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
+# 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-croot/pkg/croot
+
+CGO_LDFLAGS=-lcroot
+
+CGOFILES=\
+	croot_cintex.go \
+	croot_genreflex.go \
+	croot.go \
+	croot_reflex.go
+
+
+include $(GOROOT)/src/Make.pkg
+
+%: install %.go
+	$(GC) $*.go
+	$(LD) -o $@ $*.$O