aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/Makefile')
-rw-r--r--src/runtime/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/runtime/Makefile b/src/runtime/Makefile
index f5de98f3e9..409925328b 100644
--- a/src/runtime/Makefile
+++ b/src/runtime/Makefile
@@ -24,6 +24,7 @@ LIBOFILES=\
array.$O\
mem.$O\
malloc.$O\
+ malloc_go.$O\
mcache.$O\
mcentral.$O\
mfixalloc.$O\
@@ -57,7 +58,7 @@ nuke:
rm -f *.$(O) *.a $(GOROOT)/lib/$(LIB)
clean:
- rm -f *.$(O) *.a runtime.acid
+ rm -f *.$(O) *.a runtime.acid cgo2c
%.$O: %.c
$(CC) -wF $<
@@ -65,6 +66,13 @@ clean:
sys_file.$O: sys_file.c sys_types.h $(OS_H)
$(CC) -wF -D$(GOARCH)_$(GOOS) $<
+cgo2c: cgo2c.c
+ quietgcc -o $@ $<
+
+%.c: %.cgo cgo2c
+ ./cgo2c < $< > $@.tmp
+ mv -f $@.tmp $@
+
%.$O: %.s
$(AS) $<