Created
April 6, 2012 16:15
-
-
Save kybernetyk/2321068 to your computer and use it in GitHub Desktop.
Go Makefile
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
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