Skip to content

Instantly share code, notes, and snippets.

@kybernetyk
Created April 6, 2012 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kybernetyk/2321068 to your computer and use it in GitHub Desktop.
Save kybernetyk/2321068 to your computer and use it in GitHub Desktop.
Go Makefile
CC=go tool 6g
LL=go tool 6l
LIBS=
LNAME=smsdemon.6
CFLAGS=-o $(LNAME) -p smsdemon
EXECNAME=smsdemon
.PHONY: all
all: smsdemon
test: clean all run
.PHONY: smsdemon
smsdemon:
$(CC) $(CFLAGS) ../shared/*.go *.go $(LIBS)
$(LL) -o $(EXECNAME) $(LNAME)
rm $(LNAME)
clean:
rm -rf *.o $(EXECNAME) core *.out
.PHONY: run
run: smsdemon
./smsdemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment