2010-04-09 14:31:26 -06:00
|
|
|
# Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2010-08-18 08:08:49 -06:00
|
|
|
include ../../../src/Make.inc
|
2010-04-09 14:31:26 -06:00
|
|
|
|
|
|
|
TARG=life
|
|
|
|
|
|
|
|
CGOFILES=\
|
2010-12-17 10:51:55 -07:00
|
|
|
life.go\
|
2010-04-09 14:31:26 -06:00
|
|
|
|
2010-12-17 10:51:55 -07:00
|
|
|
CGO_OFILES=\
|
|
|
|
c-life.o\
|
2011-08-26 14:43:37 -06:00
|
|
|
|
|
|
|
ifeq ($(GOOS),windows)
|
|
|
|
ifeq ($(GOARCH),amd64)
|
|
|
|
CGO_OFILES+=\
|
|
|
|
lib64_libmingwex_a-wassert.o\
|
|
|
|
lib64_libmingw32_a-mingw_helpers.o\
|
|
|
|
|
|
|
|
lib64_libmingwex_a-wassert.o:
|
|
|
|
ar -x /mingw/x86_64-w64-mingw32/lib/libmingwex.a lib64_libmingwex_a-wassert.o
|
|
|
|
|
|
|
|
lib64_libmingw32_a-mingw_helpers.o:
|
|
|
|
ar -x /mingw/x86_64-w64-mingw32/lib/libmingw32.a lib64_libmingw32_a-mingw_helpers.o
|
|
|
|
endif
|
|
|
|
endif
|
2010-04-09 14:31:26 -06:00
|
|
|
|
2010-12-17 10:51:55 -07:00
|
|
|
CLEANFILES+=life
|
2010-04-09 14:31:26 -06:00
|
|
|
|
|
|
|
include ../../../src/Make.pkg
|
|
|
|
|
|
|
|
life: install main.go
|
|
|
|
$(GC) main.go
|
|
|
|
$(LD) -o $@ main.$O
|