aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/runtime/Makefile b/src/runtime/Makefile
index f50ac826ca..02bc025634 100644
--- a/src/runtime/Makefile
+++ b/src/runtime/Makefile
@@ -30,9 +30,10 @@ OFILES=$(RT0OFILES) $(LIBOFILES)
OS_H=$(GOARCH)_$(GOOS).h
HFILES=runtime.h $(OS_H_)
-install: rt0 $(LIB)
+install: rt0 $(LIB) runtime.acid
cp $(RT0OFILES) $(GOROOT)/lib
cp $(LIB) $(GOROOT)/lib
+ cp runtime.acid $(GOROOT)/acid/runtime.acid
rt0: $(RT0OFILES)
@@ -45,7 +46,7 @@ nuke:
rm -f *.$(O) *.a $(GOROOT)/lib/$(LIB)
clean:
- rm -f *.$(O) *.a
+ rm -f *.$(O) *.a runtime.acid
%.$O: %.c
$(CC) $<
@@ -55,3 +56,6 @@ sys_file.$O: sys_file.c sys_types.h $(OS_H)
%.$O: %.s
$(AS) $<
+
+runtime.acid: runtime.h
+ $(CC) -a runtime.h >runtime.acid