Hello world!

This commit is contained in:
Ayke van Laethem
2018-04-11 16:17:14 +02:00
commit bc28975c8c
4 changed files with 257 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
all: tgo
tgo: build/tgo
test: build/hello.o
.PHONY: all tgo test test-run clean
build/tgo: *.go
@mkdir -p build
@go build -o build/tgo -i .
build/hello.o: build/tgo hello/hello.go
@./build/tgo -printir -target x86_64-pc-linux-gnu -o build/hello.o hello/hello.go
build/hello: build/hello.o
@clang -o build/hello build/hello.o
test-run: build/hello
@./build/hello
clean:
@rm -rf build