Replace broken Makefile

This commit is contained in:
tj 2010-10-15 12:44:14 +02:00
parent 1fe11ca937
commit 0b332411b6

View File

@ -1,26 +1,13 @@
all: $(GOARCH) include $(GOROOT)/src/Make.inc
clean: clean_$(GOARCH) OBJS := $(patsubst %.go,%.$O,$(wildcard *.go))
rm test OUT := $(patsubst %.$O,%,$(OBJS))
386: all: $(OBJS)
8g test.go
8l -o test test.8
amd64: %.$O: %.go
6g test.go $(GC) $<
6l -o test test.6 $(LD) -o $(patsubst %.$O,%,$@) $@
arm:
5g test.go
5l -o test test.5
clean_amd64:
rm *.6
clean_386:
rm *.8
clean_arm:
rm *.5
clean:
rm -f *.$O $(OBJS) $(OUT)