The Go Programming Language

Text file src/lib9/Makefile

     1	# Copyright 2009 The Go Authors.  All rights reserved.
     2	# Use of this source code is governed by a BSD-style
     3	# license that can be found in the LICENSE file.
     4	
     5	include ../Make.inc
     6	O:=$(HOST_O)
     7	
     8	LIB=lib9.a
     9	
    10	NUM=\
    11		charstod.$O\
    12		pow10.$O\
    13	
    14	# Could add fmt/errfmt, but we want to pick it up from ./errstr.c instead.
    15	FMTOFILES=\
    16		dofmt.$O\
    17		fltfmt.$O\
    18		fmt.$O\
    19		fmtfd.$O\
    20		fmtfdflush.$O\
    21		fmtlocale.$O\
    22		fmtlock2.$O\
    23		fmtnull.$O\
    24		fmtprint.$O\
    25		fmtquote.$O\
    26		fmtrune.$O\
    27		fmtstr.$O\
    28		fmtvprint.$O\
    29		fprint.$O\
    30		nan64.$O\
    31		print.$O\
    32		seprint.$O\
    33		smprint.$O\
    34		snprint.$O\
    35		sprint.$O\
    36		strtod.$O\
    37		vfprint.$O\
    38		vseprint.$O\
    39		vsmprint.$O\
    40		vsnprint.$O\
    41		$(NUM)\
    42	
    43	UTFOFILES=\
    44		rune.$O\
    45		utfecpy.$O\
    46		utflen.$O\
    47		utfnlen.$O\
    48		utfrrune.$O\
    49		utfrune.$O\
    50		utfutf.$O\
    51		runetype.$O\
    52	
    53	LIB9OFILES=\
    54		_p9dir.$O\
    55		_exits.$O\
    56		argv0.$O\
    57		atoi.$O\
    58		cleanname.$O\
    59		create.$O\
    60		dirfstat.$O\
    61		dirfwstat.$O\
    62		dirstat.$O\
    63		dirwstat.$O\
    64		dup.$O\
    65		errstr.$O\
    66		exec.$O\
    67		execl.$O\
    68		exitcode.$O\
    69		exits.$O\
    70		getenv.$O\
    71		getfields.$O\
    72		getwd.$O\
    73		goos.$O\
    74		main.$O\
    75		nan.$O\
    76		nulldir.$O\
    77		open.$O\
    78		readn.$O\
    79		seek.$O\
    80		strecpy.$O\
    81		sysfatal.$O\
    82		time.$O\
    83		tokenize.$O\
    84	
    85	ifeq ($(GOHOSTOS),windows)
    86	LIB9OFILES+=\
    87		win32.$O\
    88	
    89	else
    90	LIB9OFILES+=\
    91		await.$O\
    92		getuser.$O\
    93		jmp.$O\
    94		notify.$O\
    95		rfork.$O\
    96	
    97	endif
    98	
    99	OFILES=\
   100		$(LIB9OFILES)\
   101		$(FMTOFILES)\
   102		$(UTFOFILES)\
   103	
   104	HFILES=\
   105		$(QUOTED_GOROOT)/include/u.h\
   106		$(QUOTED_GOROOT)/include/libc.h\
   107	
   108	include ../Make.clib
   109	
   110	GOROOT_FINAL?=$(GOROOT)
   111	
   112	%.$O: fmt/%.c
   113		$(HOST_CC) -c $(HOST_CFLAGS) -DPLAN9PORT -Ifmt $<
   114	
   115	%.$O: utf/%.c
   116		$(HOST_CC) -c $(HOST_CFLAGS) $<
   117	
   118	goos.$O: goos.c
   119		GOVERSION=`../version.bash` && \
   120			$(HOST_CC) -c $(HOST_CFLAGS) -DGOOS='"$(GOOS)"' -DGOARCH='"$(GOARCH)"' -DGOROOT='"$(GOROOT_FINAL)"' -DGOVERSION='"'"$$GOVERSION"'"' $<
   121	

release.r60.3. Except as noted, this content is licensed under a Creative Commons Attribution 3.0 License.