mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
Reorganize packages
This commit is contained in:
@@ -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 $@ $^
|
||||
|
||||
Reference in New Issue
Block a user