Skip to content

Instantly share code, notes, and snippets.

@kybernetyk kybernetyk/Makefile
Created Apr 6, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.