summaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-03-07 13:51:49 +1100
committerRob Pike <r@golang.org>2012-03-07 13:51:49 +1100
commit9f87d0f77d1108af961d5e65a3c1cccc12921900 (patch)
tree1d1555e6f9b2e94902ea1b0fbcb313ca23287c3d /src/lib9
parent37e52ac389db01900e93492f505d6293a98dca78 (diff)
downloadgo-9f87d0f77d1108af961d5e65a3c1cccc12921900.tar.gz
all: remove some references to Make.inc etc.
There are a few more but these are the easiest ones. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5756067
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/utf/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib9/utf/Makefile b/src/lib9/utf/Makefile
index c3b9ec5d0..bbb2da6a9 100644
--- a/src/lib9/utf/Makefile
+++ b/src/lib9/utf/Makefile
@@ -4,21 +4,17 @@
# The library is built by the Makefile in the parent directory.
# This Makefile only builds mkrunetype.
-
-include ../../Make.inc
-O:=$(HOST_O)
+# GOROOT, GOOS, and GOARCH must be set explicitly.
TARG=mkrunetype
-OFILES=\
- mkrunetype.$O\
-
-include ../../Make.ccmd
-
UnicodeData-%.txt:
curl http://www.unicode.org/Public/$*/ucd/UnicodeData.txt >_$@
mv _$@ $@
+mkrunetype: mkrunetype.c
+ cc -I../../../include -o mkrunetype -L$(GOROOT)/pkg/obj/$(GOOS)_$(GOARCH)/ mkrunetype.c -l9
+
runetypebody-%.c: mkrunetype UnicodeData-%.txt
mkrunetype -p UnicodeData-$*.txt >_$@
mv _$@ $@
@@ -30,3 +26,5 @@ UNICODE_VERSION=6.0.0
test: mkrunetype UnicodeData-$(UNICODE_VERSION).txt
mkrunetype -c UnicodeData-$(UNICODE_VERSION).txt
+clean:
+ rm -f UnicodeData.txt mkrunetype \ No newline at end of file