Permalink
Browse files

Accomodate middlewares compilation

  • Loading branch information...
1 parent 536ebab commit 70a5fe6fc5ff5b61a89c087bbf5846705ce927d1 @victorcoder victorcoder committed Oct 22, 2011
Showing with 10 additions and 3 deletions.
  1. +10 −3 examples/Makefile
View
@@ -1,12 +1,19 @@
include $(GOROOT)/src/Make.inc
-ALL=hello logger session cats_middleware silence_middleware
+BINS=hello logger session routing
+LIBS=cats_middleware.a silence_middleware.a
-all: $(ALL)
+all: $(BINS) $(LIBS)
clean:
- rm -rf *.[68] $(ALL)
+ rm -rf *.[68] $(BINS)
%: %.go
$(GC) $*.go
$(LD) -o $@ $*.$O
+
+%.a: %.go
+ $(GC) $*.go
+ @mkdir -p _obj
+ rm -f _obj/$@ $(OFILES)
+ gopack grc _obj/$@ $*.$O $(OFILES)

0 comments on commit 70a5fe6

Please sign in to comment.