forked from rodolf0/gocached
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add gb generated makefiles, for compiling via gomake
update this with gb --makefiles -f
- Loading branch information
Showing
4 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.8 | ||
*.6 | ||
_obj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,43 @@ | ||
# Makefile generated by gb: http://go-gb.googlecode.com | ||
# gb provides configuration-free building and distributing | ||
|
||
include $(GOROOT)/src/Make.inc | ||
|
||
TARG = gocached | ||
TARG=gocached | ||
GOFILES=\ | ||
command.go\ | ||
generationalstorage.go\ | ||
gocached.go\ | ||
hashingstorage.go\ | ||
heapexpiringstorage.go\ | ||
mapstorage.go\ | ||
storage.go\ | ||
|
||
# gb: this is the local install | ||
GBROOT=. | ||
|
||
# gb: compile/link against local install | ||
GCIMPORTS+= -I $(GBROOT)/_obj | ||
LDIMPORTS+= -L $(GBROOT)/_obj | ||
|
||
# gb: compile/link against GOPATH entries | ||
GOPATHSEP=: | ||
ifeq ($(GOHOSTOS),windows) | ||
GOPATHSEP=; | ||
endif | ||
GCIMPORTS+=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH) | ||
LDIMPORTS+=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH) | ||
|
||
GOFILES = \ | ||
gocached.go \ | ||
mapstorage.go \ | ||
hashingstorage.go \ | ||
command.go \ | ||
generationalstorage.go \ | ||
storage.go | ||
# gb: default target is in GBROOT this way | ||
command: | ||
|
||
include $(GOROOT)/src/Make.cmd | ||
|
||
# gb: copy to local install | ||
$(GBROOT)/bin/$(TARG): $(TARG) | ||
mkdir -p $(dir $@); cp -f $< $@ | ||
command: $(GBROOT)/bin/$(TARG) | ||
|
||
# gb: local dependencies | ||
$(TARG): $(GBROOT)/_obj/expiry.a | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Build script generated by gb: http://go-gb.googlecode.com | ||
# gb provides configuration-free building and distributing | ||
|
||
echo "Build script generated by gb: http://go-gb.googlecode.com" | ||
if [ "$1" = "goinstall" ]; then | ||
echo Running goinstall \ | ||
|
||
else | ||
echo Building \ | ||
&& echo "(in expiry)" gomake $1 && cd expiry && gomake $1 && cd - > /dev/null \ | ||
&& echo "(in .)" gomake $1 && cd . && gomake $1 && cd - > /dev/null \ | ||
|
||
fi | ||
|
||
# The makefiles above are invoked in topological dependence order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Makefile generated by gb: http://go-gb.googlecode.com | ||
# gb provides configuration-free building and distributing | ||
|
||
include $(GOROOT)/src/Make.inc | ||
|
||
TARG=expiry | ||
GOFILES=\ | ||
heap.go\ | ||
|
||
# gb: this is the local install | ||
GBROOT=.. | ||
|
||
# gb: compile/link against local install | ||
GCIMPORTS+= -I $(GBROOT)/_obj | ||
LDIMPORTS+= -L $(GBROOT)/_obj | ||
|
||
# gb: compile/link against GOPATH entries | ||
GOPATHSEP=: | ||
ifeq ($(GOHOSTOS),windows) | ||
GOPATHSEP=; | ||
endif | ||
GCIMPORTS+=-I $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -I , $(GOPATH))/pkg/$(GOOS)_$(GOARCH) | ||
LDIMPORTS+=-L $(subst $(GOPATHSEP),/pkg/$(GOOS)_$(GOARCH) -L , $(GOPATH))/pkg/$(GOOS)_$(GOARCH) | ||
|
||
# gb: copy to local install | ||
$(GBROOT)/_obj/$(TARG).a: _obj/$(TARG).a | ||
mkdir -p $(dir $@); cp -f $< $@ | ||
|
||
package: $(GBROOT)/_obj/$(TARG).a | ||
|
||
include $(GOROOT)/src/Make.pkg |