diff --git a/Makefile b/Makefile index 998cbed3..b93e1719 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,11 @@ build/tgo: *.go @mkdir -p build @go build -o build/tgo -i . -build/hello.o: build/tgo hello/hello.go - @./build/tgo -printir -o build/hello.o hello/hello.go +build/hello.o: build/tgo src/examples/hello/*.go + @./build/tgo -printir -o build/hello.o examples/hello -build/runtime.o: runtime/*.c runtime/*.h - clang $(CFLAGS) -c -o $@ runtime/*.c +build/runtime.o: src/runtime/*.c src/runtime/*.h + clang $(CFLAGS) -c -o $@ src/runtime/*.c build/hello: build/hello.o build/runtime.o @clang $(CFLAGS) -o $@ $^ diff --git a/hello/hello.go b/src/examples/hello/hello.go similarity index 100% rename from hello/hello.go rename to src/examples/hello/hello.go diff --git a/runtime/runtime.c b/src/runtime/runtime.c similarity index 100% rename from runtime/runtime.c rename to src/runtime/runtime.c diff --git a/runtime/runtime.h b/src/runtime/runtime.h similarity index 100% rename from runtime/runtime.h rename to src/runtime/runtime.h