mirror of https://github.com/golang/go.git
80 lines
1.0 KiB
Makefile
80 lines
1.0 KiB
Makefile
# 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.
|
|
|
|
# DO NOT EDIT. Automatically generated by gobuild.
|
|
# gobuild -m math asin.go atan.go atan2.go exp.go fabs.go floor.go\
|
|
# fmod.go hypot.go log.go pow.go pow10.go sin.go sinh.go sqrt.go\
|
|
# tan.go tanh.go
|
|
O=6
|
|
GC=$(O)g
|
|
CC=$(O)c -w
|
|
AS=$(O)a
|
|
AR=$(O)ar
|
|
|
|
PKG=math.a
|
|
PKGDIR=$(GOROOT)/pkg
|
|
|
|
install: $(PKG)
|
|
mv $(PKG) $(PKGDIR)/$(PKG)
|
|
|
|
nuke: clean
|
|
rm -f $(PKGDIR)/$(PKG)
|
|
|
|
clean:
|
|
rm -f *.$O *.a $(PKG)
|
|
|
|
%.$O: %.go
|
|
$(GC) $*.go
|
|
|
|
%.$O: %.c
|
|
$(CC) $*.c
|
|
|
|
%.$O: %.s
|
|
$(AS) $*.s
|
|
|
|
|
|
O1=\
|
|
atan.$O\
|
|
fabs.$O\
|
|
floor.$O\
|
|
fmod.$O\
|
|
hypot.$O\
|
|
log.$O\
|
|
pow10.$O\
|
|
sin.$O\
|
|
sqrt.$O\
|
|
tan.$O\
|
|
|
|
O2=\
|
|
asin.$O\
|
|
atan2.$O\
|
|
exp.$O\
|
|
|
|
O3=\
|
|
pow.$O\
|
|
sinh.$O\
|
|
|
|
O4=\
|
|
tanh.$O\
|
|
|
|
$(PKG): a1 a2 a3 a4
|
|
a1: $(O1)
|
|
$(AR) grc $(PKG) $(O1)
|
|
rm -f $(O1)
|
|
a2: $(O2)
|
|
$(AR) grc $(PKG) $(O2)
|
|
rm -f $(O2)
|
|
a3: $(O3)
|
|
$(AR) grc $(PKG) $(O3)
|
|
rm -f $(O3)
|
|
a4: $(O4)
|
|
$(AR) grc $(PKG) $(O4)
|
|
rm -f $(O4)
|
|
|
|
$(O1): nuke
|
|
$(O2): a1
|
|
$(O3): a2
|
|
$(O4): a3
|
|
|