| # Copyright 2009 The Go Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| LIB=lib_$(GOARCH)_$(GOOS).a |
| rt0_$(GOARCH)_$(GOOS).$O\ |
| rt1_$(GOARCH)_$(GOOS).$O\ |
| sys_$(GOARCH)_$(GOOS).$O\ |
| OFILES=$(RT0OFILES) $(LIBOFILES) |
| HFILES=runtime.h hashmap.h $(OS_H_) |
| install: rt0 $(LIB) runtime.acid |
| cp $(RT0OFILES) $(GOROOT)/lib |
| cp runtime.acid $(GOROOT)/acid/runtime.acid |
| $(O)ar rc $(LIB) $(LIBOFILES) |
| rm -f *.$(O) *.a $(GOROOT)/lib/$(LIB) |
| rm -f *.$(O) *.a runtime.acid cgo2c |
| sys_file.$O: sys_file.c sys_types.h $(OS_H) |
| $(CC) -wF -D$(GOARCH)_$(GOOS) $< |
| runtime.acid: runtime.h proc.c |
| $(CC) -a proc.c >runtime.acid |