2008-09-10 13:14:39 -06:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
O=6
|
|
|
|
GC=$(O)g
|
|
|
|
|
2008-09-10 15:19:03 -06:00
|
|
|
PKG=$(GOROOT)/pkg/os.a
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2008-09-10 15:19:03 -06:00
|
|
|
O1=\
|
2008-09-11 14:40:17 -06:00
|
|
|
os_error.$O
|
2008-09-11 14:03:46 -06:00
|
|
|
O2=\
|
|
|
|
os_file.$O
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2008-09-11 14:40:17 -06:00
|
|
|
install: nuke $(PKG)
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2008-09-11 14:03:46 -06:00
|
|
|
$(PKG): a1 a2
|
2008-09-10 15:19:03 -06:00
|
|
|
|
|
|
|
a1: $(O1)
|
|
|
|
$(O)ar grc $(PKG) $(O1)
|
2008-09-10 13:14:39 -06:00
|
|
|
|
2008-09-11 14:03:46 -06:00
|
|
|
a2: $(O2)
|
|
|
|
$(O)ar grc $(PKG) $(O2)
|
|
|
|
|
2008-09-10 13:14:39 -06:00
|
|
|
nuke:
|
2008-09-10 15:19:03 -06:00
|
|
|
rm -f *.$(O) *.a $(PKG)
|
2008-09-10 13:14:39 -06:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.$(O) *.a
|
|
|
|
|
|
|
|
%.$O: %.go
|
|
|
|
$(GC) $<
|