Files
weave-scope/experimental/example/Makefile
2015-05-27 14:51:37 +00:00

23 lines
401 B
Makefile

CC=gcc
CFLAGS=-g -lpthread
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
all: qotd/qotd goapp/app
qotd/qotd: qotd/qotd.o
gcc -o $@ $< $(CFLAGS)
goapp/app: goapp/app.go
go build -ldflags "-extldflags \"-static\"" -tags netgo -o goapp/app ./goapp
clean:
rm -f qotd/*.o qotd/qotd goapp/app
run: all
docker-compose kill || true
docker-compose rm -f || true
docker-compose build
docker-compose up -d