summaryrefslogtreecommitdiff
path: root/src/cmd/6g/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/6g/Makefile')
-rw-r--r--src/cmd/6g/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/6g/Makefile b/src/cmd/6g/Makefile
index f1e76692e..712cfc60c 100644
--- a/src/cmd/6g/Makefile
+++ b/src/cmd/6g/Makefile
@@ -38,3 +38,6 @@ clean:
install: $(TARG)
cp $(TARG) "$(GOBIN)"/$(TARG)
+
+%.$O: ../gc/%.c
+ $(CC) $(CFLAGS) -c -I. -o $@ ../gc/$*.c