Makefile.am 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973
  1. # Makefile.am -- Go library Makefile.
  2. # Copyright 2009 The Go Authors. All rights reserved.
  3. # Use of this source code is governed by a BSD-style
  4. # license that can be found in the LICENSE file.
  5. # Process this file with autoreconf to produce Makefile.in.
  6. # Go support.
  7. SUFFIXES = .c .go .gox .o .obj .lo .a
  8. if LIBGO_IS_RTEMS
  9. subdirs = testsuite
  10. endif
  11. SUBDIRS = ${subdirs}
  12. gcc_version := $(shell $(GOC) -dumpversion)
  13. MAINT_CHARSET = latin1
  14. mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
  15. PWD_COMMAND = $${PWDCMD-pwd}
  16. STAMP = echo timestamp >
  17. toolexecdir = $(glibgo_toolexecdir)
  18. toolexeclibdir = $(glibgo_toolexeclibdir)
  19. toolexeclibgodir = $(nover_glibgo_toolexeclibdir)/go/$(gcc_version)/$(target_alias)
  20. libexecsubdir = $(libexecdir)/gcc/$(target_alias)/$(gcc_version)
  21. LIBFFI = @LIBFFI@
  22. LIBFFIINCS = @LIBFFIINCS@
  23. LIBATOMIC = @LIBATOMIC@
  24. WARN_CFLAGS = $(WARN_FLAGS) $(WERROR)
  25. # -I/-D flags to pass when compiling.
  26. AM_CPPFLAGS = -I $(srcdir)/runtime $(LIBFFIINCS) $(PTHREAD_CFLAGS)
  27. ACLOCAL_AMFLAGS = -I ./config -I ../config
  28. AM_CFLAGS = -fexceptions -fnon-call-exceptions -fplan9-extensions \
  29. $(SPLIT_STACK) $(WARN_CFLAGS) \
  30. $(STRINGOPS_FLAG) $(OSCFLAGS) \
  31. -I $(srcdir)/../libgcc -I $(srcdir)/../libbacktrace \
  32. -I $(MULTIBUILDTOP)../../gcc/include
  33. if USING_SPLIT_STACK
  34. AM_LDFLAGS = -XCClinker $(SPLIT_STACK)
  35. endif
  36. # Multilib support.
  37. MAKEOVERRIDES=
  38. # Work around what appears to be a GNU make handling MAKEFLAGS
  39. # values defined in terms of make variables, as is the case for CC and
  40. # friends when we are called from the top level Makefile.
  41. AM_MAKEFLAGS = \
  42. "AR_FLAGS=$(AR_FLAGS)" \
  43. "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  44. "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  45. "CFLAGS=$(CFLAGS)" \
  46. "CXXFLAGS=$(CXXFLAGS)" \
  47. "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
  48. "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
  49. "GOC_FOR_TARGET=$(GOC_FOR_TARGET)" \
  50. "GOC=$(GOC)" \
  51. "GOCFLAGS=$(GOCFLAGS)" \
  52. "INSTALL=$(INSTALL)" \
  53. "INSTALL_DATA=$(INSTALL_DATA)" \
  54. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  55. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  56. "LDFLAGS=$(LDFLAGS)" \
  57. "LIBCFLAGS=$(LIBCFLAGS)" \
  58. "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
  59. "MAKE=$(MAKE)" \
  60. "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  61. "PICFLAG=$(PICFLAG)" \
  62. "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
  63. "SHELL=$(SHELL)" \
  64. "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  65. "exec_prefix=$(exec_prefix)" \
  66. "infodir=$(infodir)" \
  67. "libdir=$(libdir)" \
  68. "includedir=$(includedir)" \
  69. "prefix=$(prefix)" \
  70. "tooldir=$(tooldir)" \
  71. "gxx_include_dir=$(gxx_include_dir)" \
  72. "AR=$(AR)" \
  73. "AS=$(AS)" \
  74. "LD=$(LD)" \
  75. "RANLIB=$(RANLIB)" \
  76. "NM=$(NM)" \
  77. "NM_FOR_BUILD=$(NM_FOR_BUILD)" \
  78. "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
  79. "DESTDIR=$(DESTDIR)" \
  80. "WERROR=$(WERROR)"
  81. # Subdir rules rely on $(FLAGS_TO_PASS)
  82. FLAGS_TO_PASS = $(AM_MAKEFLAGS)
  83. if GOC_IS_LLGO
  84. toolexeclib_LTLIBRARIES = libgo-llgo.la
  85. toolexeclib_LIBRARIES = libgobegin-llgo.a
  86. else
  87. toolexeclib_LTLIBRARIES = libgo.la
  88. toolexeclib_LIBRARIES = libgobegin.a libgolibbegin.a libnetgo.a
  89. endif
  90. toolexeclibgo_DATA = \
  91. bufio.gox \
  92. bytes.gox \
  93. crypto.gox \
  94. encoding.gox \
  95. errors.gox \
  96. expvar.gox \
  97. flag.gox \
  98. fmt.gox \
  99. hash.gox \
  100. html.gox \
  101. image.gox \
  102. io.gox \
  103. log.gox \
  104. math.gox \
  105. mime.gox \
  106. net.gox \
  107. os.gox \
  108. path.gox \
  109. reflect.gox \
  110. regexp.gox \
  111. runtime.gox \
  112. sort.gox \
  113. strconv.gox \
  114. strings.gox \
  115. sync.gox \
  116. syscall.gox \
  117. testing.gox \
  118. time.gox \
  119. unicode.gox
  120. toolexeclibgoarchivedir = $(toolexeclibgodir)/archive
  121. toolexeclibgoarchive_DATA = \
  122. archive/tar.gox \
  123. archive/zip.gox
  124. toolexeclibgocompressdir = $(toolexeclibgodir)/compress
  125. toolexeclibgocompress_DATA = \
  126. compress/bzip2.gox \
  127. compress/flate.gox \
  128. compress/gzip.gox \
  129. compress/lzw.gox \
  130. compress/zlib.gox
  131. toolexeclibgocontainerdir = $(toolexeclibgodir)/container
  132. toolexeclibgocontainer_DATA = \
  133. container/heap.gox \
  134. container/list.gox \
  135. container/ring.gox
  136. toolexeclibgocryptodir = $(toolexeclibgodir)/crypto
  137. toolexeclibgocrypto_DATA = \
  138. crypto/aes.gox \
  139. crypto/cipher.gox \
  140. crypto/des.gox \
  141. crypto/dsa.gox \
  142. crypto/ecdsa.gox \
  143. crypto/elliptic.gox \
  144. crypto/hmac.gox \
  145. crypto/md5.gox \
  146. crypto/rand.gox \
  147. crypto/rc4.gox \
  148. crypto/rsa.gox \
  149. crypto/sha1.gox \
  150. crypto/sha256.gox \
  151. crypto/sha512.gox \
  152. crypto/subtle.gox \
  153. crypto/tls.gox \
  154. crypto/x509.gox
  155. toolexeclibgocryptox509dir = $(toolexeclibgocryptodir)/x509
  156. toolexeclibgocryptox509_DATA = \
  157. crypto/x509/pkix.gox
  158. toolexeclibgodatabasedir = $(toolexeclibgodir)/database
  159. toolexeclibgodatabase_DATA = \
  160. database/sql.gox
  161. toolexeclibgodatabasesqldir = $(toolexeclibgodatabasedir)/sql
  162. toolexeclibgodatabasesql_DATA = \
  163. database/sql/driver.gox
  164. toolexeclibgodebugdir = $(toolexeclibgodir)/debug
  165. toolexeclibgodebug_DATA = \
  166. debug/dwarf.gox \
  167. debug/elf.gox \
  168. debug/gosym.gox \
  169. debug/macho.gox \
  170. debug/pe.gox \
  171. debug/plan9obj.gox
  172. toolexeclibgoencodingdir = $(toolexeclibgodir)/encoding
  173. toolexeclibgoencoding_DATA = \
  174. encoding/ascii85.gox \
  175. encoding/asn1.gox \
  176. encoding/base32.gox \
  177. encoding/base64.gox \
  178. encoding/binary.gox \
  179. encoding/csv.gox \
  180. encoding/gob.gox \
  181. encoding/hex.gox \
  182. encoding/json.gox \
  183. encoding/pem.gox \
  184. encoding/xml.gox
  185. toolexeclibgoexpdir = $(toolexeclibgodir)/exp
  186. toolexeclibgoexp_DATA = \
  187. exp/proxy.gox \
  188. exp/terminal.gox
  189. toolexeclibgogodir = $(toolexeclibgodir)/go
  190. toolexeclibgogo_DATA = \
  191. go/ast.gox \
  192. go/build.gox \
  193. go/doc.gox \
  194. go/format.gox \
  195. go/parser.gox \
  196. go/printer.gox \
  197. go/scanner.gox \
  198. go/token.gox
  199. toolexeclibgohashdir = $(toolexeclibgodir)/hash
  200. toolexeclibgohash_DATA = \
  201. hash/adler32.gox \
  202. hash/crc32.gox \
  203. hash/crc64.gox \
  204. hash/fnv.gox
  205. toolexeclibgohtmldir = $(toolexeclibgodir)/html
  206. toolexeclibgohtml_DATA = \
  207. html/template.gox
  208. toolexeclibgoimagedir = $(toolexeclibgodir)/image
  209. toolexeclibgoimage_DATA = \
  210. image/color.gox \
  211. image/draw.gox \
  212. image/gif.gox \
  213. image/jpeg.gox \
  214. image/png.gox
  215. toolexeclibgoimagecolordir = $(toolexeclibgoimagedir)/color
  216. toolexeclibgoimagecolor_DATA = \
  217. image/color/palette.gox
  218. toolexeclibgoindexdir = $(toolexeclibgodir)/index
  219. toolexeclibgoindex_DATA = \
  220. index/suffixarray.gox
  221. toolexeclibgoiodir = $(toolexeclibgodir)/io
  222. toolexeclibgoio_DATA = \
  223. io/ioutil.gox
  224. toolexeclibgologdir = $(toolexeclibgodir)/log
  225. toolexeclibgolog_DATA = \
  226. log/syslog.gox
  227. toolexeclibgomathdir = $(toolexeclibgodir)/math
  228. toolexeclibgomath_DATA = \
  229. math/big.gox \
  230. math/cmplx.gox \
  231. math/rand.gox
  232. toolexeclibgomimedir = $(toolexeclibgodir)/mime
  233. toolexeclibgomime_DATA = \
  234. mime/multipart.gox
  235. toolexeclibgonetdir = $(toolexeclibgodir)/net
  236. toolexeclibgonet_DATA = \
  237. net/http.gox \
  238. net/mail.gox \
  239. net/rpc.gox \
  240. net/smtp.gox \
  241. net/textproto.gox \
  242. net/url.gox
  243. toolexeclibgonethttpdir = $(toolexeclibgonetdir)/http
  244. toolexeclibgonethttp_DATA = \
  245. net/http/cgi.gox \
  246. net/http/cookiejar.gox \
  247. net/http/fcgi.gox \
  248. net/http/httptest.gox \
  249. net/http/httputil.gox \
  250. net/http/pprof.gox
  251. toolexeclibgonetrpcdir = $(toolexeclibgonetdir)/rpc
  252. toolexeclibgonetrpc_DATA = \
  253. net/rpc/jsonrpc.gox
  254. toolexeclibgoolddir = $(toolexeclibgodir)/old
  255. toolexeclibgoold_DATA = \
  256. old/regexp.gox \
  257. old/template.gox
  258. toolexeclibgoosdir = $(toolexeclibgodir)/os
  259. toolexeclibgoos_DATA = \
  260. os/exec.gox \
  261. os/signal.gox \
  262. os/user.gox
  263. toolexeclibgopathdir = $(toolexeclibgodir)/path
  264. toolexeclibgopath_DATA = \
  265. path/filepath.gox
  266. toolexeclibgoregexpdir = $(toolexeclibgodir)/regexp
  267. toolexeclibgoregexp_DATA = \
  268. regexp/syntax.gox
  269. toolexeclibgoruntimedir = $(toolexeclibgodir)/runtime
  270. toolexeclibgoruntime_DATA = \
  271. runtime/debug.gox \
  272. runtime/pprof.gox
  273. toolexeclibgosyncdir = $(toolexeclibgodir)/sync
  274. toolexeclibgosync_DATA = \
  275. sync/atomic.gox
  276. toolexeclibgotestingdir = $(toolexeclibgodir)/testing
  277. toolexeclibgotesting_DATA = \
  278. testing/iotest.gox \
  279. testing/quick.gox
  280. toolexeclibgotextdir = $(toolexeclibgodir)/text
  281. toolexeclibgotext_DATA = \
  282. text/scanner.gox \
  283. text/tabwriter.gox \
  284. text/template.gox
  285. toolexeclibgotexttemplatedir = $(toolexeclibgotextdir)/template
  286. toolexeclibgotexttemplate_DATA = \
  287. text/template/parse.gox
  288. toolexeclibgounicodedir = $(toolexeclibgodir)/unicode
  289. toolexeclibgounicode_DATA = \
  290. unicode/utf16.gox \
  291. unicode/utf8.gox
  292. if HAVE_SYS_MMAN_H
  293. runtime_mem_file = runtime/mem.c
  294. else
  295. runtime_mem_file = runtime/mem_posix_memalign.c
  296. endif
  297. if LIBGO_IS_RTEMS
  298. rtems_task_variable_add_file = runtime/rtems-task-variable-add.c
  299. else
  300. rtems_task_variable_add_file =
  301. endif
  302. if LIBGO_IS_LINUX
  303. runtime_lock_files = runtime/lock_futex.c runtime/thread-linux.c
  304. else
  305. runtime_lock_files = runtime/lock_sema.c runtime/thread-sema.c
  306. endif
  307. if LIBGO_IS_LINUX
  308. runtime_getncpu_file = runtime/getncpu-linux.c
  309. else
  310. if LIBGO_IS_DARWIN
  311. runtime_getncpu_file = runtime/getncpu-bsd.c
  312. else
  313. if LIBGO_IS_IRIX
  314. runtime_getncpu_file = runtime/getncpu-irix.c
  315. else
  316. if LIBGO_IS_SOLARIS
  317. runtime_getncpu_file = runtime/getncpu-solaris.c
  318. else
  319. if LIBGO_IS_FREEBSD
  320. runtime_getncpu_file = runtime/getncpu-bsd.c
  321. else
  322. if LIBGO_IS_NETBSD
  323. runtime_getncpu_file = runtime/getncpu-bsd.c
  324. else
  325. runtime_getncpu_file = runtime/getncpu-none.c
  326. endif
  327. endif
  328. endif
  329. endif
  330. endif
  331. endif
  332. if LIBGO_IS_LINUX
  333. runtime_netpoll_files = runtime/netpoll_epoll.c
  334. else
  335. if LIBGO_IS_SOLARIS
  336. runtime_netpoll_files = runtime/netpoll_select.c
  337. else
  338. runtime_netpoll_files = runtime/netpoll_kqueue.c
  339. endif
  340. endif
  341. runtime_files = \
  342. runtime/go-append.c \
  343. runtime/go-assert.c \
  344. runtime/go-assert-interface.c \
  345. runtime/go-byte-array-to-string.c \
  346. runtime/go-breakpoint.c \
  347. runtime/go-caller.c \
  348. runtime/go-callers.c \
  349. runtime/go-can-convert-interface.c \
  350. runtime/go-cdiv.c \
  351. runtime/go-cgo.c \
  352. runtime/go-check-interface.c \
  353. runtime/go-construct-map.c \
  354. runtime/go-convert-interface.c \
  355. runtime/go-copy.c \
  356. runtime/go-defer.c \
  357. runtime/go-deferred-recover.c \
  358. runtime/go-eface-compare.c \
  359. runtime/go-eface-val-compare.c \
  360. runtime/go-ffi.c \
  361. runtime/go-fieldtrack.c \
  362. runtime/go-int-array-to-string.c \
  363. runtime/go-int-to-string.c \
  364. runtime/go-interface-compare.c \
  365. runtime/go-interface-eface-compare.c \
  366. runtime/go-interface-val-compare.c \
  367. runtime/go-make-slice.c \
  368. runtime/go-map-delete.c \
  369. runtime/go-map-index.c \
  370. runtime/go-map-len.c \
  371. runtime/go-map-range.c \
  372. runtime/go-matherr.c \
  373. runtime/go-memcmp.c \
  374. runtime/go-nanotime.c \
  375. runtime/go-now.c \
  376. runtime/go-new-map.c \
  377. runtime/go-new.c \
  378. runtime/go-nosys.c \
  379. runtime/go-panic.c \
  380. runtime/go-print.c \
  381. runtime/go-recover.c \
  382. runtime/go-reflect-call.c \
  383. runtime/go-reflect-map.c \
  384. runtime/go-rune.c \
  385. runtime/go-runtime-error.c \
  386. runtime/go-setenv.c \
  387. runtime/go-signal.c \
  388. runtime/go-strcmp.c \
  389. runtime/go-string-to-byte-array.c \
  390. runtime/go-string-to-int-array.c \
  391. runtime/go-strplus.c \
  392. runtime/go-strslice.c \
  393. runtime/go-traceback.c \
  394. runtime/go-type-complex.c \
  395. runtime/go-type-eface.c \
  396. runtime/go-type-error.c \
  397. runtime/go-type-float.c \
  398. runtime/go-type-identity.c \
  399. runtime/go-type-interface.c \
  400. runtime/go-type-string.c \
  401. runtime/go-typedesc-equal.c \
  402. runtime/go-unsafe-new.c \
  403. runtime/go-unsafe-newarray.c \
  404. runtime/go-unsafe-pointer.c \
  405. runtime/go-unsetenv.c \
  406. runtime/go-unwind.c \
  407. runtime/go-varargs.c \
  408. runtime/env_posix.c \
  409. runtime/heapdump.c \
  410. $(runtime_lock_files) \
  411. runtime/mcache.c \
  412. runtime/mcentral.c \
  413. $(runtime_mem_file) \
  414. runtime/mfixalloc.c \
  415. runtime/mgc0.c \
  416. runtime/mheap.c \
  417. runtime/msize.c \
  418. $(runtime_netpoll_files) \
  419. runtime/panic.c \
  420. runtime/parfor.c \
  421. runtime/print.c \
  422. runtime/proc.c \
  423. runtime/runtime.c \
  424. runtime/signal_unix.c \
  425. runtime/thread.c \
  426. runtime/yield.c \
  427. $(rtems_task_variable_add_file) \
  428. chan.c \
  429. cpuprof.c \
  430. go-iface.c \
  431. lfstack.c \
  432. malloc.c \
  433. map.c \
  434. mprof.c \
  435. netpoll.c \
  436. rdebug.c \
  437. reflect.c \
  438. runtime1.c \
  439. sema.c \
  440. sigqueue.c \
  441. string.c \
  442. time.c \
  443. $(runtime_getncpu_file)
  444. goc2c.$(OBJEXT): runtime/goc2c.c
  445. $(CC_FOR_BUILD) -c $(CFLAGS_FOR_BUILD) $<
  446. goc2c: goc2c.$(OBJEXT)
  447. $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $<
  448. malloc.c: $(srcdir)/runtime/malloc.goc goc2c
  449. ./goc2c $< > $@.tmp
  450. mv -f $@.tmp $@
  451. mprof.c: $(srcdir)/runtime/mprof.goc goc2c
  452. ./goc2c $< > $@.tmp
  453. mv -f $@.tmp $@
  454. netpoll.c: $(srcdir)/runtime/netpoll.goc goc2c
  455. ./goc2c $< > $@.tmp
  456. mv -f $@.tmp $@
  457. reflect.c: $(srcdir)/runtime/reflect.goc goc2c
  458. ./goc2c $< > $@.tmp
  459. mv -f $@.tmp $@
  460. runtime1.c: $(srcdir)/runtime/runtime1.goc goc2c
  461. ./goc2c $< > $@.tmp
  462. mv -f $@.tmp $@
  463. sema.c: $(srcdir)/runtime/sema.goc goc2c
  464. ./goc2c $< > $@.tmp
  465. mv -f $@.tmp $@
  466. sigqueue.c: $(srcdir)/runtime/sigqueue.goc goc2c
  467. ./goc2c --go-pkgpath os_signal $< > $@.tmp
  468. mv -f $@.tmp $@
  469. time.c: $(srcdir)/runtime/time.goc goc2c
  470. ./goc2c $< > $@.tmp
  471. mv -f $@.tmp $@
  472. %.c: $(srcdir)/runtime/%.goc goc2c
  473. ./goc2c $< > $@.tmp
  474. mv -f $@.tmp $@
  475. go_bufio_files = \
  476. go/bufio/bufio.go \
  477. go/bufio/scan.go
  478. go_bytes_files = \
  479. go/bytes/buffer.go \
  480. go/bytes/bytes.go \
  481. go/bytes/bytes_decl.go \
  482. go/bytes/reader.go
  483. go_bytes_c_files = \
  484. go/bytes/indexbyte.c
  485. go_crypto_files = \
  486. go/crypto/crypto.go
  487. go_encoding_files = \
  488. go/encoding/encoding.go
  489. go_errors_files = \
  490. go/errors/errors.go
  491. go_expvar_files = \
  492. go/expvar/expvar.go
  493. go_flag_files = \
  494. go/flag/flag.go
  495. go_fmt_files = \
  496. go/fmt/doc.go \
  497. go/fmt/format.go \
  498. go/fmt/print.go \
  499. go/fmt/scan.go
  500. go_hash_files = \
  501. go/hash/hash.go
  502. go_html_files = \
  503. go/html/entity.go \
  504. go/html/escape.go
  505. go_image_files = \
  506. go/image/format.go \
  507. go/image/geom.go \
  508. go/image/image.go \
  509. go/image/names.go \
  510. go/image/ycbcr.go
  511. go_io_files = \
  512. go/io/multi.go \
  513. go/io/io.go \
  514. go/io/pipe.go
  515. go_log_files = \
  516. go/log/log.go
  517. go_math_files = \
  518. go/math/abs.go \
  519. go/math/acosh.go \
  520. go/math/asin.go \
  521. go/math/asinh.go \
  522. go/math/atan.go \
  523. go/math/atanh.go \
  524. go/math/atan2.go \
  525. go/math/bits.go \
  526. go/math/cbrt.go \
  527. go/math/const.go \
  528. go/math/copysign.go \
  529. go/math/dim.go \
  530. go/math/erf.go \
  531. go/math/exp.go \
  532. go/math/expm1.go \
  533. go/math/floor.go \
  534. go/math/frexp.go \
  535. go/math/gamma.go \
  536. go/math/hypot.go \
  537. go/math/j0.go \
  538. go/math/j1.go \
  539. go/math/jn.go \
  540. go/math/ldexp.go \
  541. go/math/lgamma.go \
  542. go/math/log.go \
  543. go/math/log1p.go \
  544. go/math/log10.go \
  545. go/math/logb.go \
  546. go/math/mod.go \
  547. go/math/modf.go \
  548. go/math/nextafter.go \
  549. go/math/pow.go \
  550. go/math/pow10.go \
  551. go/math/remainder.go \
  552. go/math/signbit.go \
  553. go/math/sin.go \
  554. go/math/sincos.go \
  555. go/math/sinh.go \
  556. go/math/sqrt.go \
  557. go/math/tan.go \
  558. go/math/tanh.go \
  559. go/math/unsafe.go
  560. go_mime_files = \
  561. go/mime/grammar.go \
  562. go/mime/mediatype.go \
  563. go/mime/type.go \
  564. go/mime/type_unix.go
  565. if LIBGO_IS_LINUX
  566. go_net_cgo_file = go/net/cgo_linux.go
  567. go_net_sock_file = go/net/sock_linux.go
  568. go_net_sockopt_file = go/net/sockopt_linux.go
  569. go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
  570. else
  571. if LIBGO_IS_IRIX
  572. go_net_cgo_file = go/net/cgo_linux.go
  573. go_net_sock_file = go/net/sock_linux.go
  574. go_net_sockopt_file = go/net/sockopt_linux.go
  575. go_net_sockoptip_file = go/net/sockoptip_linux.go go/net/sockoptip_posix.go
  576. else
  577. if LIBGO_IS_SOLARIS
  578. go_net_cgo_file = go/net/cgo_linux.go
  579. go_net_sock_file = go/net/sock_stub.go
  580. go_net_sockopt_file = go/net/sockopt_solaris.go
  581. go_net_sockoptip_file = go/net/sockoptip_stub.go
  582. else
  583. if LIBGO_IS_FREEBSD
  584. go_net_cgo_file = go/net/cgo_bsd.go
  585. go_net_sock_file = go/net/sock_bsd.go
  586. go_net_sockopt_file = go/net/sockopt_bsd.go
  587. go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
  588. else
  589. if LIBGO_IS_NETBSD
  590. go_net_cgo_file = go/net/cgo_netbsd.go
  591. go_net_sock_file = go/net/sock_bsd.go
  592. go_net_sockopt_file = go/net/sockopt_bsd.go
  593. go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
  594. else
  595. go_net_cgo_file = go/net/cgo_bsd.go
  596. go_net_sock_file = go/net/sock_bsd.go
  597. go_net_sockopt_file = go/net/sockopt_bsd.go
  598. go_net_sockoptip_file = go/net/sockoptip_bsd.go go/net/sockoptip_posix.go
  599. endif
  600. endif
  601. endif
  602. endif
  603. endif
  604. if LIBGO_IS_LINUX
  605. go_net_sendfile_file = go/net/sendfile_linux.go
  606. else
  607. if LIBGO_IS_FREEBSD
  608. go_net_sendfile_file = go/net/sendfile_freebsd.go
  609. else
  610. if LIBGO_IS_DRAGONFLY
  611. go_net_sendfile_file = go/net/sendfile_dragonfly.go
  612. else
  613. go_net_sendfile_file = go/net/sendfile_stub.go
  614. endif
  615. endif
  616. endif
  617. if LIBGO_IS_LINUX
  618. go_net_interface_file = go/net/interface_linux.go
  619. else
  620. if LIBGO_IS_NETBSD
  621. go_net_interface_file = go/net/interface_netbsd.go
  622. else
  623. if LIBGO_IS_DRAGONFLY
  624. go_net_interface_file = go/net/interface_dragonfly.go
  625. else
  626. go_net_interface_file = go/net/interface_stub.go
  627. endif
  628. endif
  629. endif
  630. if LIBGO_IS_LINUX
  631. go_net_cloexec_file = go/net/sock_cloexec.go
  632. else
  633. go_net_cloexec_file = go/net/sys_cloexec.go
  634. endif
  635. if LIBGO_IS_OPENBSD
  636. go_net_tcpsockopt_file = go/net/tcpsockopt_openbsd.go
  637. else
  638. if LIBGO_IS_DARWIN
  639. go_net_tcpsockopt_file = go/net/tcpsockopt_darwin.go
  640. else
  641. if LIBGO_IS_SOLARIS
  642. go_net_tcpsockopt_file = go/net/tcpsockopt_solaris.go
  643. else
  644. if LIBGO_IS_DRAGONFLY
  645. go_net_tcpsockopt_file = go/net/tcpsockopt_dragonfly.go
  646. else
  647. go_net_tcpsockopt_file = go/net/tcpsockopt_unix.go
  648. endif
  649. endif
  650. endif
  651. endif
  652. go_net_common_files = \
  653. $(go_net_cloexec_file) \
  654. go/net/dial.go \
  655. go/net/dnsclient.go \
  656. go/net/dnsclient_unix.go \
  657. go/net/dnsconfig_unix.go \
  658. go/net/dnsmsg.go \
  659. go/net/fd_mutex.go \
  660. go/net/fd_unix.go \
  661. go/net/file_unix.go \
  662. go/net/hosts.go \
  663. go/net/interface.go \
  664. $(go_net_interface_file) \
  665. go/net/ip.go \
  666. go/net/iprawsock.go \
  667. go/net/iprawsock_posix.go \
  668. go/net/ipsock.go \
  669. go/net/ipsock_posix.go \
  670. go/net/lookup.go \
  671. go/net/lookup_unix.go \
  672. go/net/mac.go \
  673. go/net/net.go \
  674. go/net/parse.go \
  675. go/net/pipe.go \
  676. go/net/fd_poll_runtime.go \
  677. go/net/port.go \
  678. go/net/port_unix.go \
  679. go/net/race0.go \
  680. $(go_net_sendfile_file) \
  681. go/net/singleflight.go \
  682. go/net/sock_posix.go \
  683. $(go_net_sock_file) \
  684. go/net/sockopt_posix.go \
  685. $(go_net_sockopt_file) \
  686. $(go_net_sockoptip_file) \
  687. go/net/tcpsock.go \
  688. go/net/tcpsock_posix.go \
  689. go/net/tcpsockopt_posix.go \
  690. $(go_net_tcpsockopt_file) \
  691. go/net/udpsock.go \
  692. go/net/udpsock_posix.go \
  693. go/net/unixsock.go \
  694. go/net/unixsock_posix.go
  695. go_net_files = \
  696. go/net/cgo_unix.go \
  697. $(go_net_cgo_file) \
  698. $(go_net_common_files)
  699. go_netgo_files = \
  700. go/net/cgo_stub.go \
  701. $(go_net_common_files)
  702. if LIBGO_IS_SOLARIS
  703. if LIBGO_IS_386
  704. go_os_dir_file = go/os/dir_largefile.go
  705. else
  706. if LIBGO_IS_SPARC
  707. go_os_dir_file = go/os/dir_largefile.go
  708. else
  709. go_os_dir_file = go/os/dir_regfile.go
  710. endif
  711. endif
  712. else
  713. if LIBGO_IS_LINUX
  714. go_os_dir_file = go/os/dir_largefile.go
  715. else
  716. go_os_dir_file = go/os/dir_regfile.go
  717. endif
  718. endif
  719. if LIBGO_IS_DARWIN
  720. go_os_getwd_file = go/os/getwd_darwin.go
  721. else
  722. go_os_getwd_file =
  723. endif
  724. if LIBGO_IS_LINUX
  725. go_os_sys_file = go/os/sys_linux.go
  726. else
  727. if LIBGO_IS_SOLARIS
  728. go_os_sys_file = go/os/sys_uname.go
  729. else
  730. if LIBGO_IS_IRIX
  731. go_os_sys_file = go/os/sys_uname.go
  732. else
  733. if LIBGO_IS_RTEMS
  734. go_os_sys_file = go/os/sys_uname.go
  735. else
  736. go_os_sys_file = go/os/sys_bsd.go
  737. endif
  738. endif
  739. endif
  740. endif
  741. if LIBGO_IS_FREEBSD
  742. go_os_cloexec_file = go/os/sys_freebsd.go
  743. else
  744. if LIBGO_IS_DARWIN
  745. go_os_cloexec_file = go/os/sys_darwin.go
  746. else
  747. go_os_cloexec_file = go/os/sys_unix.go
  748. endif
  749. endif
  750. if LIBGO_IS_SOLARIS
  751. go_os_stat_file = go/os/stat_solaris.go
  752. else
  753. if LIBGO_IS_LINUX
  754. go_os_stat_file = go/os/stat_atim.go
  755. else
  756. if LIBGO_IS_OPENBSD
  757. go_os_stat_file = go/os/stat_atim.go
  758. else
  759. if LIBGO_IS_DARWIN
  760. go_os_stat_file = go/os/stat_atimespec.go
  761. else
  762. if LIBGO_IS_FREEBSD
  763. go_os_stat_file = go/os/stat_atimespec.go
  764. else
  765. if LIBGO_IS_NETBSD
  766. go_os_stat_file = go/os/stat_atimespec.go
  767. else
  768. if LIBGO_IS_DRAGONFLY
  769. go_os_stat_file = go/os/stat_dragonfly.go
  770. else
  771. go_os_stat_file = go/os/stat.go
  772. endif
  773. endif
  774. endif
  775. endif
  776. endif
  777. endif
  778. endif
  779. if LIBGO_IS_LINUX
  780. go_os_pipe_file = go/os/pipe_linux.go
  781. else
  782. go_os_pipe_file = go/os/pipe_bsd.go
  783. endif
  784. go_os_files = \
  785. $(go_os_dir_file) \
  786. go/os/dir.go \
  787. go/os/doc.go \
  788. go/os/env.go \
  789. go/os/error.go \
  790. go/os/error_unix.go \
  791. go/os/exec.go \
  792. go/os/exec_posix.go \
  793. go/os/exec_unix.go \
  794. go/os/file.go \
  795. go/os/file_posix.go \
  796. go/os/file_unix.go \
  797. go/os/getwd.go \
  798. $(go_os_getwd_file) \
  799. go/os/path.go \
  800. go/os/path_unix.go \
  801. $(go_os_pipe_file) \
  802. go/os/proc.go \
  803. $(go_os_stat_file) \
  804. go/os/str.go \
  805. $(go_os_sys_file) \
  806. $(go_os_cloexec_file) \
  807. go/os/types.go \
  808. go/os/types_notwin.go
  809. go_path_files = \
  810. go/path/match.go \
  811. go/path/path.go
  812. go_reflect_files = \
  813. go/reflect/deepequal.go \
  814. go/reflect/makefunc.go \
  815. go/reflect/makefunc_ffi.go \
  816. go/reflect/type.go \
  817. go/reflect/value.go
  818. go_reflect_makefunc_c_file = \
  819. go/reflect/makefunc_ffi_c.c
  820. go_regexp_files = \
  821. go/regexp/exec.go \
  822. go/regexp/onepass.go \
  823. go/regexp/regexp.go
  824. go_net_rpc_files = \
  825. go/net/rpc/client.go \
  826. go/net/rpc/debug.go \
  827. go/net/rpc/server.go
  828. go_runtime_files = \
  829. go/runtime/compiler.go \
  830. go/runtime/debug.go \
  831. go/runtime/error.go \
  832. go/runtime/extern.go \
  833. go/runtime/mem.go \
  834. go/runtime/softfloat64.go \
  835. version.go
  836. version.go: s-version; @true
  837. s-version: Makefile
  838. rm -f version.go.tmp
  839. echo "package runtime" > version.go.tmp
  840. echo 'const defaultGoroot = "$(prefix)"' >> version.go.tmp
  841. echo 'const theVersion = "'`cat $(srcdir)/VERSION | sed 1q`' '`$(GOC) --version | sed 1q`'"' >> version.go.tmp
  842. echo 'const theGoarch = "'$(GOARCH)'"' >> version.go.tmp
  843. echo 'const theGoos = "'$(GOOS)'"' >> version.go.tmp
  844. echo 'const theGccgoToolDir = "$(libexecsubdir)"' >> version.go.tmp
  845. $(SHELL) $(srcdir)/mvifdiff.sh version.go.tmp version.go
  846. $(STAMP) $@
  847. noinst_DATA = zstdpkglist.go
  848. # Generate the list of go std packages that were included in libgo
  849. zstdpkglist.go: s-zstdpkglist; @true
  850. s-zstdpkglist: Makefile
  851. rm -f zstdpkglist.go.tmp
  852. echo 'package main' > zstdpkglist.go.tmp
  853. echo "" >> zstdpkglist.go.tmp
  854. echo 'var stdpkg = map[string]bool{' >> zstdpkglist.go.tmp
  855. echo $(libgo_go_objs) 'unsafe.lo' 'runtime/cgo.lo' | sed 's/\.lo /\": true,\n/g' | sed 's/\.lo/\": true,/' | sed 's/-go//' | grep -v _c | sed 's/^/\t\"/' | sort | uniq >> zstdpkglist.go.tmp
  856. echo '}' >> zstdpkglist.go.tmp
  857. $(SHELL) $(srcdir)/mvifdiff.sh zstdpkglist.go.tmp zstdpkglist.go
  858. $(STAMP) $@
  859. go_sort_files = \
  860. go/sort/search.go \
  861. go/sort/sort.go
  862. go_strconv_files = \
  863. go/strconv/atob.go \
  864. go/strconv/atof.go \
  865. go/strconv/atoi.go \
  866. go/strconv/decimal.go \
  867. go/strconv/extfloat.go \
  868. go/strconv/ftoa.go \
  869. go/strconv/isprint.go \
  870. go/strconv/itoa.go \
  871. go/strconv/quote.go
  872. go_strings_files = \
  873. go/strings/reader.go \
  874. go/strings/replace.go \
  875. go/strings/search.go \
  876. go/strings/strings.go \
  877. go/strings/strings_decl.go
  878. go_strings_c_files = \
  879. go/strings/indexbyte.c
  880. go_sync_files = \
  881. go/sync/cond.go \
  882. go/sync/mutex.go \
  883. go/sync/once.go \
  884. go/sync/pool.go \
  885. go/sync/race0.go \
  886. go/sync/runtime.go \
  887. go/sync/rwmutex.go \
  888. go/sync/waitgroup.go
  889. if LIBGO_IS_SOLARIS
  890. go_syslog_file = go/log/syslog/syslog_libc.go
  891. else
  892. if LIBGO_IS_IRIX
  893. go_syslog_file = go/log/syslog/syslog_libc.go
  894. else
  895. go_syslog_file = go/log/syslog/syslog_unix.go
  896. endif
  897. endif
  898. go_log_syslog_files = \
  899. go/log/syslog/syslog.go \
  900. $(go_syslog_file)
  901. go_syslog_c_files = \
  902. go/log/syslog/syslog_c.c
  903. go_testing_files = \
  904. go/testing/allocs.go \
  905. go/testing/benchmark.go \
  906. go/testing/cover.go \
  907. go/testing/example.go \
  908. go/testing/testing.go
  909. go_time_files = \
  910. go/time/format.go \
  911. go/time/sleep.go \
  912. go/time/sys_unix.go \
  913. go/time/tick.go \
  914. go/time/time.go \
  915. go/time/zoneinfo.go \
  916. go/time/zoneinfo_read.go \
  917. go/time/zoneinfo_unix.go
  918. go_unicode_files = \
  919. go/unicode/casetables.go \
  920. go/unicode/digit.go \
  921. go/unicode/graphic.go \
  922. go/unicode/letter.go \
  923. go/unicode/tables.go
  924. if LIBGO_IS_LINUX
  925. archive_tar_atim_file = go/archive/tar/stat_atim.go
  926. endif
  927. if LIBGO_IS_OPENBSD
  928. archive_tar_atim_file = go/archive/tar/stat_atim.go
  929. endif
  930. if LIBGO_IS_SOLARIS
  931. archive_tar_atim_file = go/archive/tar/stat_atim.go
  932. endif
  933. if LIBGO_IS_DARWIN
  934. archive_tar_atim_file = go/archive/tar/stat_atimespec.go
  935. endif
  936. if LIBGO_IS_FREEBSD
  937. archive_tar_atim_file = go/archive/tar/stat_atimespec.go
  938. endif
  939. if LIBGO_IS_NETBSD
  940. archive_tar_atim_file = go/archive/tar/stat_atimespec.go
  941. endif
  942. go_archive_tar_files = \
  943. go/archive/tar/common.go \
  944. go/archive/tar/reader.go \
  945. go/archive/tar/stat_unix.go \
  946. go/archive/tar/writer.go \
  947. $(archive_tar_atim_file)
  948. go_archive_zip_files = \
  949. go/archive/zip/reader.go \
  950. go/archive/zip/register.go \
  951. go/archive/zip/struct.go \
  952. go/archive/zip/writer.go
  953. go_compress_bzip2_files = \
  954. go/compress/bzip2/bit_reader.go \
  955. go/compress/bzip2/bzip2.go \
  956. go/compress/bzip2/huffman.go \
  957. go/compress/bzip2/move_to_front.go
  958. go_compress_flate_files = \
  959. go/compress/flate/copy.go \
  960. go/compress/flate/deflate.go \
  961. go/compress/flate/fixedhuff.go \
  962. go/compress/flate/huffman_bit_writer.go \
  963. go/compress/flate/huffman_code.go \
  964. go/compress/flate/inflate.go \
  965. go/compress/flate/reverse_bits.go \
  966. go/compress/flate/token.go
  967. go_compress_gzip_files = \
  968. go/compress/gzip/gzip.go \
  969. go/compress/gzip/gunzip.go
  970. go_compress_lzw_files = \
  971. go/compress/lzw/reader.go \
  972. go/compress/lzw/writer.go
  973. go_compress_zlib_files = \
  974. go/compress/zlib/reader.go \
  975. go/compress/zlib/writer.go
  976. go_container_heap_files = \
  977. go/container/heap/heap.go
  978. go_container_list_files = \
  979. go/container/list/list.go
  980. go_container_ring_files = \
  981. go/container/ring/ring.go
  982. go_crypto_aes_files = \
  983. go/crypto/aes/block.go \
  984. go/crypto/aes/cipher.go \
  985. go/crypto/aes/cipher_generic.go \
  986. go/crypto/aes/const.go
  987. go_crypto_cipher_files = \
  988. go/crypto/cipher/cbc.go \
  989. go/crypto/cipher/cfb.go \
  990. go/crypto/cipher/cipher.go \
  991. go/crypto/cipher/ctr.go \
  992. go/crypto/cipher/gcm.go \
  993. go/crypto/cipher/io.go \
  994. go/crypto/cipher/ofb.go \
  995. go/crypto/cipher/xor.go
  996. go_crypto_des_files = \
  997. go/crypto/des/block.go \
  998. go/crypto/des/cipher.go \
  999. go/crypto/des/const.go
  1000. go_crypto_dsa_files = \
  1001. go/crypto/dsa/dsa.go
  1002. go_crypto_ecdsa_files = \
  1003. go/crypto/ecdsa/ecdsa.go
  1004. go_crypto_elliptic_files = \
  1005. go/crypto/elliptic/elliptic.go \
  1006. go/crypto/elliptic/p224.go \
  1007. go/crypto/elliptic/p256.go
  1008. go_crypto_hmac_files = \
  1009. go/crypto/hmac/hmac.go
  1010. go_crypto_md5_files = \
  1011. go/crypto/md5/md5.go \
  1012. go/crypto/md5/md5block.go \
  1013. go/crypto/md5/md5block_generic.go
  1014. if LIBGO_IS_LINUX
  1015. crypto_rand_file = go/crypto/rand/rand_linux.go
  1016. else
  1017. crypto_rand_file =
  1018. endif
  1019. go_crypto_rand_files = \
  1020. go/crypto/rand/rand.go \
  1021. go/crypto/rand/rand_unix.go \
  1022. $(crypto_rand_file) \
  1023. go/crypto/rand/util.go
  1024. go_crypto_rc4_files = \
  1025. go/crypto/rc4/rc4.go \
  1026. go/crypto/rc4/rc4_ref.go
  1027. go_crypto_rsa_files = \
  1028. go/crypto/rsa/pkcs1v15.go \
  1029. go/crypto/rsa/pss.go \
  1030. go/crypto/rsa/rsa.go
  1031. go_crypto_sha1_files = \
  1032. go/crypto/sha1/sha1.go \
  1033. go/crypto/sha1/sha1block.go \
  1034. go/crypto/sha1/sha1block_generic.go
  1035. go_crypto_sha256_files = \
  1036. go/crypto/sha256/sha256.go \
  1037. go/crypto/sha256/sha256block.go
  1038. go_crypto_sha512_files = \
  1039. go/crypto/sha512/sha512.go \
  1040. go/crypto/sha512/sha512block.go
  1041. go_crypto_subtle_files = \
  1042. go/crypto/subtle/constant_time.go
  1043. go_crypto_tls_files = \
  1044. go/crypto/tls/alert.go \
  1045. go/crypto/tls/cipher_suites.go \
  1046. go/crypto/tls/common.go \
  1047. go/crypto/tls/conn.go \
  1048. go/crypto/tls/handshake_client.go \
  1049. go/crypto/tls/handshake_messages.go \
  1050. go/crypto/tls/handshake_server.go \
  1051. go/crypto/tls/key_agreement.go \
  1052. go/crypto/tls/prf.go \
  1053. go/crypto/tls/ticket.go \
  1054. go/crypto/tls/tls.go
  1055. go_crypto_x509_files = \
  1056. go/crypto/x509/cert_pool.go \
  1057. go/crypto/x509/pem_decrypt.go \
  1058. go/crypto/x509/pkcs1.go \
  1059. go/crypto/x509/pkcs8.go \
  1060. go/crypto/x509/root.go \
  1061. go/crypto/x509/root_unix.go \
  1062. go/crypto/x509/sec1.go \
  1063. go/crypto/x509/verify.go \
  1064. go/crypto/x509/x509.go
  1065. go_crypto_x509_pkix_files = \
  1066. go/crypto/x509/pkix/pkix.go
  1067. go_database_sql_files = \
  1068. go/database/sql/convert.go \
  1069. go/database/sql/sql.go
  1070. go_database_sql_driver_files = \
  1071. go/database/sql/driver/driver.go \
  1072. go/database/sql/driver/types.go
  1073. go_debug_dwarf_files = \
  1074. go/debug/dwarf/buf.go \
  1075. go/debug/dwarf/const.go \
  1076. go/debug/dwarf/entry.go \
  1077. go/debug/dwarf/line.go \
  1078. go/debug/dwarf/open.go \
  1079. go/debug/dwarf/type.go \
  1080. go/debug/dwarf/typeunit.go \
  1081. go/debug/dwarf/unit.go
  1082. go_debug_elf_files = \
  1083. go/debug/elf/elf.go \
  1084. go/debug/elf/file.go
  1085. go_debug_gosym_files = \
  1086. go/debug/gosym/pclntab.go \
  1087. go/debug/gosym/symtab.go
  1088. go_debug_macho_files = \
  1089. go/debug/macho/fat.go \
  1090. go/debug/macho/file.go \
  1091. go/debug/macho/macho.go
  1092. go_debug_pe_files = \
  1093. go/debug/pe/file.go \
  1094. go/debug/pe/pe.go
  1095. go_debug_plan9obj_files = \
  1096. go/debug/plan9obj/file.go \
  1097. go/debug/plan9obj/plan9obj.go
  1098. go_encoding_ascii85_files = \
  1099. go/encoding/ascii85/ascii85.go
  1100. go_encoding_asn1_files = \
  1101. go/encoding/asn1/asn1.go \
  1102. go/encoding/asn1/common.go \
  1103. go/encoding/asn1/marshal.go
  1104. go_encoding_base32_files = \
  1105. go/encoding/base32/base32.go
  1106. go_encoding_base64_files = \
  1107. go/encoding/base64/base64.go
  1108. go_encoding_binary_files = \
  1109. go/encoding/binary/binary.go \
  1110. go/encoding/binary/varint.go
  1111. go_encoding_csv_files = \
  1112. go/encoding/csv/reader.go \
  1113. go/encoding/csv/writer.go
  1114. go_encoding_gob_files = \
  1115. go/encoding/gob/decode.go \
  1116. go/encoding/gob/decoder.go \
  1117. go/encoding/gob/dec_helpers.go \
  1118. go/encoding/gob/doc.go \
  1119. go/encoding/gob/encode.go \
  1120. go/encoding/gob/encoder.go \
  1121. go/encoding/gob/enc_helpers.go \
  1122. go/encoding/gob/error.go \
  1123. go/encoding/gob/type.go
  1124. go_encoding_hex_files = \
  1125. go/encoding/hex/hex.go
  1126. go_encoding_json_files = \
  1127. go/encoding/json/decode.go \
  1128. go/encoding/json/encode.go \
  1129. go/encoding/json/fold.go \
  1130. go/encoding/json/indent.go \
  1131. go/encoding/json/scanner.go \
  1132. go/encoding/json/stream.go \
  1133. go/encoding/json/tags.go
  1134. go_encoding_pem_files = \
  1135. go/encoding/pem/pem.go
  1136. go_encoding_xml_files = \
  1137. go/encoding/xml/marshal.go \
  1138. go/encoding/xml/read.go \
  1139. go/encoding/xml/typeinfo.go \
  1140. go/encoding/xml/xml.go
  1141. go_exp_proxy_files = \
  1142. go/exp/proxy/direct.go \
  1143. go/exp/proxy/per_host.go \
  1144. go/exp/proxy/proxy.go \
  1145. go/exp/proxy/socks5.go
  1146. go_exp_terminal_files = \
  1147. go/exp/terminal/terminal.go \
  1148. go/exp/terminal/util.go
  1149. go_go_ast_files = \
  1150. go/go/ast/ast.go \
  1151. go/go/ast/commentmap.go \
  1152. go/go/ast/filter.go \
  1153. go/go/ast/import.go \
  1154. go/go/ast/print.go \
  1155. go/go/ast/resolve.go \
  1156. go/go/ast/scope.go \
  1157. go/go/ast/walk.go
  1158. go_go_build_files = \
  1159. go/go/build/build.go \
  1160. go/go/build/doc.go \
  1161. go/go/build/read.go \
  1162. go/go/build/syslist.go
  1163. go_go_doc_files = \
  1164. go/go/doc/comment.go \
  1165. go/go/doc/doc.go \
  1166. go/go/doc/example.go \
  1167. go/go/doc/exports.go \
  1168. go/go/doc/filter.go \
  1169. go/go/doc/reader.go \
  1170. go/go/doc/synopsis.go
  1171. go_go_format_files = \
  1172. go/go/format/format.go
  1173. go_go_parser_files = \
  1174. go/go/parser/interface.go \
  1175. go/go/parser/parser.go
  1176. go_go_printer_files = \
  1177. go/go/printer/nodes.go \
  1178. go/go/printer/printer.go
  1179. go_go_scanner_files = \
  1180. go/go/scanner/errors.go \
  1181. go/go/scanner/scanner.go
  1182. go_go_token_files = \
  1183. go/go/token/position.go \
  1184. go/go/token/serialize.go \
  1185. go/go/token/token.go
  1186. go_hash_adler32_files = \
  1187. go/hash/adler32/adler32.go
  1188. go_hash_crc32_files = \
  1189. go/hash/crc32/crc32.go \
  1190. go/hash/crc32/crc32_generic.go
  1191. go_hash_crc64_files = \
  1192. go/hash/crc64/crc64.go
  1193. go_hash_fnv_files = \
  1194. go/hash/fnv/fnv.go
  1195. go_html_template_files = \
  1196. go/html/template/attr.go \
  1197. go/html/template/content.go \
  1198. go/html/template/context.go \
  1199. go/html/template/css.go \
  1200. go/html/template/doc.go \
  1201. go/html/template/error.go \
  1202. go/html/template/escape.go \
  1203. go/html/template/html.go \
  1204. go/html/template/js.go \
  1205. go/html/template/template.go \
  1206. go/html/template/transition.go \
  1207. go/html/template/url.go
  1208. go_image_color_files = \
  1209. go/image/color/color.go \
  1210. go/image/color/ycbcr.go
  1211. go_image_color_palette_files = \
  1212. go/image/color/palette/palette.go
  1213. go_image_draw_files = \
  1214. go/image/draw/draw.go
  1215. go_image_gif_files = \
  1216. go/image/gif/reader.go \
  1217. go/image/gif/writer.go
  1218. go_image_jpeg_files = \
  1219. go/image/jpeg/fdct.go \
  1220. go/image/jpeg/huffman.go \
  1221. go/image/jpeg/idct.go \
  1222. go/image/jpeg/reader.go \
  1223. go/image/jpeg/scan.go \
  1224. go/image/jpeg/writer.go
  1225. go_image_png_files = \
  1226. go/image/png/paeth.go \
  1227. go/image/png/reader.go \
  1228. go/image/png/writer.go
  1229. go_index_suffixarray_files = \
  1230. go/index/suffixarray/qsufsort.go \
  1231. go/index/suffixarray/suffixarray.go
  1232. go_io_ioutil_files = \
  1233. go/io/ioutil/ioutil.go \
  1234. go/io/ioutil/tempfile.go
  1235. go_math_big_files = \
  1236. go/math/big/arith.go \
  1237. go/math/big/int.go \
  1238. go/math/big/nat.go \
  1239. go/math/big/rat.go
  1240. go_math_cmplx_files = \
  1241. go/math/cmplx/abs.go \
  1242. go/math/cmplx/asin.go \
  1243. go/math/cmplx/conj.go \
  1244. go/math/cmplx/exp.go \
  1245. go/math/cmplx/isinf.go \
  1246. go/math/cmplx/isnan.go \
  1247. go/math/cmplx/log.go \
  1248. go/math/cmplx/phase.go \
  1249. go/math/cmplx/polar.go \
  1250. go/math/cmplx/pow.go \
  1251. go/math/cmplx/rect.go \
  1252. go/math/cmplx/sin.go \
  1253. go/math/cmplx/sqrt.go \
  1254. go/math/cmplx/tan.go
  1255. go_math_rand_files = \
  1256. go/math/rand/exp.go \
  1257. go/math/rand/normal.go \
  1258. go/math/rand/rand.go \
  1259. go/math/rand/rng.go \
  1260. go/math/rand/zipf.go
  1261. go_mime_multipart_files = \
  1262. go/mime/multipart/formdata.go \
  1263. go/mime/multipart/multipart.go \
  1264. go/mime/multipart/quotedprintable.go \
  1265. go/mime/multipart/writer.go
  1266. go_net_http_files = \
  1267. go/net/http/client.go \
  1268. go/net/http/cookie.go \
  1269. go/net/http/filetransport.go \
  1270. go/net/http/fs.go \
  1271. go/net/http/header.go \
  1272. go/net/http/jar.go \
  1273. go/net/http/lex.go \
  1274. go/net/http/request.go \
  1275. go/net/http/response.go \
  1276. go/net/http/server.go \
  1277. go/net/http/sniff.go \
  1278. go/net/http/status.go \
  1279. go/net/http/transfer.go \
  1280. go/net/http/transport.go
  1281. go_net_mail_files = \
  1282. go/net/mail/message.go
  1283. go_net_smtp_files = \
  1284. go/net/smtp/auth.go \
  1285. go/net/smtp/smtp.go
  1286. go_net_textproto_files = \
  1287. go/net/textproto/header.go \
  1288. go/net/textproto/pipeline.go \
  1289. go/net/textproto/reader.go \
  1290. go/net/textproto/textproto.go \
  1291. go/net/textproto/writer.go
  1292. go_net_url_files = \
  1293. go/net/url/url.go
  1294. go_net_http_cgi_files = \
  1295. go/net/http/cgi/child.go \
  1296. go/net/http/cgi/host.go
  1297. go_net_http_cookiejar_files = \
  1298. go/net/http/cookiejar/jar.go \
  1299. go/net/http/cookiejar/punycode.go
  1300. go_net_http_fcgi_files = \
  1301. go/net/http/fcgi/child.go \
  1302. go/net/http/fcgi/fcgi.go
  1303. go_net_http_httptest_files = \
  1304. go/net/http/httptest/recorder.go \
  1305. go/net/http/httptest/server.go
  1306. go_net_http_pprof_files = \
  1307. go/net/http/pprof/pprof.go
  1308. go_net_http_httputil_files = \
  1309. go/net/http/httputil/dump.go \
  1310. go/net/http/httputil/httputil.go \
  1311. go/net/http/httputil/persist.go \
  1312. go/net/http/httputil/reverseproxy.go
  1313. go_net_http_internal_files = \
  1314. go/net/http/internal/chunked.go
  1315. go_old_regexp_files = \
  1316. go/old/regexp/regexp.go
  1317. go_old_template_files = \
  1318. go/old/template/doc.go \
  1319. go/old/template/execute.go \
  1320. go/old/template/format.go \
  1321. go/old/template/parse.go
  1322. go_os_exec_files = \
  1323. go/os/exec/exec.go \
  1324. go/os/exec/lp_unix.go
  1325. go_os_signal_files = \
  1326. go/os/signal/signal.go \
  1327. go/os/signal/signal_unix.go
  1328. if LIBGO_IS_SOLARIS
  1329. os_user_decls_file = go/os/user/decls_solaris.go
  1330. else
  1331. os_user_decls_file = go/os/user/decls_unix.go
  1332. endif
  1333. go_os_user_files = \
  1334. go/os/user/lookup.go \
  1335. go/os/user/lookup_unix.go \
  1336. go/os/user/user.go \
  1337. $(os_user_decls_file)
  1338. go_path_filepath_files = \
  1339. go/path/filepath/match.go \
  1340. go/path/filepath/path.go \
  1341. go/path/filepath/path_unix.go \
  1342. go/path/filepath/symlink.go \
  1343. go/path/filepath/symlink_unix.go
  1344. go_regexp_syntax_files = \
  1345. go/regexp/syntax/compile.go \
  1346. go/regexp/syntax/doc.go \
  1347. go/regexp/syntax/parse.go \
  1348. go/regexp/syntax/perl_groups.go \
  1349. go/regexp/syntax/prog.go \
  1350. go/regexp/syntax/regexp.go \
  1351. go/regexp/syntax/simplify.go
  1352. go_net_rpc_jsonrpc_files = \
  1353. go/net/rpc/jsonrpc/client.go \
  1354. go/net/rpc/jsonrpc/server.go
  1355. go_runtime_debug_files = \
  1356. go/runtime/debug/garbage.go \
  1357. go/runtime/debug/stack.go
  1358. go_runtime_pprof_files = \
  1359. go/runtime/pprof/pprof.go
  1360. go_text_tabwriter_files = \
  1361. go/text/tabwriter/tabwriter.go
  1362. go_text_template_files = \
  1363. go/text/template/doc.go \
  1364. go/text/template/exec.go \
  1365. go/text/template/funcs.go \
  1366. go/text/template/helper.go \
  1367. go/text/template/template.go
  1368. go_text_template_parse_files = \
  1369. go/text/template/parse/lex.go \
  1370. go/text/template/parse/node.go \
  1371. go/text/template/parse/parse.go
  1372. go_sync_atomic_files = \
  1373. go/sync/atomic/doc.go \
  1374. go/sync/atomic/value.go
  1375. go_sync_atomic_c_files = \
  1376. go/sync/atomic/atomic.c
  1377. go_testing_iotest_files = \
  1378. go/testing/iotest/logger.go \
  1379. go/testing/iotest/reader.go \
  1380. go/testing/iotest/writer.go
  1381. go_testing_quick_files = \
  1382. go/testing/quick/quick.go
  1383. go_text_scanner_files = \
  1384. go/text/scanner/scanner.go
  1385. go_unicode_utf16_files = \
  1386. go/unicode/utf16/utf16.go
  1387. go_unicode_utf8_files = \
  1388. go/unicode/utf8/utf8.go
  1389. # Define Syscall and Syscall6.
  1390. if LIBGO_IS_RTEMS
  1391. syscall_syscall_file = go/syscall/syscall_stubs.go
  1392. else
  1393. syscall_syscall_file = go/syscall/syscall_unix.go
  1394. endif
  1395. # Define ForkExec and Exec.
  1396. if LIBGO_IS_RTEMS
  1397. syscall_exec_file = go/syscall/exec_stubs.go
  1398. syscall_exec_os_file =
  1399. else
  1400. if LIBGO_IS_LINUX
  1401. syscall_exec_file = go/syscall/exec_unix.go
  1402. syscall_exec_os_file = go/syscall/exec_linux.go
  1403. else
  1404. syscall_exec_file = go/syscall/exec_unix.go
  1405. syscall_exec_os_file = go/syscall/exec_bsd.go
  1406. endif
  1407. endif
  1408. # Define Wait4.
  1409. if LIBGO_IS_RTEMS
  1410. syscall_wait_file =
  1411. else
  1412. if HAVE_WAIT4
  1413. syscall_wait_file = go/syscall/libcall_wait4.go
  1414. else
  1415. syscall_wait_file = go/syscall/libcall_waitpid.go
  1416. endif
  1417. endif
  1418. # Support for pulling apart wait status.
  1419. if LIBGO_IS_RTEMS
  1420. syscall_wait_c_file =
  1421. else
  1422. syscall_wait_c_file = go/syscall/wait.c
  1423. endif
  1424. # Define Sleep.
  1425. if LIBGO_IS_RTEMS
  1426. syscall_sleep_file = go/syscall/sleep_rtems.go
  1427. else
  1428. syscall_sleep_file = go/syscall/sleep_select.go
  1429. endif
  1430. # Define Errstr.
  1431. if LIBGO_IS_LINUX
  1432. syscall_errstr_file = go/syscall/errstr_linux.go
  1433. else
  1434. if LIBGO_IS_RTEMS
  1435. syscall_errstr_file = go/syscall/errstr_linux.go
  1436. else
  1437. if HAVE_STRERROR_R
  1438. syscall_errstr_file = go/syscall/errstr.go
  1439. else
  1440. syscall_errstr_file = go/syscall/errstr_nor.go
  1441. endif
  1442. endif
  1443. endif
  1444. # Declare libc functions that vary for largefile systems.
  1445. if LIBGO_IS_LINUX
  1446. # Always use lseek64 on GNU/Linux.
  1447. syscall_size_file = go/syscall/libcall_posix_largefile.go
  1448. else # !LIBGO_IS_LINUX
  1449. if LIBGO_IS_SOLARIS
  1450. if LIBGO_IS_386
  1451. # Use lseek64 on 32-bit Solaris/x86.
  1452. syscall_size_file = go/syscall/libcall_posix_largefile.go
  1453. else # !LIBGO_IS_386
  1454. if LIBGO_IS_SPARC
  1455. # Use lseek64 on 32-bit Solaris/SPARC.
  1456. syscall_size_file = go/syscall/libcall_posix_largefile.go
  1457. else # !LIBGO_IS_386 && !LIBGO_IS_SPARC
  1458. # Use lseek on 64-bit Solaris.
  1459. syscall_size_file = go/syscall/libcall_posix_regfile.go
  1460. endif # !LIBGO_IS_386 && !LIBGO_IS_SPARC
  1461. endif # !LIBGO_IS_SOLARIS
  1462. else # !LIBGO_IS_LINUX && !LIBGO_IS_SOLARIS
  1463. # Use lseek by default.
  1464. syscall_size_file = go/syscall/libcall_posix_regfile.go
  1465. endif # !LIBGO_IS_SOLARIS
  1466. endif # !LIBGO_IS_LINUX
  1467. # Define socket sizes and types.
  1468. if LIBGO_IS_LINUX
  1469. syscall_socket_file = go/syscall/socket_linux.go epoll.go
  1470. else
  1471. if LIBGO_IS_SOLARIS
  1472. syscall_socket_file = go/syscall/socket_solaris.go
  1473. else
  1474. if LIBGO_IS_IRIX
  1475. syscall_socket_file = go/syscall/socket_irix.go
  1476. else
  1477. syscall_socket_file = go/syscall/socket_bsd.go
  1478. endif
  1479. endif
  1480. endif
  1481. # Define socket functions.
  1482. if LIBGO_IS_SOLARIS
  1483. syscall_socket_os_file = go/syscall/socket_xnet.go
  1484. else
  1485. syscall_socket_os_file = go/syscall/socket_posix.go
  1486. endif
  1487. # Support for uname.
  1488. if LIBGO_IS_SOLARIS
  1489. if LIBGO_IS_386
  1490. # 32-bit Solaris 2/x86 needs _nuname, handled in libcall_solaris_386.go.
  1491. syscall_uname_file =
  1492. else # !LIBGO_IS_386 && LIBGO_IS_SOLARIS
  1493. syscall_uname_file = go/syscall/libcall_uname.go
  1494. endif
  1495. else # !LIBGO_IS_SOLARIS
  1496. syscall_uname_file = go/syscall/libcall_uname.go
  1497. endif
  1498. # GNU/Linux specific socket control messages.
  1499. if LIBGO_IS_LINUX
  1500. syscall_sockcmsg_file = go/syscall/sockcmsg_linux.go
  1501. else
  1502. syscall_sockcmsg_file =
  1503. endif
  1504. # Support for netlink sockets and messages.
  1505. if LIBGO_IS_LINUX
  1506. syscall_netlink_file = go/syscall/netlink_linux.go
  1507. else
  1508. syscall_netlink_file =
  1509. endif
  1510. # GNU/Linux specific socket filters.
  1511. if LIBGO_IS_LINUX
  1512. syscall_lsf_file = go/syscall/lsf_linux.go
  1513. else
  1514. syscall_lsf_file =
  1515. endif
  1516. # GNU/Linux specific utimesnano support.
  1517. if LIBGO_IS_LINUX
  1518. syscall_utimesnano_file = go/syscall/libcall_linux_utimesnano.go
  1519. else
  1520. syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
  1521. endif
  1522. # Test files.
  1523. if LIBGO_IS_LINUX
  1524. syscall_creds_test_file = go/syscall/creds_test.go
  1525. else
  1526. syscall_creds_test_file =
  1527. endif
  1528. go_base_syscall_files = \
  1529. go/syscall/env_unix.go \
  1530. go/syscall/syscall_errno.go \
  1531. go/syscall/libcall_support.go \
  1532. go/syscall/libcall_posix.go \
  1533. go/syscall/race0.go \
  1534. go/syscall/socket.go \
  1535. go/syscall/sockcmsg_unix.go \
  1536. go/syscall/str.go \
  1537. go/syscall/syscall.go \
  1538. $(syscall_sockcmsg_file) \
  1539. $(syscall_syscall_file) \
  1540. $(syscall_exec_file) \
  1541. $(syscall_exec_os_file) \
  1542. $(syscall_wait_file) \
  1543. $(syscall_sleep_file) \
  1544. $(syscall_errstr_file) \
  1545. $(syscall_size_file) \
  1546. $(syscall_socket_file) \
  1547. $(syscall_socket_os_file) \
  1548. $(syscall_uname_file) \
  1549. $(syscall_netlink_file) \
  1550. $(syscall_lsf_file) \
  1551. $(syscall_utimesnano_file) \
  1552. $(GO_LIBCALL_OS_FILE) \
  1553. $(GO_LIBCALL_OS_ARCH_FILE) \
  1554. $(GO_SYSCALL_OS_FILE) \
  1555. $(GO_SYSCALL_OS_ARCH_FILE)
  1556. go_syscall_files = \
  1557. $(go_base_syscall_files) \
  1558. libcalls.go \
  1559. sysinfo.go \
  1560. syscall_arch.go
  1561. go_syscall_c_files = \
  1562. go/syscall/errno.c \
  1563. go/syscall/signame.c \
  1564. $(syscall_wait_c_file)
  1565. go_syscall_test_files = \
  1566. $(syscall_creds_test_file) \
  1567. go/syscall/export_test.go \
  1568. go/syscall/mmap_unix_test.go \
  1569. go/syscall/syscall_test.go \
  1570. go/syscall/syscall_unix_test.go
  1571. if LIBGO_IS_LINUX
  1572. internal_syscall_getrandom_file = go/internal/syscall/getrandom_linux.go
  1573. else
  1574. internal_syscall_getrandom_file =
  1575. endif
  1576. go_internal_syscall_files = \
  1577. go/internal/syscall/dummy.go \
  1578. $(internal_syscall_getrandom_file)
  1579. libcalls.go: s-libcalls; @true
  1580. s-libcalls: libcalls-list go/syscall/mksyscall.awk $(go_base_syscall_files)
  1581. rm -f libcalls.go.tmp
  1582. files=`echo $^ | sed -e 's/libcalls-list//' -e 's|[^ ]*go/syscall/mksyscall.awk||'`; \
  1583. $(AWK) -f $(srcdir)/go/syscall/mksyscall.awk $${files} > libcalls.go.tmp
  1584. $(SHELL) $(srcdir)/mvifdiff.sh libcalls.go.tmp libcalls.go
  1585. $(STAMP) $@
  1586. libcalls-list: s-libcalls-list; @true
  1587. s-libcalls-list: Makefile
  1588. rm -f libcalls-list.tmp
  1589. echo $(go_base_syscall_files) > libcalls-list.tmp
  1590. $(SHELL) $(srcdir)/mvifdiff.sh libcalls-list.tmp libcalls-list
  1591. $(STAMP) $@
  1592. syscall_arch.go: s-syscall_arch; @true
  1593. s-syscall_arch: Makefile
  1594. rm -f syscall_arch.go.tmp
  1595. echo "package syscall" > syscall_arch.go.tmp
  1596. echo 'const ARCH = "'$(GOARCH)'"' >> syscall_arch.go.tmp
  1597. echo 'const OS = "'$(GOOS)'"' >> syscall_arch.go.tmp
  1598. $(SHELL) $(srcdir)/mvifdiff.sh syscall_arch.go.tmp syscall_arch.go
  1599. $(STAMP) $@
  1600. sysinfo.go: s-sysinfo; @true
  1601. s-sysinfo: $(srcdir)/mksysinfo.sh config.h
  1602. CC="$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(OSCFLAGS) -O" $(SHELL) $(srcdir)/mksysinfo.sh
  1603. $(SHELL) $(srcdir)/mvifdiff.sh tmp-sysinfo.go sysinfo.go
  1604. $(STAMP) $@
  1605. # The epoll struct has an embedded union and is packed on x86_64,
  1606. # which is too complicated for mksysinfo.sh. We find the offset of
  1607. # the only field we care about in configure.ac, and generate the
  1608. # struct here.
  1609. epoll.go: s-epoll; @true
  1610. s-epoll: Makefile
  1611. rm -f epoll.go.tmp
  1612. echo 'package syscall' > epoll.go.tmp
  1613. echo 'type EpollEvent struct {' >> epoll.go.tmp
  1614. echo ' Events uint32' >> epoll.go.tmp
  1615. case "$(SIZEOF_STRUCT_EPOLL_EVENT),$(STRUCT_EPOLL_EVENT_FD_OFFSET)" in \
  1616. 0,0) echo 1>&2 "*** struct epoll_event data.fd offset unknown"; \
  1617. exit 1; ;; \
  1618. 8,4) echo ' Fd int32' >> epoll.go.tmp; ;; \
  1619. 12,4) echo ' Fd int32' >> epoll.go.tmp; \
  1620. echo ' Pad [4]byte' >> epoll.go.tmp; ;; \
  1621. 12,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
  1622. echo ' Fd int32' >> epoll.go.tmp; ;; \
  1623. 16,8) echo ' Pad [4]byte' >> epoll.go.tmp; \
  1624. echo ' Fd int32' >> epoll.go.tmp; \
  1625. echo ' Pad2 [4]byte' >> epoll.go.tmp; ;; \
  1626. *) echo 1>&2 "*** struct epoll_event unsupported"; \
  1627. exit 1; ;; \
  1628. esac
  1629. echo '}' >> epoll.go.tmp
  1630. $(SHELL) $(srcdir)/mvifdiff.sh epoll.go.tmp epoll.go
  1631. $(STAMP) $@
  1632. if LIBGO_IS_LINUX
  1633. # os_lib_inotify_lo = os/inotify.lo
  1634. os_lib_inotify_lo =
  1635. else
  1636. os_lib_inotify_lo =
  1637. endif
  1638. libgo_go_objs = \
  1639. bufio.lo \
  1640. bytes.lo \
  1641. bytes/index.lo \
  1642. crypto.lo \
  1643. encoding.lo \
  1644. errors.lo \
  1645. expvar.lo \
  1646. flag.lo \
  1647. fmt.lo \
  1648. hash.lo \
  1649. html.lo \
  1650. image.lo \
  1651. io.lo \
  1652. log.lo \
  1653. math.lo \
  1654. mime.lo \
  1655. net.lo \
  1656. os.lo \
  1657. path.lo \
  1658. reflect-go.lo \
  1659. reflect/makefunc_ffi_c.lo \
  1660. regexp.lo \
  1661. runtime-go.lo \
  1662. sort.lo \
  1663. strconv.lo \
  1664. strings.lo \
  1665. strings/index.lo \
  1666. sync.lo \
  1667. syscall.lo \
  1668. syscall/errno.lo \
  1669. syscall/signame.lo \
  1670. syscall/wait.lo \
  1671. testing.lo \
  1672. time-go.lo \
  1673. unicode.lo \
  1674. archive/tar.lo \
  1675. archive/zip.lo \
  1676. compress/bzip2.lo \
  1677. compress/flate.lo \
  1678. compress/gzip.lo \
  1679. compress/lzw.lo \
  1680. compress/zlib.lo \
  1681. container/heap.lo \
  1682. container/list.lo \
  1683. container/ring.lo \
  1684. crypto/aes.lo \
  1685. crypto/cipher.lo \
  1686. crypto/des.lo \
  1687. crypto/dsa.lo \
  1688. crypto/ecdsa.lo \
  1689. crypto/elliptic.lo \
  1690. crypto/hmac.lo \
  1691. crypto/md5.lo \
  1692. crypto/rand.lo \
  1693. crypto/rc4.lo \
  1694. crypto/rsa.lo \
  1695. crypto/sha1.lo \
  1696. crypto/sha256.lo \
  1697. crypto/sha512.lo \
  1698. crypto/subtle.lo \
  1699. crypto/tls.lo \
  1700. crypto/x509.lo \
  1701. crypto/x509/pkix.lo \
  1702. database/sql.lo \
  1703. database/sql/driver.lo \
  1704. debug/dwarf.lo \
  1705. debug/elf.lo \
  1706. debug/gosym.lo \
  1707. debug/macho.lo \
  1708. debug/pe.lo \
  1709. debug/plan9obj.lo \
  1710. encoding/ascii85.lo \
  1711. encoding/asn1.lo \
  1712. encoding/base32.lo \
  1713. encoding/base64.lo \
  1714. encoding/binary.lo \
  1715. encoding/csv.lo \
  1716. encoding/gob.lo \
  1717. encoding/hex.lo \
  1718. encoding/json.lo \
  1719. encoding/pem.lo \
  1720. encoding/xml.lo \
  1721. exp/proxy.lo \
  1722. exp/terminal.lo \
  1723. html/template.lo \
  1724. go/ast.lo \
  1725. go/build.lo \
  1726. go/doc.lo \
  1727. go/format.lo \
  1728. go/parser.lo \
  1729. go/printer.lo \
  1730. go/scanner.lo \
  1731. go/token.lo \
  1732. hash/adler32.lo \
  1733. hash/crc32.lo \
  1734. hash/crc64.lo \
  1735. hash/fnv.lo \
  1736. net/http/cgi.lo \
  1737. net/http/cookiejar.lo \
  1738. net/http/fcgi.lo \
  1739. net/http/httptest.lo \
  1740. net/http/httputil.lo \
  1741. net/http/internal.lo \
  1742. net/http/pprof.lo \
  1743. image/color.lo \
  1744. image/color/palette.lo \
  1745. image/draw.lo \
  1746. image/gif.lo \
  1747. image/jpeg.lo \
  1748. image/png.lo \
  1749. index/suffixarray.lo \
  1750. internal/syscall.lo \
  1751. io/ioutil.lo \
  1752. log/syslog.lo \
  1753. log/syslog/syslog_c.lo \
  1754. math/big.lo \
  1755. math/cmplx.lo \
  1756. math/rand.lo \
  1757. mime/multipart.lo \
  1758. net/http.lo \
  1759. net/mail.lo \
  1760. net/rpc.lo \
  1761. net/smtp.lo \
  1762. net/textproto.lo \
  1763. net/url.lo \
  1764. old/regexp.lo \
  1765. old/template.lo \
  1766. os/exec.lo \
  1767. $(os_lib_inotify_lo) \
  1768. os/signal.lo \
  1769. os/user.lo \
  1770. path/filepath.lo \
  1771. regexp/syntax.lo \
  1772. net/rpc/jsonrpc.lo \
  1773. runtime/debug.lo \
  1774. runtime/pprof.lo \
  1775. sync/atomic.lo \
  1776. sync/atomic_c.lo \
  1777. text/scanner.lo \
  1778. text/tabwriter.lo \
  1779. text/template.lo \
  1780. text/template/parse.lo \
  1781. testing/iotest.lo \
  1782. testing/quick.lo \
  1783. unicode/utf16.lo \
  1784. unicode/utf8.lo
  1785. libgo_ldflags = \
  1786. -version-info $(libtool_VERSION) $(PTHREAD_CFLAGS) $(AM_LDFLAGS)
  1787. libgo_libadd = \
  1788. $(libgo_go_objs) ../libbacktrace/libbacktrace.la \
  1789. $(LIBATOMIC) $(LIBFFI) $(PTHREAD_LIBS) $(MATH_LIBS) $(NET_LIBS)
  1790. libgo_la_SOURCES = $(runtime_files)
  1791. libgo_la_LDFLAGS = $(libgo_ldflags)
  1792. libgo_la_LIBADD = $(libgo_libadd)
  1793. libgo_llgo_la_SOURCES = $(runtime_files)
  1794. libgo_llgo_la_LDFLAGS = $(libgo_ldflags)
  1795. libgo_llgo_la_LIBADD = $(libgo_libadd)
  1796. libgobegin_a_SOURCES = \
  1797. runtime/go-main.c
  1798. libgobegin_llgo_a_SOURCES = \
  1799. runtime/go-main.c
  1800. # Use -fPIC for libgobegin so that it can be put in a PIE.
  1801. libgobegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
  1802. libgobegin_llgo_a_CFLAGS = $(AM_CFLAGS) -fPIC
  1803. libgolibbegin_a_SOURCES = \
  1804. runtime/go-libmain.c
  1805. libgolibbegin_a_CFLAGS = $(AM_CFLAGS) -fPIC
  1806. libnetgo_a_SOURCES = $(go_netgo_files)
  1807. libnetgo_a_LIBADD = netgo.o
  1808. LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
  1809. GOCFLAGS = $(CFLAGS)
  1810. AM_GOCFLAGS = $(STRINGOPS_FLAG)
  1811. GOCOMPILE = $(GOC) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_GOCFLAGS) $(GOCFLAGS)
  1812. LTGOCOMPILE = $(LIBTOOL) --tag GO --mode=compile $(GOC) $(INCLUDES) \
  1813. $(AM_GOCFLAGS) $(GOCFLAGS)
  1814. GOLINK = $(LIBTOOL) --tag GO --mode-link $(GOC) \
  1815. $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_GOCFLAGS) $(LTLDFLAGS) -o $@
  1816. # Build the dependencies for a Go package.
  1817. BUILDDEPS = \
  1818. $(MKDIR_P) $(@D); \
  1819. $(SHELL) $(srcdir)/godeps.sh `echo $@ | sed -e 's/.dep$$//'` $^ > $@.tmp; \
  1820. mv -f $@.tmp $@
  1821. # Build the .go files for a package, generating a .lo file.
  1822. BUILDPACKAGE = \
  1823. $(MKDIR_P) $(@D); \
  1824. files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
  1825. $(LTGOCOMPILE) -I . -c -fgo-pkgpath=`echo $@ | sed -e 's/.lo$$//' -e 's/-go$$//'` -o $@ $$files
  1826. # Build netgo.o.
  1827. BUILDNETGO = \
  1828. $(MKDIR_P) $(@D); \
  1829. files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
  1830. $(GOCOMPILE) -I . -c -fPIC -fgo-pkgpath=net -o $@ $$files
  1831. GOTESTFLAGS =
  1832. GOBENCH =
  1833. # Check a package.
  1834. CHECK = \
  1835. GC="$(GOC) $(GOCFLAGS) $($(subst /,_,$@)_GOCFLAGS) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs"; \
  1836. export GC; \
  1837. GOLIBS="$(MATH_LIBS) $(NET_LIBS) $(LIBS)"; \
  1838. export GOLIBS; \
  1839. RUNTESTFLAGS="$(RUNTESTFLAGS)"; \
  1840. export RUNTESTFLAGS; \
  1841. MAKE="$(MAKE)"; \
  1842. export MAKE; \
  1843. libgccdir=`${GOC} -print-libgcc-file-name | sed -e 's|/[^/]*$$||'`; \
  1844. LD_LIBRARY_PATH="`${PWD_COMMAND}`/.libs:$${libgccdir}:${LD_LIBRARY_PATH}"; \
  1845. LD_LIBRARY_PATH=`echo $${LD_LIBRARY_PATH} | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; \
  1846. export LD_LIBRARY_PATH; \
  1847. $(MKDIR_P) $(@D); \
  1848. rm -f $@-testsum $@-testlog; \
  1849. if test "$(USE_DEJAGNU)" = "yes"; then \
  1850. $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
  1851. elif test "$(GOBENCH)" != ""; then \
  1852. $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" --bench="$(GOBENCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
  1853. else \
  1854. if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
  1855. echo "PASS: $(@D)" >> $@-testlog; \
  1856. echo "PASS: $(@D)"; \
  1857. echo "PASS: $(@D)" > $@-testsum; \
  1858. else \
  1859. echo "FAIL: $(@D)" >> $@-testlog; \
  1860. cat $@-testlog; \
  1861. echo "FAIL: $(@D)" > $@-testsum; \
  1862. exit 1; \
  1863. fi; \
  1864. fi
  1865. # Build all packages before checking any.
  1866. CHECK_DEPS = \
  1867. $(toolexeclibgo_DATA) \
  1868. $(toolexeclibgoarchive_DATA) \
  1869. $(toolexeclibgocompress_DATA) \
  1870. $(toolexeclibgocontainer_DATA) \
  1871. $(toolexeclibgocrypto_DATA) \
  1872. $(toolexeclibgodebug_DATA) \
  1873. $(toolexeclibgoencoding_DATA) \
  1874. $(toolexeclibgoexp_DATA) \
  1875. $(toolexeclibgogo_DATA) \
  1876. $(toolexeclibgohash_DATA) \
  1877. $(toolexeclibgoimage_DATA) \
  1878. $(toolexeclibgoindex_DATA) \
  1879. $(toolexeclibgoio_DATA) \
  1880. $(toolexeclibgolog_DATA) \
  1881. $(toolexeclibgomath_DATA) \
  1882. $(toolexeclibgomime_DATA) \
  1883. $(toolexeclibgonet_DATA) \
  1884. $(toolexeclibgonethttp_DATA) \
  1885. $(toolexeclibgoos_DATA) \
  1886. $(toolexeclibgopath_DATA) \
  1887. $(toolexeclibgorpc_DATA) \
  1888. $(toolexeclibgoruntime_DATA) \
  1889. $(toolexeclibgosync_DATA) \
  1890. $(toolexeclibgotesting_DATA) \
  1891. $(toolexeclibgotext_DATA) \
  1892. $(toolexeclibgotexttemplate_DATA) \
  1893. $(toolexeclibgounicode_DATA)
  1894. if GOC_IS_LLGO
  1895. CHECK_DEPS += libgo-llgo.la libgobegin-llgo.a
  1896. else
  1897. CHECK_DEPS += libgo.la libgobegin.a
  1898. endif
  1899. @go_include@ bufio.lo.dep
  1900. bufio.lo.dep: $(go_bufio_files)
  1901. $(BUILDDEPS)
  1902. bufio.lo: $(go_bufio_files)
  1903. $(BUILDPACKAGE)
  1904. bufio/check: $(CHECK_DEPS)
  1905. @$(CHECK)
  1906. .PHONY: bufio/check
  1907. @go_include@ bytes.lo.dep
  1908. bytes.lo.dep: $(go_bytes_files)
  1909. $(BUILDDEPS)
  1910. bytes.lo: $(go_bytes_files)
  1911. $(BUILDPACKAGE)
  1912. bytes/index.lo: $(go_bytes_c_files)
  1913. @$(MKDIR_P) bytes
  1914. $(LTCOMPILE) -c -o bytes/index.lo $(srcdir)/go/bytes/indexbyte.c
  1915. bytes/check: $(CHECK_DEPS)
  1916. @$(CHECK)
  1917. .PHONY: bytes/check
  1918. @go_include@ crypto.lo.dep
  1919. crypto.lo.dep: $(go_crypto_files)
  1920. $(BUILDDEPS)
  1921. crypto.lo: $(go_crypto_files)
  1922. $(BUILDPACKAGE)
  1923. crypto/check: $(CHECK_DEPS)
  1924. @$(CHECK)
  1925. .PHONY: crypto/check
  1926. @go_include@ encoding.lo.dep
  1927. encoding.lo.dep: $(go_encoding_files)
  1928. $(BUILDDEPS)
  1929. encoding.lo: $(go_encoding_files)
  1930. $(BUILDPACKAGE)
  1931. encoding/check: $(CHECK_DEPS)
  1932. @$(CHECK)
  1933. .PHONY: encoding/check
  1934. @go_include@ errors.lo.dep
  1935. errors.lo.dep: $(go_errors_files)
  1936. $(BUILDDEPS)
  1937. errors.lo: $(go_errors_files)
  1938. $(BUILDPACKAGE)
  1939. errors/check: $(CHECK_DEPS)
  1940. @$(CHECK)
  1941. .PHONY: errors/check
  1942. @go_include@ expvar.lo.dep
  1943. expvar.lo.dep: $(go_expvar_files)
  1944. $(BUILDDEPS)
  1945. expvar.lo: $(go_expvar_files)
  1946. $(BUILDPACKAGE)
  1947. expvar/check: $(CHECK_DEPS)
  1948. @$(CHECK)
  1949. .PHONY: expvar/check
  1950. @go_include@ flag.lo.dep
  1951. flag.lo.dep: $(go_flag_files)
  1952. $(BUILDDEPS)
  1953. flag.lo: $(go_flag_files)
  1954. $(BUILDPACKAGE)
  1955. flag/check: $(CHECK_DEPS)
  1956. @$(CHECK)
  1957. .PHONY: flag/check
  1958. @go_include@ fmt.lo.dep
  1959. fmt.lo.dep: $(go_fmt_files)
  1960. $(BUILDDEPS)
  1961. fmt.lo: $(go_fmt_files)
  1962. $(BUILDPACKAGE)
  1963. fmt/check: $(CHECK_DEPS)
  1964. @$(CHECK)
  1965. .PHONY: fmt/check
  1966. @go_include@ hash.lo.dep
  1967. hash.lo.dep: $(go_hash_files)
  1968. $(BUILDDEPS)
  1969. hash.lo: $(go_hash_files)
  1970. $(BUILDPACKAGE)
  1971. hash/check: $(CHECK_DEPS)
  1972. @$(CHECK)
  1973. .PHONY: hash/check
  1974. @go_include@ html.lo.dep
  1975. html.lo.dep: $(go_html_files)
  1976. $(BUILDDEPS)
  1977. html.lo: $(go_html_files)
  1978. $(BUILDPACKAGE)
  1979. html/check: $(CHECK_DEPS)
  1980. @$(CHECK)
  1981. .PHONY: html/check
  1982. @go_include@ image.lo.dep
  1983. image.lo.dep: $(go_image_files)
  1984. $(BUILDDEPS)
  1985. image.lo: $(go_image_files)
  1986. $(BUILDPACKAGE)
  1987. image/check: $(CHECK_DEPS)
  1988. @$(CHECK)
  1989. .PHONY: image/check
  1990. @go_include@ io.lo.dep
  1991. io.lo.dep: $(go_io_files)
  1992. $(BUILDDEPS)
  1993. io.lo: $(go_io_files)
  1994. $(BUILDPACKAGE)
  1995. io/check: $(CHECK_DEPS)
  1996. @$(CHECK)
  1997. .PHONY: io/check
  1998. @go_include@ log.lo.dep
  1999. log.lo.dep: $(go_log_files)
  2000. $(BUILDDEPS)
  2001. log.lo: $(go_log_files)
  2002. $(BUILDPACKAGE)
  2003. log/check: $(CHECK_DEPS)
  2004. @$(CHECK)
  2005. .PHONY: log/check
  2006. @go_include@ math.lo.dep
  2007. math.lo.dep: $(go_math_files)
  2008. $(BUILDDEPS)
  2009. math.lo: $(go_math_files)
  2010. $(MKDIR_P) $(@D)
  2011. files=`echo $^ | sed -e 's/[^ ]*\.gox//g'`; \
  2012. $(LTGOCOMPILE) $(MATH_FLAG) -I . -c -fgo-pkgpath=math -o $@ $$files
  2013. math/check: $(CHECK_DEPS)
  2014. @$(CHECK)
  2015. .PHONY: math/check
  2016. @go_include@ mime.lo.dep
  2017. mime.lo.dep: $(go_mime_files)
  2018. $(BUILDDEPS)
  2019. mime.lo: $(go_mime_files)
  2020. $(BUILDPACKAGE)
  2021. mime/check: $(CHECK_DEPS)
  2022. @$(CHECK)
  2023. .PHONY: mime/check
  2024. @go_include@ net.lo.dep
  2025. net.lo.dep: $(go_net_files)
  2026. $(BUILDDEPS)
  2027. net.lo: $(go_net_files)
  2028. $(BUILDPACKAGE)
  2029. net/check: $(CHECK_DEPS)
  2030. @$(CHECK)
  2031. .PHONY: net/check
  2032. @go_include@ netgo.o.dep
  2033. netgo.o.dep: $(go_netgo_files)
  2034. $(BUILDDEPS)
  2035. netgo.o: $(go_netgo_files)
  2036. $(BUILDNETGO)
  2037. @go_include@ os.lo.dep
  2038. os.lo.dep: $(go_os_files)
  2039. $(BUILDDEPS)
  2040. os.lo: $(go_os_files)
  2041. $(BUILDPACKAGE)
  2042. os/check: $(CHECK_DEPS)
  2043. @$(CHECK)
  2044. .PHONY: os/check
  2045. @go_include@ path.lo.dep
  2046. path.lo.dep: $(go_path_files)
  2047. $(BUILDDEPS)
  2048. path.lo: $(go_path_files)
  2049. $(BUILDPACKAGE)
  2050. path/check: $(CHECK_DEPS)
  2051. @$(CHECK)
  2052. .PHONY: path/check
  2053. @go_include@ reflect-go.lo.dep
  2054. reflect-go.lo.dep: $(go_reflect_files)
  2055. $(BUILDDEPS)
  2056. reflect-go.lo: $(go_reflect_files)
  2057. $(BUILDPACKAGE)
  2058. reflect/check: $(CHECK_DEPS)
  2059. @$(CHECK)
  2060. reflect/makefunc_ffi_c.lo: $(go_reflect_makefunc_c_file)
  2061. @$(MKDIR_P) reflect
  2062. $(LTCOMPILE) -c -o $@ $<
  2063. .PHONY: reflect/check
  2064. @go_include@ regexp.lo.dep
  2065. regexp.lo.dep: $(go_regexp_files)
  2066. $(BUILDDEPS)
  2067. regexp.lo: $(go_regexp_files)
  2068. $(BUILDPACKAGE)
  2069. regexp/check: $(CHECK_DEPS)
  2070. @$(CHECK)
  2071. .PHONY: regexp/check
  2072. @go_include@ runtime-go.lo.dep
  2073. runtime-go.lo.dep: $(go_runtime_files)
  2074. $(BUILDDEPS)
  2075. runtime-go.lo: $(go_runtime_files)
  2076. $(BUILDPACKAGE)
  2077. runtime/check: $(CHECK_DEPS)
  2078. @$(CHECK)
  2079. .PHONY: runtime/check
  2080. @go_include@ sort.lo.dep
  2081. sort.lo.dep: $(go_sort_files)
  2082. $(BUILDDEPS)
  2083. sort.lo: $(go_sort_files)
  2084. $(BUILDPACKAGE)
  2085. sort/check: $(CHECK_DEPS)
  2086. @$(CHECK)
  2087. .PHONY: sort/check
  2088. @go_include@ strconv.lo.dep
  2089. strconv.lo.dep: $(go_strconv_files)
  2090. $(BUILDDEPS)
  2091. strconv.lo: $(go_strconv_files)
  2092. $(BUILDPACKAGE)
  2093. strconv/check: $(CHECK_DEPS)
  2094. @$(CHECK)
  2095. .PHONY: strconv/check
  2096. @go_include@ strings.lo.dep
  2097. strings.lo.dep: $(go_strings_files)
  2098. $(BUILDDEPS)
  2099. strings.lo: $(go_strings_files)
  2100. $(BUILDPACKAGE)
  2101. strings/index.lo: $(go_strings_c_files)
  2102. @$(MKDIR_P) strings
  2103. $(LTCOMPILE) -c -o strings/index.lo $(srcdir)/go/strings/indexbyte.c
  2104. strings/check: $(CHECK_DEPS)
  2105. @$(CHECK)
  2106. .PHONY: strings/check
  2107. @go_include@ sync.lo.dep
  2108. sync.lo.dep: $(go_sync_files)
  2109. $(BUILDDEPS)
  2110. sync.lo: $(go_sync_files)
  2111. $(BUILDPACKAGE)
  2112. sync/check: $(CHECK_DEPS)
  2113. @$(CHECK)
  2114. .PHONY: sync/check
  2115. @go_include@ testing.lo.dep
  2116. testing.lo.dep: $(go_testing_files)
  2117. $(BUILDDEPS)
  2118. testing.lo: $(go_testing_files)
  2119. $(BUILDPACKAGE)
  2120. testing/check: $(CHECK_DEPS)
  2121. @$(CHECK)
  2122. .PHONY: testing/check
  2123. @go_include@ time-go.lo.dep
  2124. time-go.lo.dep: $(go_time_files)
  2125. $(BUILDDEPS)
  2126. time-go.lo: $(go_time_files)
  2127. $(BUILDPACKAGE)
  2128. time/check: $(CHECK_DEPS)
  2129. @$(CHECK)
  2130. .PHONY: time/check
  2131. @go_include@ unicode.lo.dep
  2132. unicode.lo.dep: $(go_unicode_files)
  2133. $(BUILDDEPS)
  2134. unicode.lo: $(go_unicode_files)
  2135. $(BUILDPACKAGE)
  2136. unicode/check: $(CHECK_DEPS)
  2137. @$(CHECK)
  2138. .PHONY: unicode/check
  2139. @go_include@ archive/tar.lo.dep
  2140. archive/tar.lo.dep: $(go_archive_tar_files)
  2141. $(BUILDDEPS)
  2142. archive/tar.lo: $(go_archive_tar_files)
  2143. $(BUILDPACKAGE)
  2144. archive/tar/check: $(CHECK_DEPS)
  2145. @$(CHECK)
  2146. .PHONY: archive/tar/check
  2147. @go_include@ archive/zip.lo.dep
  2148. archive/zip.lo.dep: $(go_archive_zip_files)
  2149. $(BUILDDEPS)
  2150. archive/zip.lo: $(go_archive_zip_files)
  2151. $(BUILDPACKAGE)
  2152. archive/zip/check: $(CHECK_DEPS)
  2153. @$(CHECK)
  2154. .PHONY: archive/zip/check
  2155. @go_include@ compress/bzip2.lo.dep
  2156. compress/bzip2.lo.dep: $(go_compress_bzip2_files)
  2157. $(BUILDDEPS)
  2158. compress/bzip2.lo: $(go_compress_bzip2_files)
  2159. $(BUILDPACKAGE)
  2160. compress/bzip2/check: $(CHECK_DEPS)
  2161. @$(CHECK)
  2162. .PHONY: compress/bzip2/check
  2163. @go_include@ compress/flate.lo.dep
  2164. compress/flate.lo.dep: $(go_compress_flate_files)
  2165. $(BUILDDEPS)
  2166. compress/flate.lo: $(go_compress_flate_files)
  2167. $(BUILDPACKAGE)
  2168. compress/flate/check: $(CHECK_DEPS)
  2169. @$(CHECK)
  2170. .PHONY: compress/flate/check
  2171. @go_include@ compress/gzip.lo.dep
  2172. compress/gzip.lo.dep: $(go_compress_gzip_files)
  2173. $(BUILDDEPS)
  2174. compress/gzip.lo: $(go_compress_gzip_files)
  2175. $(BUILDPACKAGE)
  2176. compress/gzip/check: $(CHECK_DEPS)
  2177. @$(CHECK)
  2178. .PHONY: compress/gzip/check
  2179. @go_include@ compress/lzw.lo.dep
  2180. compress/lzw.lo.dep: $(go_compress_lzw_files)
  2181. $(BUILDDEPS)
  2182. compress/lzw.lo: $(go_compress_lzw_files)
  2183. $(BUILDPACKAGE)
  2184. compress/lzw/check: $(CHECK_DEPS)
  2185. @$(CHECK)
  2186. .PHONY: compress/lzw/check
  2187. @go_include@ compress/zlib.lo.dep
  2188. compress/zlib.lo.dep: $(go_compress_zlib_files)
  2189. $(BUILDDEPS)
  2190. compress/zlib.lo: $(go_compress_zlib_files)
  2191. $(BUILDPACKAGE)
  2192. compress/zlib/check: $(CHECK_DEPS)
  2193. @$(CHECK)
  2194. .PHONY: compress/zlib/check
  2195. @go_include@ container/heap.lo.dep
  2196. container/heap.lo.dep: $(go_container_heap_files)
  2197. $(BUILDDEPS)
  2198. container/heap.lo: $(go_container_heap_files)
  2199. $(BUILDPACKAGE)
  2200. container/heap/check: $(CHECK_DEPS)
  2201. @$(CHECK)
  2202. .PHONY: container/heap/check
  2203. @go_include@ container/list.lo.dep
  2204. container/list.lo.dep: $(go_container_list_files)
  2205. $(BUILDDEPS)
  2206. container/list.lo: $(go_container_list_files)
  2207. $(BUILDPACKAGE)
  2208. container/list/check: $(CHECK_DEPS)
  2209. @$(CHECK)
  2210. .PHONY: container/list/check
  2211. @go_include@ container/ring.lo.dep
  2212. container/ring.lo.dep: $(go_container_ring_files)
  2213. $(BUILDDEPS)
  2214. container/ring.lo: $(go_container_ring_files)
  2215. $(BUILDPACKAGE)
  2216. container/ring/check: $(CHECK_DEPS)
  2217. @$(CHECK)
  2218. .PHONY: container/ring/check
  2219. @go_include@ crypto/aes.lo.dep
  2220. crypto/aes.lo.dep: $(go_crypto_aes_files)
  2221. $(BUILDDEPS)
  2222. crypto/aes.lo: $(go_crypto_aes_files)
  2223. $(BUILDPACKAGE)
  2224. crypto/aes/check: $(CHECK_DEPS)
  2225. @$(CHECK)
  2226. .PHONY: crypto/aes/check
  2227. @go_include@ crypto/cipher.lo.dep
  2228. crypto/cipher.lo.dep: $(go_crypto_cipher_files)
  2229. $(BUILDDEPS)
  2230. crypto/cipher.lo: $(go_crypto_cipher_files)
  2231. $(BUILDPACKAGE)
  2232. crypto/cipher/check: $(CHECK_DEPS)
  2233. @$(CHECK)
  2234. .PHONY: crypto/cipher/check
  2235. @go_include@ crypto/des.lo.dep
  2236. crypto/des.lo.dep: $(go_crypto_des_files)
  2237. $(BUILDDEPS)
  2238. crypto/des.lo: $(go_crypto_des_files)
  2239. $(BUILDPACKAGE)
  2240. crypto/des/check: $(CHECK_DEPS)
  2241. @$(CHECK)
  2242. .PHONY: crypto/des/check
  2243. @go_include@ crypto/dsa.lo.dep
  2244. crypto/dsa.lo.dep: $(go_crypto_dsa_files)
  2245. $(BUILDDEPS)
  2246. crypto/dsa.lo: $(go_crypto_dsa_files)
  2247. $(BUILDPACKAGE)
  2248. crypto/dsa/check: $(CHECK_DEPS)
  2249. @$(CHECK)
  2250. .PHONY: crypto/dsa/check
  2251. @go_include@ crypto/ecdsa.lo.dep
  2252. crypto/ecdsa.lo.dep: $(go_crypto_ecdsa_files)
  2253. $(BUILDDEPS)
  2254. crypto/ecdsa.lo: $(go_crypto_ecdsa_files)
  2255. $(BUILDPACKAGE)
  2256. crypto/ecdsa/check: $(CHECK_DEPS)
  2257. @$(CHECK)
  2258. .PHONY: crypto/ecdsa/check
  2259. @go_include@ crypto/elliptic.lo.dep
  2260. crypto/elliptic.lo.dep: $(go_crypto_elliptic_files)
  2261. $(BUILDDEPS)
  2262. crypto/elliptic.lo: $(go_crypto_elliptic_files)
  2263. $(BUILDPACKAGE)
  2264. crypto/elliptic/check: $(CHECK_DEPS)
  2265. @$(CHECK)
  2266. .PHONY: crypto/elliptic/check
  2267. @go_include@ crypto/hmac.lo.dep
  2268. crypto/hmac.lo.dep: $(go_crypto_hmac_files)
  2269. $(BUILDDEPS)
  2270. crypto/hmac.lo: $(go_crypto_hmac_files)
  2271. $(BUILDPACKAGE)
  2272. crypto/hmac/check: $(CHECK_DEPS)
  2273. @$(CHECK)
  2274. .PHONY: crypto/hmac/check
  2275. @go_include@ crypto/md5.lo.dep
  2276. crypto/md5.lo.dep: $(go_crypto_md5_files)
  2277. $(BUILDDEPS)
  2278. crypto/md5.lo: $(go_crypto_md5_files)
  2279. $(BUILDPACKAGE)
  2280. crypto/md5/check: $(CHECK_DEPS)
  2281. @$(CHECK)
  2282. .PHONY: crypto/md5/check
  2283. @go_include@ crypto/rand.lo.dep
  2284. crypto/rand.lo.dep: $(go_crypto_rand_files)
  2285. $(BUILDDEPS)
  2286. crypto/rand.lo: $(go_crypto_rand_files)
  2287. $(BUILDPACKAGE)
  2288. crypto/rand/check: $(CHECK_DEPS)
  2289. @$(CHECK)
  2290. .PHONY: crypto/rand/check
  2291. @go_include@ crypto/rc4.lo.dep
  2292. crypto/rc4.lo.dep: $(go_crypto_rc4_files)
  2293. $(BUILDDEPS)
  2294. crypto/rc4.lo: $(go_crypto_rc4_files)
  2295. $(BUILDPACKAGE)
  2296. crypto/rc4/check: $(CHECK_DEPS)
  2297. @$(CHECK)
  2298. .PHONY: crypto/rc4/check
  2299. @go_include@ crypto/rsa.lo.dep
  2300. crypto/rsa.lo.dep: $(go_crypto_rsa_files)
  2301. $(BUILDDEPS)
  2302. crypto/rsa.lo: $(go_crypto_rsa_files)
  2303. $(BUILDPACKAGE)
  2304. crypto/rsa/check: $(CHECK_DEPS)
  2305. @$(CHECK)
  2306. .PHONY: crypto/rsa/check
  2307. @go_include@ crypto/sha1.lo.dep
  2308. crypto/sha1.lo.dep: $(go_crypto_sha1_files)
  2309. $(BUILDDEPS)
  2310. crypto/sha1.lo: $(go_crypto_sha1_files)
  2311. $(BUILDPACKAGE)
  2312. crypto/sha1/check: $(CHECK_DEPS)
  2313. @$(CHECK)
  2314. .PHONY: crypto/sha1/check
  2315. @go_include@ crypto/sha256.lo.dep
  2316. crypto/sha256.lo.dep: $(go_crypto_sha256_files)
  2317. $(BUILDDEPS)
  2318. crypto/sha256.lo: $(go_crypto_sha256_files)
  2319. $(BUILDPACKAGE)
  2320. crypto/sha256/check: $(CHECK_DEPS)
  2321. @$(CHECK)
  2322. .PHONY: crypto/sha256/check
  2323. @go_include@ crypto/sha512.lo.dep
  2324. crypto/sha512.lo.dep: $(go_crypto_sha512_files)
  2325. $(BUILDDEPS)
  2326. crypto/sha512.lo: $(go_crypto_sha512_files)
  2327. $(BUILDPACKAGE)
  2328. crypto/sha512/check: $(CHECK_DEPS)
  2329. @$(CHECK)
  2330. .PHONY: crypto/sha512/check
  2331. @go_include@ crypto/subtle.lo.dep
  2332. crypto/subtle.lo.dep: $(go_crypto_subtle_files)
  2333. $(BUILDDEPS)
  2334. crypto/subtle.lo: $(go_crypto_subtle_files)
  2335. $(BUILDPACKAGE)
  2336. crypto/subtle/check: $(CHECK_DEPS)
  2337. @$(CHECK)
  2338. .PHONY: crypto/subtle/check
  2339. @go_include@ crypto/tls.lo.dep
  2340. crypto/tls.lo.dep: $(go_crypto_tls_files)
  2341. $(BUILDDEPS)
  2342. crypto/tls.lo: $(go_crypto_tls_files)
  2343. $(BUILDPACKAGE)
  2344. crypto/tls/check: $(CHECK_DEPS)
  2345. @$(CHECK)
  2346. .PHONY: crypto/tls/check
  2347. @go_include@ crypto/x509.lo.dep
  2348. crypto/x509.lo.dep: $(go_crypto_x509_files)
  2349. $(BUILDDEPS)
  2350. crypto/x509.lo: $(go_crypto_x509_files)
  2351. $(BUILDPACKAGE)
  2352. crypto/x509/check: $(CHECK_DEPS)
  2353. @$(CHECK)
  2354. .PHONY: crypto/x509/check
  2355. @go_include@ crypto/x509/pkix.lo.dep
  2356. crypto/x509/pkix.lo.dep: $(go_crypto_x509_pkix_files)
  2357. $(BUILDDEPS)
  2358. crypto/x509/pkix.lo: $(go_crypto_x509_pkix_files)
  2359. $(BUILDPACKAGE)
  2360. crypto/x509/pkix/check: $(CHECK_DEPS)
  2361. @$(CHECK)
  2362. .PHONY: crypto/x509/pkix/check
  2363. @go_include@ database/sql.lo.dep
  2364. database/sql.lo.dep: $(go_database_sql_files)
  2365. $(BUILDDEPS)
  2366. database/sql.lo: $(go_database_sql_files)
  2367. $(BUILDPACKAGE)
  2368. database/sql/check: $(CHECK_DEPS)
  2369. @$(CHECK)
  2370. .PHONY: database/sql/check
  2371. @go_include@ database/sql/driver.lo.dep
  2372. database/sql/driver.lo.dep: $(go_database_sql_driver_files)
  2373. $(BUILDDEPS)
  2374. database/sql/driver.lo: $(go_database_sql_driver_files)
  2375. $(BUILDPACKAGE)
  2376. database/sql/driver/check: $(CHECK_DEPS)
  2377. @$(CHECK)
  2378. .PHONY: database/sql/driver/check
  2379. @go_include@ debug/dwarf.lo.dep
  2380. debug/dwarf.lo.dep: $(go_debug_dwarf_files)
  2381. $(BUILDDEPS)
  2382. debug/dwarf.lo: $(go_debug_dwarf_files)
  2383. $(BUILDPACKAGE)
  2384. debug/dwarf/check: $(CHECK_DEPS)
  2385. @$(CHECK)
  2386. .PHONY: debug/dwarf/check
  2387. @go_include@ debug/elf.lo.dep
  2388. debug/elf.lo.dep: $(go_debug_elf_files)
  2389. $(BUILDDEPS)
  2390. debug/elf.lo: $(go_debug_elf_files)
  2391. $(BUILDPACKAGE)
  2392. debug/elf/check: $(CHECK_DEPS)
  2393. @$(CHECK)
  2394. .PHONY: debug/elf/check
  2395. @go_include@ debug/gosym.lo.dep
  2396. debug/gosym.lo.dep: $(go_debug_gosym_files)
  2397. $(BUILDDEPS)
  2398. debug/gosym.lo: $(go_debug_gosym_files)
  2399. $(BUILDPACKAGE)
  2400. debug/gosym/check: $(CHECK_DEPS)
  2401. @$(CHECK)
  2402. .PHONY: debug/gosym/check
  2403. @go_include@ debug/macho.lo.dep
  2404. debug/macho.lo.dep: $(go_debug_macho_files)
  2405. $(BUILDDEPS)
  2406. debug/macho.lo: $(go_debug_macho_files)
  2407. $(BUILDPACKAGE)
  2408. debug/macho/check: $(CHECK_DEPS)
  2409. @$(CHECK)
  2410. .PHONY: debug/macho/check
  2411. @go_include@ debug/pe.lo.dep
  2412. debug/pe.lo.dep: $(go_debug_pe_files)
  2413. $(BUILDDEPS)
  2414. debug/pe.lo: $(go_debug_pe_files)
  2415. $(BUILDPACKAGE)
  2416. debug/pe/check: $(CHECK_DEPS)
  2417. @$(CHECK)
  2418. .PHONY: debug/pe/check
  2419. @go_include@ debug/plan9obj.lo.dep
  2420. debug/plan9obj.lo.dep: $(go_debug_plan9obj_files)
  2421. $(BUILDDEPS)
  2422. debug/plan9obj.lo: $(go_debug_plan9obj_files)
  2423. $(BUILDPACKAGE)
  2424. debug/plan9obj/check: $(CHECK_DEPS)
  2425. @$(CHECK)
  2426. .PHONY: debug/plan9obj/check
  2427. @go_include@ encoding/asn1.lo.dep
  2428. encoding/asn1.lo.dep: $(go_encoding_asn1_files)
  2429. $(BUILDDEPS)
  2430. encoding/asn1.lo: $(go_encoding_asn1_files)
  2431. $(BUILDPACKAGE)
  2432. encoding/asn1/check: $(CHECK_DEPS)
  2433. @$(CHECK)
  2434. .PHONY: encoding/asn1/check
  2435. @go_include@ encoding/ascii85.lo.dep
  2436. encoding/ascii85.lo.dep: $(go_encoding_ascii85_files)
  2437. $(BUILDDEPS)
  2438. encoding/ascii85.lo: $(go_encoding_ascii85_files)
  2439. $(BUILDPACKAGE)
  2440. encoding/ascii85/check: $(CHECK_DEPS)
  2441. @$(CHECK)
  2442. .PHONY: encoding/ascii85/check
  2443. @go_include@ encoding/base32.lo.dep
  2444. encoding/base32.lo.dep: $(go_encoding_base32_files)
  2445. $(BUILDDEPS)
  2446. encoding/base32.lo: $(go_encoding_base32_files)
  2447. $(BUILDPACKAGE)
  2448. encoding/base32/check: $(CHECK_DEPS)
  2449. @$(CHECK)
  2450. .PHONY: encoding/base32/check
  2451. @go_include@ encoding/base64.lo.dep
  2452. encoding/base64.lo.dep: $(go_encoding_base64_files)
  2453. $(BUILDDEPS)
  2454. encoding/base64.lo: $(go_encoding_base64_files)
  2455. $(BUILDPACKAGE)
  2456. encoding/base64/check: $(CHECK_DEPS)
  2457. @$(CHECK)
  2458. .PHONY: encoding/base64/check
  2459. @go_include@ encoding/binary.lo.dep
  2460. encoding/binary.lo.dep: $(go_encoding_binary_files)
  2461. $(BUILDDEPS)
  2462. encoding/binary.lo: $(go_encoding_binary_files)
  2463. $(BUILDPACKAGE)
  2464. encoding/binary/check: $(CHECK_DEPS)
  2465. @$(CHECK)
  2466. .PHONY: encoding/binary/check
  2467. @go_include@ encoding/csv.lo.dep
  2468. encoding/csv.lo.dep: $(go_encoding_csv_files)
  2469. $(BUILDDEPS)
  2470. encoding/csv.lo: $(go_encoding_csv_files)
  2471. $(BUILDPACKAGE)
  2472. encoding/csv/check: $(CHECK_DEPS)
  2473. @$(CHECK)
  2474. .PHONY: encoding/csv/check
  2475. @go_include@ encoding/gob.lo.dep
  2476. encoding/gob.lo.dep: $(go_encoding_gob_files)
  2477. $(BUILDDEPS)
  2478. encoding/gob.lo: $(go_encoding_gob_files)
  2479. $(BUILDPACKAGE)
  2480. encoding/gob/check: $(CHECK_DEPS)
  2481. @$(CHECK)
  2482. .PHONY: encoding/gob/check
  2483. @go_include@ encoding/hex.lo.dep
  2484. encoding/hex.lo.dep: $(go_encoding_hex_files)
  2485. $(BUILDDEPS)
  2486. encoding/hex.lo: $(go_encoding_hex_files)
  2487. $(BUILDPACKAGE)
  2488. encoding/hex/check: $(CHECK_DEPS)
  2489. @$(CHECK)
  2490. .PHONY: encoding/hex/check
  2491. @go_include@ encoding/json.lo.dep
  2492. encoding/json.lo.dep: $(go_encoding_json_files)
  2493. $(BUILDDEPS)
  2494. encoding/json.lo: $(go_encoding_json_files)
  2495. $(BUILDPACKAGE)
  2496. encoding/json/check: $(CHECK_DEPS)
  2497. @$(CHECK)
  2498. .PHONY: encoding/json/check
  2499. @go_include@ encoding/pem.lo.dep
  2500. encoding/pem.lo.dep: $(go_encoding_pem_files)
  2501. $(BUILDDEPS)
  2502. encoding/pem.lo: $(go_encoding_pem_files)
  2503. $(BUILDPACKAGE)
  2504. encoding/pem/check: $(CHECK_DEPS)
  2505. @$(CHECK)
  2506. .PHONY: encoding/pem/check
  2507. @go_include@ encoding/xml.lo.dep
  2508. encoding/xml.lo.dep: $(go_encoding_xml_files)
  2509. $(BUILDDEPS)
  2510. encoding/xml.lo: $(go_encoding_xml_files)
  2511. $(BUILDPACKAGE)
  2512. encoding/xml/check: $(CHECK_DEPS)
  2513. @$(CHECK)
  2514. .PHONY: encoding/xml/check
  2515. @go_include@ exp/proxy.lo.dep
  2516. exp/proxy.lo.dep: $(go_exp_proxy_files)
  2517. $(BUILDDEPS)
  2518. exp/proxy.lo: $(go_exp_proxy_files)
  2519. $(BUILDPACKAGE)
  2520. exp/proxy/check: $(CHECK_DEPS)
  2521. @$(CHECK)
  2522. .PHONY: exp/proxy/check
  2523. @go_include@ exp/terminal.lo.dep
  2524. exp/terminal.lo.dep: $(go_exp_terminal_files)
  2525. $(BUILDDEPS)
  2526. exp/terminal.lo: $(go_exp_terminal_files)
  2527. $(BUILDPACKAGE)
  2528. exp/terminal/check: $(CHECK_DEPS)
  2529. @$(CHECK)
  2530. .PHONY: exp/terminal/check
  2531. @go_include@ html/template.lo.dep
  2532. html/template.lo.dep: $(go_html_template_files)
  2533. $(BUILDDEPS)
  2534. html/template.lo: $(go_html_template_files)
  2535. $(BUILDPACKAGE)
  2536. html/template/check: $(CHECK_DEPS)
  2537. @$(CHECK)
  2538. .PHONY: html/template/check
  2539. @go_include@ go/ast.lo.dep
  2540. go/ast.lo.dep: $(go_go_ast_files)
  2541. $(BUILDDEPS)
  2542. go/ast.lo: $(go_go_ast_files)
  2543. $(BUILDPACKAGE)
  2544. go/ast/check: $(CHECK_DEPS)
  2545. @$(CHECK)
  2546. .PHONY: go/ast/check
  2547. @go_include@ go/build.lo.dep
  2548. go/build.lo.dep: $(go_go_build_files)
  2549. $(BUILDDEPS)
  2550. go/build.lo: $(go_go_build_files)
  2551. $(BUILDPACKAGE)
  2552. go/build/check: $(CHECK_DEPS)
  2553. @$(CHECK)
  2554. .PHONY: go/build/check
  2555. @go_include@ go/doc.lo.dep
  2556. go/doc.lo.dep: $(go_go_doc_files)
  2557. $(BUILDDEPS)
  2558. go/doc.lo: $(go_go_doc_files)
  2559. $(BUILDPACKAGE)
  2560. go/doc/check: $(CHECK_DEPS)
  2561. @$(CHECK)
  2562. .PHONY: go/doc/check
  2563. @go_include@ go/format.lo.dep
  2564. go/format.lo.dep: $(go_go_format_files)
  2565. $(BUILDDEPS)
  2566. go/format.lo: $(go_go_format_files)
  2567. $(BUILDPACKAGE)
  2568. go/format/check: $(CHECK_DEPS)
  2569. @$(CHECK)
  2570. .PHONY: go/format/check
  2571. @go_include@ go/parser.lo.dep
  2572. go/parser.lo.dep: $(go_go_parser_files)
  2573. $(BUILDDEPS)
  2574. go/parser.lo: $(go_go_parser_files)
  2575. $(BUILDPACKAGE)
  2576. go/parser/check: $(CHECK_DEPS)
  2577. @$(CHECK)
  2578. .PHONY: go/parser/check
  2579. @go_include@ go/printer.lo.dep
  2580. go/printer.lo.dep: $(go_go_printer_files)
  2581. $(BUILDDEPS)
  2582. go/printer.lo: $(go_go_printer_files)
  2583. $(BUILDPACKAGE)
  2584. go/printer/check: $(CHECK_DEPS)
  2585. @$(CHECK)
  2586. .PHONY: go/printer/check
  2587. @go_include@ go/scanner.lo.dep
  2588. go/scanner.lo.dep: $(go_go_scanner_files)
  2589. $(BUILDDEPS)
  2590. go/scanner.lo: $(go_go_scanner_files)
  2591. $(BUILDPACKAGE)
  2592. go/scanner/check: $(CHECK_DEPS)
  2593. @$(CHECK)
  2594. .PHONY: go/scanner/check
  2595. @go_include@ go/token.lo.dep
  2596. go/token.lo.dep: $(go_go_token_files)
  2597. $(BUILDDEPS)
  2598. go/token.lo: $(go_go_token_files)
  2599. $(BUILDPACKAGE)
  2600. go/token/check: $(CHECK_DEPS)
  2601. @$(CHECK)
  2602. .PHONY: go/token/check
  2603. @go_include@ hash/adler32.lo.dep
  2604. hash/adler32.lo.dep: $(go_hash_adler32_files)
  2605. $(BUILDDEPS)
  2606. hash/adler32.lo: $(go_hash_adler32_files)
  2607. $(BUILDPACKAGE)
  2608. hash/adler32/check: $(CHECK_DEPS)
  2609. @$(CHECK)
  2610. .PHONY: hash/adler32/check
  2611. @go_include@ hash/crc32.lo.dep
  2612. hash/crc32.lo.dep: $(go_hash_crc32_files)
  2613. $(BUILDDEPS)
  2614. hash/crc32.lo: $(go_hash_crc32_files)
  2615. $(BUILDPACKAGE)
  2616. hash/crc32/check: $(CHECK_DEPS)
  2617. @$(CHECK)
  2618. .PHONY: hash/crc32/check
  2619. @go_include@ hash/crc64.lo.dep
  2620. hash/crc64.lo.dep: $(go_hash_crc64_files)
  2621. $(BUILDDEPS)
  2622. hash/crc64.lo: $(go_hash_crc64_files)
  2623. $(BUILDPACKAGE)
  2624. hash/crc64/check: $(CHECK_DEPS)
  2625. @$(CHECK)
  2626. .PHONY: hash/crc64/check
  2627. @go_include@ hash/fnv.lo.dep
  2628. hash/fnv.lo.dep: $(go_hash_fnv_files)
  2629. $(BUILDDEPS)
  2630. hash/fnv.lo: $(go_hash_fnv_files)
  2631. $(BUILDPACKAGE)
  2632. hash/fnv/check: $(CHECK_DEPS)
  2633. @$(CHECK)
  2634. .PHONY: hash/fnv/check
  2635. @go_include@ image/color.lo.dep
  2636. image/color.lo.dep: $(go_image_color_files)
  2637. $(BUILDDEPS)
  2638. image/color.lo: $(go_image_color_files)
  2639. $(BUILDPACKAGE)
  2640. image/color/check: $(CHECK_DEPS)
  2641. @$(CHECK)
  2642. .PHONY: image/color/check
  2643. @go_include@ image/color/palette.lo.dep
  2644. image/color/palette.lo.dep: $(go_image_color_palette_files)
  2645. $(BUILDDEPS)
  2646. image/color/palette.lo: $(go_image_color_palette_files)
  2647. $(BUILDPACKAGE)
  2648. image/color/palette/check: $(CHECK_DEPS)
  2649. @$(CHECK)
  2650. .PHONY: image/color/palette/check
  2651. @go_include@ image/draw.lo.dep
  2652. image/draw.lo.dep: $(go_image_draw_files)
  2653. $(BUILDDEPS)
  2654. image/draw.lo: $(go_image_draw_files)
  2655. $(BUILDPACKAGE)
  2656. image/draw/check: $(CHECK_DEPS)
  2657. @$(CHECK)
  2658. .PHONY: image/draw/check
  2659. @go_include@ image/gif.lo.dep
  2660. image/gif.lo.dep: $(go_image_gif_files)
  2661. $(BUILDDEPS)
  2662. image/gif.lo: $(go_image_gif_files)
  2663. $(BUILDPACKAGE)
  2664. image/gif/check: $(CHECK_DEPS)
  2665. @$(CHECK)
  2666. .PHONY: image/gif/check
  2667. @go_include@ image/jpeg.lo.dep
  2668. image/jpeg.lo.dep: $(go_image_jpeg_files)
  2669. $(BUILDDEPS)
  2670. image/jpeg.lo: $(go_image_jpeg_files)
  2671. $(BUILDPACKAGE)
  2672. image/jpeg/check: $(CHECK_DEPS)
  2673. @$(CHECK)
  2674. .PHONY: image/jpeg/check
  2675. @go_include@ image/png.lo.dep
  2676. image/png.lo.dep: $(go_image_png_files)
  2677. $(BUILDDEPS)
  2678. image/png.lo: $(go_image_png_files)
  2679. $(BUILDPACKAGE)
  2680. image/png/check: $(CHECK_DEPS)
  2681. @$(CHECK)
  2682. .PHONY: image/png/check
  2683. @go_include@ index/suffixarray.lo.dep
  2684. index/suffixarray.lo.dep: $(go_index_suffixarray_files)
  2685. $(BUILDDEPS)
  2686. index/suffixarray.lo: $(go_index_suffixarray_files)
  2687. $(BUILDPACKAGE)
  2688. index/suffixarray/check: $(CHECK_DEPS)
  2689. @$(CHECK)
  2690. .PHONY: index/suffixarray/check
  2691. @go_include@ io/ioutil.lo.dep
  2692. io/ioutil.lo.dep: $(go_io_ioutil_files)
  2693. $(BUILDDEPS)
  2694. io/ioutil.lo: $(go_io_ioutil_files)
  2695. $(BUILDPACKAGE)
  2696. io/ioutil/check: $(CHECK_DEPS)
  2697. @$(CHECK)
  2698. .PHONY: io/ioutil/check
  2699. @go_include@ log/syslog.lo.dep
  2700. log/syslog.lo.dep: $(go_log_syslog_files)
  2701. $(BUILDDEPS)
  2702. log/syslog.lo: $(go_log_syslog_files)
  2703. $(BUILDPACKAGE)
  2704. log/syslog/syslog_c.lo: $(go_syslog_c_files) log/syslog.lo
  2705. @$(MKDIR_P) log/syslog
  2706. $(LTCOMPILE) -c -o $@ $(srcdir)/go/log/syslog/syslog_c.c
  2707. log/syslog/check: $(CHECK_DEPS)
  2708. @$(CHECK)
  2709. .PHONY: log/syslog/check
  2710. @go_include@ math/big.lo.dep
  2711. math/big.lo.dep: $(go_math_big_files)
  2712. $(BUILDDEPS)
  2713. math/big.lo: $(go_math_big_files)
  2714. $(BUILDPACKAGE)
  2715. math/big/check: $(CHECK_DEPS)
  2716. @$(CHECK)
  2717. .PHONY: math/big/check
  2718. @go_include@ math/cmplx.lo.dep
  2719. math/cmplx.lo.dep: $(go_math_cmplx_files)
  2720. $(BUILDDEPS)
  2721. math/cmplx.lo: $(go_math_cmplx_files)
  2722. $(BUILDPACKAGE)
  2723. math/cmplx/check: $(CHECK_DEPS)
  2724. @$(CHECK)
  2725. .PHONY: math/cmplx/check
  2726. @go_include@ math/rand.lo.dep
  2727. math/rand.lo.dep: $(go_math_rand_files)
  2728. $(BUILDDEPS)
  2729. math/rand.lo: $(go_math_rand_files)
  2730. $(BUILDPACKAGE)
  2731. math/rand/check: $(CHECK_DEPS)
  2732. @$(CHECK)
  2733. .PHONY: math/rand/check
  2734. @go_include@ mime/multipart.lo.dep
  2735. mime/multipart.lo.dep: $(go_mime_multipart_files)
  2736. $(BUILDDEPS)
  2737. mime/multipart.lo: $(go_mime_multipart_files)
  2738. $(BUILDPACKAGE)
  2739. mime/multipart/check: $(CHECK_DEPS)
  2740. @$(CHECK)
  2741. .PHONY: mime/multipart/check
  2742. @go_include@ net/http.lo.dep
  2743. net/http.lo.dep: $(go_net_http_files)
  2744. $(BUILDDEPS)
  2745. net/http.lo: $(go_net_http_files)
  2746. $(BUILDPACKAGE)
  2747. net/http/check: $(CHECK_DEPS)
  2748. @$(CHECK)
  2749. .PHONY: net/http/check
  2750. @go_include@ net/mail.lo.dep
  2751. net/mail.lo.dep: $(go_net_mail_files)
  2752. $(BUILDDEPS)
  2753. net/mail.lo: $(go_net_mail_files)
  2754. $(BUILDPACKAGE)
  2755. net/mail/check: $(CHECK_DEPS)
  2756. @$(CHECK)
  2757. .PHONY: net/mail/check
  2758. @go_include@ net/rpc.lo.dep
  2759. net/rpc.lo.dep: $(go_net_rpc_files)
  2760. $(BUILDDEPS)
  2761. net/rpc.lo: $(go_net_rpc_files)
  2762. $(BUILDPACKAGE)
  2763. net/rpc/check: $(CHECK_DEPS)
  2764. @$(CHECK)
  2765. .PHONY: net/rpc/check
  2766. @go_include@ net/smtp.lo.dep
  2767. net/smtp.lo.dep: $(go_net_smtp_files)
  2768. $(BUILDDEPS)
  2769. net/smtp.lo: $(go_net_smtp_files)
  2770. $(BUILDPACKAGE)
  2771. net/smtp/check: $(CHECK_DEPS)
  2772. @$(CHECK)
  2773. .PHONY: net/smtp/check
  2774. @go_include@ net/url.lo.dep
  2775. net/url.lo.dep: $(go_net_url_files)
  2776. $(BUILDDEPS)
  2777. net/url.lo: $(go_net_url_files)
  2778. $(BUILDPACKAGE)
  2779. net/url/check: $(CHECK_DEPS)
  2780. @$(CHECK)
  2781. .PHONY: net/url/check
  2782. @go_include@ net/textproto.lo.dep
  2783. net/textproto.lo.dep: $(go_net_textproto_files)
  2784. $(BUILDDEPS)
  2785. net/textproto.lo: $(go_net_textproto_files)
  2786. $(BUILDPACKAGE)
  2787. net/textproto/check: $(CHECK_DEPS)
  2788. @$(CHECK)
  2789. .PHONY: net/textproto/check
  2790. @go_include@ net/http/cgi.lo.dep
  2791. net/http/cgi.lo.dep: $(go_net_http_cgi_files)
  2792. $(BUILDDEPS)
  2793. net/http/cgi.lo: $(go_net_http_cgi_files)
  2794. $(BUILDPACKAGE)
  2795. net/http/cgi/check: $(CHECK_DEPS)
  2796. @$(CHECK)
  2797. .PHONY: net/http/cgi/check
  2798. @go_include@ net/http/cookiejar.lo.dep
  2799. net/http/cookiejar.lo.dep: $(go_net_http_cookiejar_files)
  2800. $(BUILDDEPS)
  2801. net/http/cookiejar.lo: $(go_net_http_cookiejar_files)
  2802. $(BUILDPACKAGE)
  2803. net/http/cookiejar/check: $(CHECK_DEPS)
  2804. @$(CHECK)
  2805. .PHONY: net/http/cookiejar/check
  2806. @go_include@ net/http/fcgi.lo.dep
  2807. net/http/fcgi.lo.dep: $(go_net_http_fcgi_files)
  2808. $(BUILDDEPS)
  2809. net/http/fcgi.lo: $(go_net_http_fcgi_files)
  2810. $(BUILDPACKAGE)
  2811. net/http/fcgi/check: $(CHECK_DEPS)
  2812. @$(CHECK)
  2813. .PHONY: net/http/fcgi/check
  2814. @go_include@ net/http/httptest.lo.dep
  2815. net/http/httptest.lo.dep: $(go_net_http_httptest_files)
  2816. $(BUILDDEPS)
  2817. net/http/httptest.lo: $(go_net_http_httptest_files)
  2818. $(BUILDPACKAGE)
  2819. net/http/httptest/check: $(check_deps)
  2820. @$(CHECK)
  2821. .PHONY: net/http/httptest/check
  2822. @go_include@ net/http/httputil.lo.dep
  2823. net/http/httputil.lo.dep: $(go_net_http_httputil_files)
  2824. $(BUILDDEPS)
  2825. net/http/httputil.lo: $(go_net_http_httputil_files)
  2826. $(BUILDPACKAGE)
  2827. net/http/httputil/check: $(check_deps)
  2828. @$(CHECK)
  2829. .PHONY: net/http/httputil/check
  2830. @go_include@ net/http/internal.lo.dep
  2831. net/http/internal.lo.dep: $(go_net_http_internal_files)
  2832. $(BUILDDEPS)
  2833. net/http/internal.lo: $(go_net_http_internal_files)
  2834. $(BUILDPACKAGE)
  2835. net/http/internal/check: $(CHECK_DEPS)
  2836. @$(CHECK)
  2837. .PHONY: net/http/internal/check
  2838. @go_include@ net/http/pprof.lo.dep
  2839. net/http/pprof.lo.dep: $(go_net_http_pprof_files)
  2840. $(BUILDDEPS)
  2841. net/http/pprof.lo: $(go_net_http_pprof_files)
  2842. $(BUILDPACKAGE)
  2843. net/http/pprof/check: $(CHECK_DEPS)
  2844. @$(CHECK)
  2845. .PHONY: net/http/pprof/check
  2846. @go_include@ net/rpc/jsonrpc.lo.dep
  2847. net/rpc/jsonrpc.lo.dep: $(go_net_rpc_jsonrpc_files)
  2848. $(BUILDDEPS)
  2849. net/rpc/jsonrpc.lo: $(go_net_rpc_jsonrpc_files)
  2850. $(BUILDPACKAGE)
  2851. net/rpc/jsonrpc/check: $(CHECK_DEPS)
  2852. @$(CHECK)
  2853. .PHONY: net/rpc/jsonrpc/check
  2854. @go_include@ old/regexp.lo.dep
  2855. old/regexp.lo.dep: $(go_old_regexp_files)
  2856. $(BUILDDEPS)
  2857. old/regexp.lo: $(go_old_regexp_files)
  2858. $(BUILDPACKAGE)
  2859. old/regexp/check: $(CHECK_DEPS)
  2860. @$(CHECK)
  2861. .PHONY: old/regexp/check
  2862. @go_include@ old/template.lo.dep
  2863. old/template.lo.dep: $(go_old_template_files)
  2864. $(BUILDDEPS)
  2865. old/template.lo: $(go_old_template_files)
  2866. $(BUILDPACKAGE)
  2867. old/template/check: $(CHECK_DEPS)
  2868. @$(CHECK)
  2869. .PHONY: old/template/check
  2870. @go_include@ os/exec.lo.dep
  2871. os/exec.lo.dep: $(go_os_exec_files)
  2872. $(BUILDDEPS)
  2873. os/exec.lo: $(go_os_exec_files)
  2874. $(BUILDPACKAGE)
  2875. os/exec/check: $(CHECK_DEPS)
  2876. @$(CHECK)
  2877. .PHONY: os/exec/check
  2878. @go_include@ os/signal.lo.dep
  2879. os/signal.lo.dep: $(go_os_signal_files)
  2880. $(BUILDDEPS)
  2881. os/signal.lo: $(go_os_signal_files)
  2882. $(BUILDPACKAGE)
  2883. os/signal/check: $(CHECK_DEPS)
  2884. @$(CHECK)
  2885. .PHONY: os/signal/check
  2886. @go_include@ os/user.lo.dep
  2887. os/user.lo.dep: $(go_os_user_files)
  2888. $(BUILDDEPS)
  2889. os/user.lo: $(go_os_user_files)
  2890. $(BUILDPACKAGE)
  2891. os/user/check: $(CHECK_DEPS)
  2892. @$(CHECK)
  2893. .PHONY: os/user/check
  2894. @go_include@ path/filepath.lo.dep
  2895. path/filepath.lo.dep: $(go_path_filepath_files)
  2896. $(BUILDDEPS)
  2897. path/filepath.lo: $(go_path_filepath_files)
  2898. $(BUILDPACKAGE)
  2899. path/filepath/check: $(CHECK_DEPS)
  2900. @$(CHECK)
  2901. .PHONY: path/filepath/check
  2902. @go_include@ regexp/syntax.lo.dep
  2903. regexp/syntax.lo.dep: $(go_regexp_syntax_files)
  2904. $(BUILDDEPS)
  2905. regexp/syntax.lo: $(go_regexp_syntax_files)
  2906. $(BUILDPACKAGE)
  2907. regexp/syntax/check: $(CHECK_DEPS)
  2908. @$(CHECK)
  2909. .PHONY: regexp/syntax/check
  2910. @go_include@ runtime/debug.lo.dep
  2911. runtime/debug.lo.dep: $(go_runtime_debug_files)
  2912. $(BUILDDEPS)
  2913. runtime/debug.lo: $(go_runtime_debug_files)
  2914. $(BUILDPACKAGE)
  2915. runtime/debug/check: $(CHECK_DEPS)
  2916. @$(CHECK)
  2917. .PHONY: runtime/debug/check
  2918. @go_include@ runtime/pprof.lo.dep
  2919. runtime/pprof.lo.dep: $(go_runtime_pprof_files)
  2920. $(BUILDDEPS)
  2921. runtime/pprof.lo: $(go_runtime_pprof_files)
  2922. $(BUILDPACKAGE)
  2923. runtime/pprof/check: $(CHECK_DEPS)
  2924. @$(CHECK)
  2925. .PHONY: runtime/pprof/check
  2926. # At least for now, we need -static-libgo for this test, because
  2927. # otherwise we can't get the line numbers.
  2928. # Also use -fno-inline to get better results from the memory profiler.
  2929. runtime_pprof_check_GOCFLAGS = -static-libgo -fno-inline
  2930. @go_include@ sync/atomic.lo.dep
  2931. sync/atomic.lo.dep: $(go_sync_atomic_files)
  2932. $(BUILDDEPS)
  2933. sync/atomic.lo: $(go_sync_atomic_files)
  2934. $(BUILDPACKAGE)
  2935. sync/atomic_c.lo: $(go_sync_atomic_c_files) sync/atomic.lo
  2936. $(LTCOMPILE) -c -o $@ $(srcdir)/go/sync/atomic/atomic.c
  2937. sync/atomic/check: $(CHECK_DEPS)
  2938. @$(CHECK)
  2939. .PHONY: sync/atomic/check
  2940. @go_include@ text/scanner.lo.dep
  2941. text/scanner.lo.dep: $(go_text_scanner_files)
  2942. $(BUILDDEPS)
  2943. text/scanner.lo: $(go_text_scanner_files)
  2944. $(BUILDPACKAGE)
  2945. text/scanner/check: $(CHECK_DEPS)
  2946. @$(CHECK)
  2947. .PHONY: text/scanner/check
  2948. @go_include@ text/tabwriter.lo.dep
  2949. text/tabwriter.lo.dep: $(go_text_tabwriter_files)
  2950. $(BUILDDEPS)
  2951. text/tabwriter.lo: $(go_text_tabwriter_files)
  2952. $(BUILDPACKAGE)
  2953. text/tabwriter/check: $(CHECK_DEPS)
  2954. @$(CHECK)
  2955. .PHONY: text/tabwriter/check
  2956. @go_include@ text/template.lo.dep
  2957. text/template.lo.dep: $(go_text_template_files)
  2958. $(BUILDDEPS)
  2959. text/template.lo: $(go_text_template_files)
  2960. $(BUILDPACKAGE)
  2961. text/template/check: $(CHECK_DEPS)
  2962. @$(CHECK)
  2963. .PHONY: text/template/check
  2964. @go_include@ text/template/parse.lo.dep
  2965. text/template/parse.lo.dep: $(go_text_template_parse_files)
  2966. $(BUILDDEPS)
  2967. text/template/parse.lo: $(go_text_template_parse_files)
  2968. $(BUILDPACKAGE)
  2969. text/template/parse/check: $(CHECK_DEPS)
  2970. @$(CHECK)
  2971. .PHONY: text/template/parse/check
  2972. @go_include@ testing/iotest.lo.dep
  2973. testing/iotest.lo.dep: $(go_testing_iotest_files)
  2974. $(BUILDDEPS)
  2975. testing/iotest.lo: $(go_testing_iotest_files)
  2976. $(BUILDPACKAGE)
  2977. testing/iotest/check: $(CHECK_DEPS)
  2978. @$(CHECK)
  2979. .PHONY: testing/iotest/check
  2980. @go_include@ testing/quick.lo.dep
  2981. testing/quick.lo.dep: $(go_testing_quick_files)
  2982. $(BUILDDEPS)
  2983. testing/quick.lo: $(go_testing_quick_files)
  2984. $(BUILDPACKAGE)
  2985. testing/quick/check: $(CHECK_DEPS)
  2986. @$(CHECK)
  2987. .PHONY: testing/quick/check
  2988. @go_include@ unicode/utf16.lo.dep
  2989. unicode/utf16.lo.dep: $(go_unicode_utf16_files)
  2990. $(BUILDDEPS)
  2991. unicode/utf16.lo: $(go_unicode_utf16_files)
  2992. $(BUILDPACKAGE)
  2993. unicode/utf16/check: $(CHECK_DEPS)
  2994. @$(CHECK)
  2995. .PHONY: unicode/utf16/check
  2996. @go_include@ unicode/utf8.lo.dep
  2997. unicode/utf8.lo.dep: $(go_unicode_utf8_files)
  2998. $(BUILDDEPS)
  2999. unicode/utf8.lo: $(go_unicode_utf8_files)
  3000. $(BUILDPACKAGE)
  3001. unicode/utf8/check: $(CHECK_DEPS)
  3002. @$(CHECK)
  3003. .PHONY: unicode/utf8/check
  3004. @go_include@ syscall.lo.dep
  3005. syscall.lo.dep: $(go_syscall_files)
  3006. $(BUILDDEPS)
  3007. syscall.lo: $(go_syscall_files)
  3008. $(BUILDPACKAGE)
  3009. syscall/errno.lo: go/syscall/errno.c
  3010. @$(MKDIR_P) syscall
  3011. $(LTCOMPILE) -c -o $@ $<
  3012. syscall/signame.lo: go/syscall/signame.c
  3013. @$(MKDIR_P) syscall
  3014. $(LTCOMPILE) -c -o $@ $<
  3015. syscall/wait.lo: go/syscall/wait.c
  3016. @$(MKDIR_P) syscall
  3017. $(LTCOMPILE) -c -o $@ $<
  3018. syscall/check: $(CHECK_DEPS)
  3019. @$(CHECK)
  3020. .PHONY: syscall/check
  3021. @go_include@ internal/syscall.lo.dep
  3022. internal/syscall.lo.dep: $(go_internal_syscall_files)
  3023. $(BUILDDEPS)
  3024. internal/syscall.lo: $(go_internal_syscall_files)
  3025. $(BUILDPACKAGE)
  3026. internal/syscall/check: $(CHECK_DEPS)
  3027. @$(CHECK)
  3028. .PHONY: internal/syscall/check
  3029. # How to build a .gox file from a .lo file.
  3030. BUILDGOX = \
  3031. f=`echo $< | sed -e 's/.lo$$/.o/'`; \
  3032. $(OBJCOPY) -j .go_export $$f $@.tmp && mv -f $@.tmp $@
  3033. bufio.gox: bufio.lo
  3034. $(BUILDGOX)
  3035. bytes.gox: bytes.lo
  3036. $(BUILDGOX)
  3037. crypto.gox: crypto.lo
  3038. $(BUILDGOX)
  3039. encoding.gox: encoding.lo
  3040. $(BUILDGOX)
  3041. errors.gox: errors.lo
  3042. $(BUILDGOX)
  3043. expvar.gox: expvar.lo
  3044. $(BUILDGOX)
  3045. flag.gox: flag.lo
  3046. $(BUILDGOX)
  3047. fmt.gox: fmt.lo
  3048. $(BUILDGOX)
  3049. hash.gox: hash.lo
  3050. $(BUILDGOX)
  3051. html.gox: html.lo
  3052. $(BUILDGOX)
  3053. image.gox: image.lo
  3054. $(BUILDGOX)
  3055. io.gox: io.lo
  3056. $(BUILDGOX)
  3057. log.gox: log.lo
  3058. $(BUILDGOX)
  3059. math.gox: math.lo
  3060. $(BUILDGOX)
  3061. mime.gox: mime.lo
  3062. $(BUILDGOX)
  3063. net.gox: net.lo
  3064. $(BUILDGOX)
  3065. os.gox: os.lo
  3066. $(BUILDGOX)
  3067. path.gox: path.lo
  3068. $(BUILDGOX)
  3069. reflect.gox: reflect-go.lo
  3070. $(BUILDGOX)
  3071. regexp.gox: regexp.lo
  3072. $(BUILDGOX)
  3073. runtime.gox: runtime-go.lo
  3074. $(BUILDGOX)
  3075. sort.gox: sort.lo
  3076. $(BUILDGOX)
  3077. strconv.gox: strconv.lo
  3078. $(BUILDGOX)
  3079. strings.gox: strings.lo
  3080. $(BUILDGOX)
  3081. sync.gox: sync.lo
  3082. $(BUILDGOX)
  3083. syscall.gox: syscall.lo
  3084. $(BUILDGOX)
  3085. testing.gox: testing.lo
  3086. $(BUILDGOX)
  3087. time.gox: time-go.lo
  3088. $(BUILDGOX)
  3089. unicode.gox: unicode.lo
  3090. $(BUILDGOX)
  3091. archive/tar.gox: archive/tar.lo
  3092. $(BUILDGOX)
  3093. archive/zip.gox: archive/zip.lo
  3094. $(BUILDGOX)
  3095. compress/bzip2.gox: compress/bzip2.lo
  3096. $(BUILDGOX)
  3097. compress/flate.gox: compress/flate.lo
  3098. $(BUILDGOX)
  3099. compress/gzip.gox: compress/gzip.lo
  3100. $(BUILDGOX)
  3101. compress/lzw.gox: compress/lzw.lo
  3102. $(BUILDGOX)
  3103. compress/zlib.gox: compress/zlib.lo
  3104. $(BUILDGOX)
  3105. container/heap.gox: container/heap.lo
  3106. $(BUILDGOX)
  3107. container/list.gox: container/list.lo
  3108. $(BUILDGOX)
  3109. container/ring.gox: container/ring.lo
  3110. $(BUILDGOX)
  3111. crypto/aes.gox: crypto/aes.lo
  3112. $(BUILDGOX)
  3113. crypto/cipher.gox: crypto/cipher.lo
  3114. $(BUILDGOX)
  3115. crypto/des.gox: crypto/des.lo
  3116. $(BUILDGOX)
  3117. crypto/dsa.gox: crypto/dsa.lo
  3118. $(BUILDGOX)
  3119. crypto/ecdsa.gox: crypto/ecdsa.lo
  3120. $(BUILDGOX)
  3121. crypto/elliptic.gox: crypto/elliptic.lo
  3122. $(BUILDGOX)
  3123. crypto/hmac.gox: crypto/hmac.lo
  3124. $(BUILDGOX)
  3125. crypto/md5.gox: crypto/md5.lo
  3126. $(BUILDGOX)
  3127. crypto/rand.gox: crypto/rand.lo
  3128. $(BUILDGOX)
  3129. crypto/rc4.gox: crypto/rc4.lo
  3130. $(BUILDGOX)
  3131. crypto/rsa.gox: crypto/rsa.lo
  3132. $(BUILDGOX)
  3133. crypto/sha1.gox: crypto/sha1.lo
  3134. $(BUILDGOX)
  3135. crypto/sha256.gox: crypto/sha256.lo
  3136. $(BUILDGOX)
  3137. crypto/sha512.gox: crypto/sha512.lo
  3138. $(BUILDGOX)
  3139. crypto/subtle.gox: crypto/subtle.lo
  3140. $(BUILDGOX)
  3141. crypto/tls.gox: crypto/tls.lo
  3142. $(BUILDGOX)
  3143. crypto/x509.gox: crypto/x509.lo
  3144. $(BUILDGOX)
  3145. crypto/x509/pkix.gox: crypto/x509/pkix.lo
  3146. $(BUILDGOX)
  3147. database/sql.gox: database/sql.lo
  3148. $(BUILDGOX)
  3149. database/sql/driver.gox: database/sql/driver.lo
  3150. $(BUILDGOX)
  3151. debug/dwarf.gox: debug/dwarf.lo
  3152. $(BUILDGOX)
  3153. debug/elf.gox: debug/elf.lo
  3154. $(BUILDGOX)
  3155. debug/gosym.gox: debug/gosym.lo
  3156. $(BUILDGOX)
  3157. debug/macho.gox: debug/macho.lo
  3158. $(BUILDGOX)
  3159. debug/pe.gox: debug/pe.lo
  3160. $(BUILDGOX)
  3161. debug/plan9obj.gox: debug/plan9obj.lo
  3162. $(BUILDGOX)
  3163. encoding/ascii85.gox: encoding/ascii85.lo
  3164. $(BUILDGOX)
  3165. encoding/asn1.gox: encoding/asn1.lo
  3166. $(BUILDGOX)
  3167. encoding/base32.gox: encoding/base32.lo
  3168. $(BUILDGOX)
  3169. encoding/base64.gox: encoding/base64.lo
  3170. $(BUILDGOX)
  3171. encoding/binary.gox: encoding/binary.lo
  3172. $(BUILDGOX)
  3173. encoding/csv.gox: encoding/csv.lo
  3174. $(BUILDGOX)
  3175. encoding/gob.gox: encoding/gob.lo
  3176. $(BUILDGOX)
  3177. encoding/hex.gox: encoding/hex.lo
  3178. $(BUILDGOX)
  3179. encoding/json.gox: encoding/json.lo
  3180. $(BUILDGOX)
  3181. encoding/pem.gox: encoding/pem.lo
  3182. $(BUILDGOX)
  3183. encoding/xml.gox: encoding/xml.lo
  3184. $(BUILDGOX)
  3185. exp/proxy.gox: exp/proxy.lo
  3186. $(BUILDGOX)
  3187. exp/terminal.gox: exp/terminal.lo
  3188. $(BUILDGOX)
  3189. html/template.gox: html/template.lo
  3190. $(BUILDGOX)
  3191. go/ast.gox: go/ast.lo
  3192. $(BUILDGOX)
  3193. go/build.gox: go/build.lo
  3194. $(BUILDGOX)
  3195. go/doc.gox: go/doc.lo
  3196. $(BUILDGOX)
  3197. go/format.gox: go/format.lo
  3198. $(BUILDGOX)
  3199. go/parser.gox: go/parser.lo
  3200. $(BUILDGOX)
  3201. go/printer.gox: go/printer.lo
  3202. $(BUILDGOX)
  3203. go/scanner.gox: go/scanner.lo
  3204. $(BUILDGOX)
  3205. go/token.gox: go/token.lo
  3206. $(BUILDGOX)
  3207. hash/adler32.gox: hash/adler32.lo
  3208. $(BUILDGOX)
  3209. hash/crc32.gox: hash/crc32.lo
  3210. $(BUILDGOX)
  3211. hash/crc64.gox: hash/crc64.lo
  3212. $(BUILDGOX)
  3213. hash/fnv.gox: hash/fnv.lo
  3214. $(BUILDGOX)
  3215. image/color.gox: image/color.lo
  3216. $(BUILDGOX)
  3217. image/draw.gox: image/draw.lo
  3218. $(BUILDGOX)
  3219. image/gif.gox: image/gif.lo
  3220. $(BUILDGOX)
  3221. image/jpeg.gox: image/jpeg.lo
  3222. $(BUILDGOX)
  3223. image/png.gox: image/png.lo
  3224. $(BUILDGOX)
  3225. image/color/palette.gox: image/color/palette.lo
  3226. $(BUILDGOX)
  3227. index/suffixarray.gox: index/suffixarray.lo
  3228. $(BUILDGOX)
  3229. io/ioutil.gox: io/ioutil.lo
  3230. $(BUILDGOX)
  3231. log/syslog.gox: log/syslog.lo
  3232. $(BUILDGOX)
  3233. math/big.gox: math/big.lo
  3234. $(BUILDGOX)
  3235. math/cmplx.gox: math/cmplx.lo
  3236. $(BUILDGOX)
  3237. math/rand.gox: math/rand.lo
  3238. $(BUILDGOX)
  3239. mime/multipart.gox: mime/multipart.lo
  3240. $(BUILDGOX)
  3241. net/http.gox: net/http.lo
  3242. $(BUILDGOX)
  3243. net/mail.gox: net/mail.lo
  3244. $(BUILDGOX)
  3245. net/rpc.gox: net/rpc.lo
  3246. $(BUILDGOX)
  3247. net/smtp.gox: net/smtp.lo
  3248. $(BUILDGOX)
  3249. net/textproto.gox: net/textproto.lo
  3250. $(BUILDGOX)
  3251. net/url.gox: net/url.lo
  3252. $(BUILDGOX)
  3253. net/http/cgi.gox: net/http/cgi.lo
  3254. $(BUILDGOX)
  3255. net/http/cookiejar.gox: net/http/cookiejar.lo
  3256. $(BUILDGOX)
  3257. net/http/fcgi.gox: net/http/fcgi.lo
  3258. $(BUILDGOX)
  3259. net/http/httptest.gox: net/http/httptest.lo
  3260. $(BUILDGOX)
  3261. net/http/httputil.gox: net/http/httputil.lo
  3262. $(BUILDGOX)
  3263. net/http/pprof.gox: net/http/pprof.lo
  3264. $(BUILDGOX)
  3265. net/http/internal.gox: net/http/internal.lo
  3266. $(BUILDGOX)
  3267. net/rpc/jsonrpc.gox: net/rpc/jsonrpc.lo
  3268. $(BUILDGOX)
  3269. old/regexp.gox: old/regexp.lo
  3270. $(BUILDGOX)
  3271. old/template.gox: old/template.lo
  3272. $(BUILDGOX)
  3273. os/exec.gox: os/exec.lo
  3274. $(BUILDGOX)
  3275. os/signal.gox: os/signal.lo
  3276. $(BUILDGOX)
  3277. os/user.gox: os/user.lo
  3278. $(BUILDGOX)
  3279. path/filepath.gox: path/filepath.lo
  3280. $(BUILDGOX)
  3281. regexp/syntax.gox: regexp/syntax.lo
  3282. $(BUILDGOX)
  3283. runtime/debug.gox: runtime/debug.lo
  3284. $(BUILDGOX)
  3285. runtime/pprof.gox: runtime/pprof.lo
  3286. $(BUILDGOX)
  3287. sync/atomic.gox: sync/atomic.lo
  3288. $(BUILDGOX)
  3289. internal/syscall.gox: internal/syscall.lo
  3290. $(BUILDGOX)
  3291. text/scanner.gox: text/scanner.lo
  3292. $(BUILDGOX)
  3293. text/tabwriter.gox: text/tabwriter.lo
  3294. $(BUILDGOX)
  3295. text/template.gox: text/template.lo
  3296. $(BUILDGOX)
  3297. text/template/parse.gox: text/template/parse.lo
  3298. $(BUILDGOX)
  3299. testing/iotest.gox: testing/iotest.lo
  3300. $(BUILDGOX)
  3301. testing/quick.gox: testing/quick.lo
  3302. $(BUILDGOX)
  3303. unicode/utf16.gox: unicode/utf16.lo
  3304. $(BUILDGOX)
  3305. unicode/utf8.gox: unicode/utf8.lo
  3306. $(BUILDGOX)
  3307. TEST_PACKAGES = \
  3308. bufio/check \
  3309. bytes/check \
  3310. errors/check \
  3311. expvar/check \
  3312. flag/check \
  3313. fmt/check \
  3314. html/check \
  3315. image/check \
  3316. io/check \
  3317. log/check \
  3318. math/check \
  3319. mime/check \
  3320. net/check \
  3321. os/check \
  3322. path/check \
  3323. reflect/check \
  3324. regexp/check \
  3325. runtime/check \
  3326. sort/check \
  3327. strconv/check \
  3328. strings/check \
  3329. sync/check \
  3330. syscall/check \
  3331. time/check \
  3332. unicode/check \
  3333. archive/tar/check \
  3334. archive/zip/check \
  3335. compress/bzip2/check \
  3336. compress/flate/check \
  3337. compress/gzip/check \
  3338. compress/lzw/check \
  3339. compress/zlib/check \
  3340. container/heap/check \
  3341. container/list/check \
  3342. container/ring/check \
  3343. crypto/aes/check \
  3344. crypto/cipher/check \
  3345. crypto/des/check \
  3346. crypto/dsa/check \
  3347. crypto/ecdsa/check \
  3348. crypto/elliptic/check \
  3349. crypto/hmac/check \
  3350. crypto/md5/check \
  3351. crypto/rand/check \
  3352. crypto/rc4/check \
  3353. crypto/rsa/check \
  3354. crypto/sha1/check \
  3355. crypto/sha256/check \
  3356. crypto/sha512/check \
  3357. crypto/subtle/check \
  3358. crypto/tls/check \
  3359. crypto/x509/check \
  3360. database/sql/check \
  3361. database/sql/driver/check \
  3362. debug/dwarf/check \
  3363. debug/elf/check \
  3364. debug/macho/check \
  3365. debug/pe/check \
  3366. debug/plan9obj/check \
  3367. encoding/ascii85/check \
  3368. encoding/asn1/check \
  3369. encoding/base32/check \
  3370. encoding/base64/check \
  3371. encoding/binary/check \
  3372. encoding/csv/check \
  3373. encoding/gob/check \
  3374. encoding/hex/check \
  3375. encoding/json/check \
  3376. encoding/pem/check \
  3377. encoding/xml/check \
  3378. exp/proxy/check \
  3379. exp/terminal/check \
  3380. html/template/check \
  3381. go/ast/check \
  3382. $(go_build_check_omitted_since_it_calls_6g) \
  3383. go/doc/check \
  3384. go/format/check \
  3385. go/parser/check \
  3386. go/printer/check \
  3387. go/scanner/check \
  3388. go/token/check \
  3389. hash/adler32/check \
  3390. hash/crc32/check \
  3391. hash/crc64/check \
  3392. hash/fnv/check \
  3393. image/color/check \
  3394. image/draw/check \
  3395. image/jpeg/check \
  3396. image/png/check \
  3397. index/suffixarray/check \
  3398. io/ioutil/check \
  3399. log/syslog/check \
  3400. math/big/check \
  3401. math/cmplx/check \
  3402. math/rand/check \
  3403. mime/multipart/check \
  3404. net/http/check \
  3405. net/http/cgi/check \
  3406. net/http/cookiejar/check \
  3407. net/http/fcgi/check \
  3408. net/http/httptest/check \
  3409. net/http/httputil/check \
  3410. net/http/internal/check \
  3411. net/mail/check \
  3412. net/rpc/check \
  3413. net/smtp/check \
  3414. net/textproto/check \
  3415. net/url/check \
  3416. net/rpc/jsonrpc/check \
  3417. old/regexp/check \
  3418. old/template/check \
  3419. os/exec/check \
  3420. os/signal/check \
  3421. os/user/check \
  3422. path/filepath/check \
  3423. regexp/syntax/check \
  3424. runtime/pprof/check \
  3425. sync/atomic/check \
  3426. text/scanner/check \
  3427. text/tabwriter/check \
  3428. text/template/check \
  3429. text/template/parse/check \
  3430. testing/quick/check \
  3431. unicode/utf16/check \
  3432. unicode/utf8/check
  3433. check: check-tail
  3434. check-recursive: check-head
  3435. check-head:
  3436. @echo "Test Run By $${USER} on `date`" > libgo.head
  3437. @echo "Native configuration is $(host_triplet)" >> libgo.head
  3438. @echo >> libgo.head
  3439. @echo " === libgo tests ===" >> libgo.head
  3440. @echo >> libgo.head
  3441. check-tail: check-recursive check-multi
  3442. @if test "$(USE_DEJAGNU)" = "yes"; then \
  3443. exit 0; \
  3444. fi; \
  3445. lib=`${PWD_COMMAND} | sed -e 's,^.*/\([^/][^/]*\)$$,\1,'`; \
  3446. for dir in . $(MULTIDIRS); do \
  3447. mv ../$${dir}/$${lib}/libgo.sum ../$${dir}/$${lib}/libgo.sum.sep; \
  3448. mv ../$${dir}/$${lib}/libgo.log ../$${dir}/$${lib}/libgo.log.sep; \
  3449. done; \
  3450. mv libgo.head libgo.sum; \
  3451. cp libgo.sum libgo.log; \
  3452. echo "Schedule of variations:" >> libgo.sum; \
  3453. for dir in . $(MULTIDIRS); do \
  3454. multidir=../$${dir}/$${lib}; \
  3455. multivar=`cat $${multidir}/libgo.var`; \
  3456. echo " $${multivar}" >> libgo.sum; \
  3457. done; \
  3458. echo >> libgo.sum; \
  3459. pass=0; fail=0; untested=0; \
  3460. for dir in . $(MULTIDIRS); do \
  3461. multidir=../$${dir}/$${lib}; \
  3462. multivar=`cat $${multidir}/libgo.var`; \
  3463. echo "Running target $${multivar}" >> libgo.sum; \
  3464. echo "Running $(srcdir)/libgo.exp ..." >> libgo.sum; \
  3465. cat $${multidir}/libgo.sum.sep >> libgo.sum; \
  3466. cat $${multidir}/libgo.log.sep >> libgo.log; \
  3467. if test -n "${MULTIDIRS}"; then \
  3468. echo " === libgo Summary for $${multivar} ===" >> libgo.sum; \
  3469. echo >> libgo.sum; \
  3470. fi; \
  3471. p=`grep -c PASS $${multidir}/libgo.sum.sep`; \
  3472. pass=`expr $$pass + $$p`; \
  3473. if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
  3474. echo "# of expected passes $$p" >> libgo.sum; \
  3475. fi; \
  3476. p=`grep -c FAIL $${multidir}/libgo.sum.sep`; \
  3477. fail=`expr $$fail + $$p`; \
  3478. if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
  3479. echo "# of unexpected failures $$p" >> libgo.sum; \
  3480. fi; \
  3481. p=`grep -c UNTESTED $${multidir}/libgo.sum.sep`; \
  3482. untested=`expr $$untested + $$p`; \
  3483. if test "$$p" -ne "0" && test -n "${MULTIDIRS}"; then \
  3484. echo "# of untested testcases $$p" >> libgo.sum; \
  3485. fi; \
  3486. done; \
  3487. echo >> libgo.sum; \
  3488. echo " === libgo Summary ===" >> libgo.sum; \
  3489. echo >> libgo.sum; \
  3490. if test "$$pass" -ne "0"; then \
  3491. echo "# of expected passes $$pass" >> libgo.sum; \
  3492. fi; \
  3493. if test "$$fail" -ne "0"; then \
  3494. echo "# of unexpected failures $$fail" >> libgo.sum; \
  3495. fi; \
  3496. if test "$$untested" -ne "0"; then \
  3497. echo "# of untested testcases $$untested" >> libgo.sum; \
  3498. fi; \
  3499. echo `echo $(GOC) | sed -e 's/ .*//'` `$(GOC) -v 2>&1 | grep " version" | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum; \
  3500. echo >> libgo.log; \
  3501. echo "runtest completed at `date`" >> libgo.log; \
  3502. if test "$$fail" -ne "0"; then \
  3503. status=1; \
  3504. else \
  3505. status=0; \
  3506. fi; \
  3507. exit $$status
  3508. check-am:
  3509. @rm -f libgo.sum libgo.log libgo.tail
  3510. @multivar="unix"; \
  3511. [ -z "$(MULTIFLAGS)" ] || multivar="$${multivar}/$(MULTIFLAGS)"; \
  3512. echo "$${multivar}" > libgo.var
  3513. @for f in $(TEST_PACKAGES); do \
  3514. rm -f $$f-testsum $$f-testlog; \
  3515. done
  3516. -@$(MAKE) -k $(TEST_PACKAGES)
  3517. @for f in $(TEST_PACKAGES); do \
  3518. if test -f $$f-testsum; then \
  3519. cat $$f-testsum >> libgo.sum; \
  3520. fi; \
  3521. if test -f $$f-testlog; then \
  3522. cat $$f-testlog >> libgo.log; \
  3523. fi; \
  3524. done
  3525. check-multi:
  3526. $(MULTIDO) $(AM_MAKEFLAGS) DO=check-am multi-do # $(MAKE)
  3527. bench:
  3528. -@$(MAKE) -k $(TEST_PACKAGES) GOBENCH=.
  3529. MOSTLYCLEAN_FILES = libgo.head libgo.sum.sep libgo.log.sep
  3530. mostlyclean-local:
  3531. find . -name '*.lo' -print | xargs $(LIBTOOL) --mode=clean rm -f
  3532. find . -name '*.$(OBJEXT)' -print | xargs rm -f
  3533. find . -name '*-testsum' -print | xargs rm -f
  3534. find . -name '*-testlog' -print | xargs rm -f
  3535. CLEANFILES = *.go *.gox goc2c *.c s-version libgo.sum libgo.log
  3536. clean-local:
  3537. find . -name '*.la' -print | xargs $(LIBTOOL) --mode=clean rm -f
  3538. find . -name '*.a' -print | xargs rm -f