From 5dfcb5f08585d5317a7fe2b8ddeba80156fcdd72 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 15 Apr 2018 03:38:01 +0200 Subject: [PATCH] Reorganize packages --- Makefile | 8 ++++---- {hello => src/examples/hello}/hello.go | 0 {runtime => src/runtime}/runtime.c | 0 {runtime => src/runtime}/runtime.h | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename {hello => src/examples/hello}/hello.go (100%) rename {runtime => src/runtime}/runtime.c (100%) rename {runtime => src/runtime}/runtime.h (100%) 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